Windows: WinService

Discussion of ideas for features and new projects based on POCO.
cdelmas
Posts: 46
Joined: 22 Sep 2006, 10:04
Location: France

Windows: WinService

Postby cdelmas » 20 Jul 2007, 15:01

Is it possible to add the possibility to change the account used to launch a service (that is provide the two last arguments to CreateServiceW) ? This could be implemented adding optional parameters to registerService, along with a "setAccount" (or something equivalent) function (using ChangeServiceConfig) and "getAccount" to check the configuration. This would make this (very useful) class give more control to the programmer.

Thanks in advance.

cdelmas
Posts: 46
Joined: 22 Sep 2006, 10:04
Location: France

Re: Windows: WinService

Postby cdelmas » 20 Dec 2007, 18:49

> Is it possible to add the possibility to change the account used to launch a service (that is provide the two last arguments to CreateServiceW) ? This could be implemented adding optional parameters to registerService, along with a "setAccount" (or something equivalent) function (using ChangeServiceConfig) and "getAccount" to check the configuration. This would make this (very useful) class give more control to the programmer.
>
> Thanks in advance.
>

In addition, is it possible to add a queryStatus function, returning an enum element ? (RUNNING, STOPPED, START_PENDING and so on)

Jartson
Posts: 6
Joined: 09 Jun 2010, 18:11

Re: Windows: WinService

Postby Jartson » 09 Jun 2010, 18:26

I have created a windows service program with POCO and there is one feature in windows services that I would find useful POCO to implement. In windows service's properties you can change service's recovery options. You can define what you want to happen on first failure, second failure and subsequent failures. The options are take no action, restart service, run as program and restart the computer. It would be very useful if I could change these options inside the program with POCO.

Jartson
Posts: 6
Joined: 09 Jun 2010, 18:11

Re: Windows: WinService

Postby Jartson » 24 Jun 2010, 09:10

start and stop service with timeout values.


Return to “Wishlist”

Who is online

Users browsing this forum: Baidu [Spider] and 2 guests

cron