Tyler007
August 30th, 2001, 07:45 AM
Hi,
I've created a VB app an added the ntsvc.ocx to make it run as a Windows NT service. I've also created this service to interact with the desktop because I need to display an icon in the sytem tray so when the user clicks it, it displays a form that allows him to change some options and monitor the service status to see if everything works fine.
The problem is when the user logs off the computer : Windows shutdown my Vb app (invoking the unload statement) so when he logs back in, the service is still marked as "running" (maybe because the service_Stop function was never called ?) but isn't anymore because it has been unloaded.
I need to find a way to unload the app without stopping the service.
Regards, Nic.
I've created a VB app an added the ntsvc.ocx to make it run as a Windows NT service. I've also created this service to interact with the desktop because I need to display an icon in the sytem tray so when the user clicks it, it displays a form that allows him to change some options and monitor the service status to see if everything works fine.
The problem is when the user logs off the computer : Windows shutdown my Vb app (invoking the unload statement) so when he logs back in, the service is still marked as "running" (maybe because the service_Stop function was never called ?) but isn't anymore because it has been unloaded.
I need to find a way to unload the app without stopping the service.
Regards, Nic.