These may help.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/createservice.asp
http://support.microsoft.com/?kbid=251192
--
Regards,
Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect
:
| ola schrieb:
| > Why don't you just write your app as a service, and let it post a
| > service shutdown request to itself when the 'simple stuff' is done?
| > Then you set the service to automatic startup when registering it.
|
| hmm, I guess because I can't?
|
|
| > Doing as said above will cause your service to start at boot time,
| > close when finished, restart next reboot. It will appear in the service
| > manager as a standard service with automatic startup and logon
| > credentials as specified by an administrator. I think that is what you
| > are asking for.
|
| so, how can I make it to be a "service"?
|
| I looked at some installers, and figured out they add some registry
| entries, but I didn't find any good documentation which registry entries
| I have to change to start an application as a service.
|
|
| --
| Tomek