Hi!
I found following in the MSDN Library - July 2001:
SYS(2340) - NT Service Support
Disables or enables support for NT service.
SYS(2340 [,0 | 1 ])
Parameters
0
Disables support for NT Service (default).
1
Enables support for NT Service.
Return Value
Character
Remarks
This function intercepts Windows logoff messages (WM_QUERYENDSESSION and WM_ENDSESSION) to Visual FoxPro and specifies whether to keep Visual FoxPro COM Server instances running or to shut them down. A Visual FoxPro application will terminate when the current user logs off Windows. If the application is a Windows Service, then that service will terminate. Enabling support for NT service will make it possible for Visual FoxPro applications to continue even if the current user logs off Windows.
>Does anyone know where I might look for more information about the SYS(2340) function? I have searched MSDN and VFP, but can not find out anymore information about the function. I have written a couple of VFP apps that run as a NT service using a 3rd party control, but I am not happy with their performance. Has anyone worked/written a VFP app as a NT service with any sort of success?
>
>Thanks,
>Dale
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.