In VFP 7 you can use new function SYS(2340) - NT Service Support to prevent that. AFAIK, ther's nothing you can don in VFP 6.
>Hi,
>
>We have a vfp application which runs as an NT Service. This works fine as it runs in background and doesn't effect the user. We require the application to be in effect whenever the machine is on. When the machine is shutdown, the service and application stop and restart at boot.
>
>However, when the machine is "Close all programs and log on as different user?" VFP thinks the machine is shutting down. The service keeps running but the application ends.
>
>If anybody has any ideas please let me know as driving me nuts!!!
>
>TIA
>
>Steve
--sb--