Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegisterServiceProcess
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00299401
Message ID:
00299440
Vues:
25
>Has anyone used ever used the RegisterServiceProcess API call in a VFP exe in an attempt to keep an application running when the "Close all programs and log on as a different user" option is selected for Win 95/98 shutdown? This RegisterServiceProcess function is supposed to prevent a Win32-based application from being closed when logoff is selected. I've added the call to a VFP app without causing an error, but the app still wants to shutdown during logoff.

This is a case of not reading the docs - Win9x does not support the concept of a service in this fashion. The following is a direct quote from the October MSDN:

Windows 95/98 Service Control Manager
Microsoft® Windows NT®/Windows® 2000 supports a Win32®-based application type known as a service. A service may be started in two ways: automatically, when the system starts up; or upon demand, by Win32-based applications that use the functions provided by the Service Control Manager. For more information, see Services.

The Windows NT/Windows 2000Service Control Manager and its associated functions are not supported by Microsoft® Windows® 95 or Microsoft® Windows® 98. Instead, Windows 95/98 provides a scaled-down Service Control Manager.

Built on Tuesday, August 17, 1999
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform