Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stop application closing on log off

Status
Not open for further replies.

bdmoore

MIS
Aug 9, 2001
8
GB
Hi,

I'm writing an NT service in VB6 (using the NTSVC.ocx control). The service installs, starts and stops fine, and I've got a user interface for settings which is accessed via an icon in the system tray which again works fine. The problem I have is that when the workstation logs off, Windows seems to be trying to close my application instead of leaving it running. I tried using the RegisterServiceProcess API but then found out it doesn't work under NT. Can anyone help???

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top