Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
Sorry for my English, I’m Belarusian =)
I have dll, which is running under svchost.exe. I’ve set all reg keys manually. Now I want to write installer/uninstaller for my service. How can I do this? I suppose, I should use CreateService function, but I can’t understand, which parameters should be there. Can somebody help me?
Posted
Comments
Indivara 30-Jan-11 20:31pm    
Do you have to run it under svchost? Is a separate executable out of the question? I think that would be much easier...
__vega__ 31-Jan-11 6:18am    
No, I can't use executable. Service should run under svchost.exe. :)

1 solution

This website has a search[^] function.

The 2nd result is Beginner's introductory guide to writing, installing, starting, stopping NT services[^], and the 5th is A Windows Service Application[^]

Also for help with function parameters, use MSDN: CreateService[^]
 
Share this answer
 
Comments
__vega__ 31-Jan-11 6:33am    
There is no dll-services in these examples. it's not the same...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900