>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