The only way i know how is to set up a dependency on another service i.e. service B loads only after service A has been started. Ive only ever done this in NT4, although I assume it will work in WK2 as well.
1. Run the registry editor (regedt32.exe, NOT regedit.exe) 2. goto HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MyService (or whatever your name is) 3. create the value "DependOnService" of type REG_MULTI_SZ. Specify it to be the service it depends on i.e. "RunBeforeMeService". Multiple dependencies are seperated by new lines. 4. reboot the machine for the dependencies to take effect. This dependency will however also cause your service to shut down if what it depends upon is shut down. -----Original Message----- From: vss [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 15, 2001 3:41 PM To: Multiple recipients of list delphi Subject: [DUG]: Service Order Hi all. Does anyone know how to change a service loading order ? i.e. I have written an app. thats a service, but it loads to early. anyone know ?? Thanks, Jeremy --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ This e-mail message has been scanned and cleared by MailMarshal http://www.gen-i.co.nz --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/