Re: client program automatically run when it first installs
"ponny" <mnair.lekshmi@gmail.com> wrote in message
news:1165895321.025893.147310@n67g2000cwd.googlegroups.com...
I did A Client Server programming.I wanted to start client as
service..That is when I first installed
the client program in the client machine It became a service.When the
next time I log on the client machine I wanted to start client program
automatically without running the client program.Please give any
helpful code for doing this.....
You'll find a bare-bones sample of a service that does just about nothing in
the
Samples\winbase\Service
subdirectory of the Platform SDK folder. If you don't have the SDK, you can
download it.
Note that to install a service you need to set a few registry keys to get it
into the service control manager's database. That requires administrative
access. And you'll need to "connect" to the SCM and accept commands like
stop and pause from it. The sample demonstrates that. Finally, note that
services should not have a user interface - either text-based or graphical.
So, it's likely you'll want to read up on the event log.
Regards,
Will