Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP as a Service
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01489174
Message ID:
01489207
Views:
84
Hi

I will try this and see if it works.

Thanks,
Simon

>>Hi
>>
>>I have created a VFP application and set it up as a Windows service and everything works just fine. However, does anyone know of way I can know when the service is being stopped? I would like to do some cleanup etc. before the application quits.
>>
>>Thanks,
>>Simon
>
>First you must enable support NT service with:
>
>
SYS(2340,1)
>
>After the ON SHUTDOWN command:
>
>
>ON SHUTDOWN DO MyCloseService
>
>PROCEDURE MyCloseService()
>  =MyCleanUp()
>  QUIT
>ENDPROC
>
Simon White
dCipher Computing
Previous
Reply
Map
View

Click here to load this message in the networking platform