What I'm really looking for is program structure.
Ok, here is a little experiment:
open a command prompt box:
type
cs.exe create "my service" binPath= "c:\program files\microsoft office\office10\powerpnt.exe" type= own type= interact
cs.exe start "my service"
you haver now created your own service which will run the powerpoint executable...
(to undo what you have just done just change start to stop, and create to delete)
Now, when you start your service with the above line, powerpoint will start up. But in a 30 second time, it will quit, and you will get an error. The service quit because it failed to take control. So windows is waiting for the service to call some type of control function in its api.
So, what i want to do, is code my service in c++/vb which can answer the take control as expected.
IE its not just any plain old program that can run as a service...a service must have a take control function to do something. What I need now...is documentation on apis or function headers to allow me to do this.