Networking Forums

Networking Forums > Computer Networking > Windows Networking > making a service survive log off with delphi

Reply
Thread Tools Display Modes

making a service survive log off with delphi

 
 
Dave
Guest
Posts: n/a

 
      04-06-2004, 02:13 PM
Hi

I have been writing a client service for windows 98. I have been adding a
key HKLM\software\microsoft\windows\currentVersion\run services to execute
the program. Within the code I am calling
registerServiceProcess(getCurrentProcessID,1) to register the code as a
service on the create event associated with a datamodule. I have
registerServiceProcess(getCurrentProcessID,0) on the destroy event (not sure
why??? It was recommended that I do that...)

The app seems to be registered as a service, as it disappears from task
manager, however, when I log off the service is closed. What should I be
doing to prevent my service from being closed when a user log's off?

Thanks for any help given
Dave


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Route changes do not survive reboot. Len B Windows Networking 2 10-29-2007 10:46 AM
BT Service Ststus Update: Problem making Broadband Talk calls Malice Broadband 0 11-13-2006 12:18 PM
Making changes for new ISP Aaron Windows Networking 10 08-28-2006 03:01 AM
dhcp scope operations don't survive reboot Jeff Hofstetter Windows Networking 0 08-06-2006 02:45 PM
making a net from 1 ip esara Home Networking 4 06-03-2004 10:45 AM



1 2 3 4 5 6 7 8 9 10 11