I want to set my application as a system service, so that it can run at the background and automaticly launch. How could I do that? Should I write something to the register?
Use the service control manager APIs (scm) to create and start the service. The registry happens to be where the scm stores its config information , but that does not mean you should skip using the appropriate APIs.
d
dent from a phine with no keynoard
-----Original Message-----
From: disney_cheng@qq.com
Sent: Thursday, March 31, 2011 8:06 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] How to create a system service in XP system?
I want to set my application as a system service, so that it can run at the background and automaticly launch. How could I do that? Should I write something to the register?
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Indeed. It probably would be a good idea to start with the service sample
from the WDK. Although they can’t crash the system directly like a driver,
services can definitely make a system unusable.
Good luck,
Mm
On Mar 31, 2011 11:16 PM, “Doron Holan” wrote:
> Use the service control manager APIs (scm) to create and start the
service. The registry happens to be where the scm stores its config
information , but that does not mean you should skip using the appropriate
APIs.
>
> d
>
> dent from a phine with no keynoard
>
> -----Original Message-----
> From: disney_cheng@qq.com
> Sent: Thursday, March 31, 2011 8:06 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] How to create a system service in XP system?
>
>
> I want to set my application as a system service, so that it can run at
the background and automaticly launch. How could I do that? Should I write
something to the register?
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
That should have BEEN ‘SDK.’
Mm
On Mar 31, 2011 11:49 PM, “Martin O’Brien” <
xxxxx@gmail.com> wrote:
Indeed. It probably would be a good idea to start with the service sample
from the WDK. Although they can’t crash the system directly like a driver,
services can definitely make a system unusable.Good luck,
Mm
On Mar 31, 2011 11:16 PM, “Doron Holan” wrote:
>> Use the service control manager APIs (scm) to create and start the
> service. The registry happens to be where the scm stores its config
> information , but that does not mean you should skip using the appropriate
> APIs.
>>
>> d
>>
>> dent from a phine with no keynoard
>>
>> -----Original Message-----
>> From: disney_cheng@qq.com
>> Sent: Thursday, March 31, 2011 8:06 PM
>> To: Windows System Software Devs Interest List
>> Subject: [ntdev] How to create a system service in XP system?
>>
>>
>> I want to set my application as a system service, so that it can run at
> the background and automaticly launch. How could I do that? Should I write
> something to the register?
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
Doron Holan & mm:
Thank you! I see.
disney_cheng@qq.com wrote:
I want to set my application as a system service, so that it can run at the background and automaticly launch. How could I do that? Should I write something to the register?
You have to modify the application as well. Services have to follow a
certain protocol. They have to receive and dispatch messages from the
Service Control Manager to allow themselves to be started and stopped in
a controlled way. It’s more than just a registry change.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.