Login  
Search All Forums
Dart Home | PowerTCP Server for ActiveX | Custom Development Reply | PowerTCP Server for ActiveX Topics | Forums   
AuthorForum: PowerTCP Server for ActiveX
Topic: Service control state change event fires when interrogate received
rh

From: Calabasas, CA USA
Posts: 1
Member Since: 07/20/05
posted July 21, 2005 3:37 PM

The state change event fires when an interrogate message is sent to the service. You can recreate this behavior by using the sc resource kit utility.

sc interrogate myservice

In the application event log myservice starting is logged. I have observed this behavior on Windows 2000 with SP4. We are using dartservice.dll 1.8.1.0.

Thanks for your help.
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 21, 2005 4:28 PM

Thanks. I am guessing this is by design. Is it causing a problem for you?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted July 21, 2005 4:58 PM

I just looked at the code and see exactly why it happens. We fire state when we receive the following messages:

SERVICE_CONTROL_START
SERVICE_CONTROL_STOP
SERVICE_CONTROL_PAUSE
SERVICE_CONTROL_CONTINUE
SERVICE_CONTROL_INTERROGATE

Any other message gets a Message event and we pass you the message number.

I'm guessing that the original idea was to fire message instead of state.


Reply | PowerTCP Server for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX