I have developed a simple RPC server in executable format using Visual C++. Now I would like it to run as a service at Windows boot up. How to program this?
Asked
Active
Viewed 1,146 times
2 Answers
1
Depending on the version of Windows you are using, you can use Sc to do it as shown at http://support.microsoft.com/kb/251192.
To fully integrate, there are many guides: one is at http://www.muukka.net/programming/service/

Femi
- 64,273
- 8
- 118
- 148
1
The simplest would be to create a windows service template from Visual Studio: http://msdn.microsoft.com/en-us/library/40xe80wx(v=vs.80).aspx
... then cut-and-paste.

Erwin Alva
- 403
- 4
- 17
-
is this template is already RPC look alike? Means, does it works like a RPC too? – karikari Jun 15 '11 at 02:12
-
1It's a generic windows service template. You already have the code for your RPC server, it should be simple enough to plug it in the generated source files. – Erwin Alva Jun 15 '11 at 23:44