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