NT Service - researching...
Greetings everyone,
I've got a project for work that needs to be an NT Service that will eventually become a XP Service when the company moves to it. Here are some of the things I have to learn in programming this service:
1) Creating a service - I've done some research of this already and have a very, very basic understanding.
2) Creating a socket and communicating to another application on the PC & to a server. This has been done already in C program we have, so it could be just copied...
3) Find a way to see if a specific application is running. I've also done some research on this too, but only found something that is close to the task manager of the processes...need to have it show the FULL path & aguments of that process if possible.
4) Able to have this application start up another application. Again, we've done this in another app, so I could copy that.
I've got quite a task laid out to accomplish and I'm looking for any resources, code samples, books, web sites that would discuss this kind of stuff I'm looking to do. If you have any information to help me with my process in creating this service, I would greatly appreciate it.
Thanks, Michael
Re: NT Service - researching...
Quote:
Originally posted by schu777
1) Creating a service - I've done some research of this already and have a very, very basic understanding.
This is a good start.....also there is a MSDN article thats quite good (but I dont have a link)
http://www.codeproject.com/system/windowsservices.asp
Quote:
2) Creating a socket and communicating to another application on the PC & to a server. This has been done already in C program we have, so it could be just copied...
Yeah....if you need help there's loads of winsock links on this board.......
Quote:
3) Find a way to see if a specific application is running. I've also done some research on this too, but only found something that is close to the task manager of the processes...need to have it show the FULL path & aguments of that process if possible.
You could try FindWindow()
Quote:
4) Able to have this application start up another application. Again, we've done this in another app, so I could copy that.
CreateProcess() or ShellExecute() are good for this.