By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,996 Members | 1,095 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,996 IT Pros & Developers. It's quick & easy.

Q: ServiceController and ExecuteCommand

P: n/a
Hi!

I issue a ExecuteCommand, is there a way to get a response from the service
when the command has been executed?

What i want to do is to change an icon on the servicecontroller app,
depending on the command is being executed or is ready.

Regards
Martin
Jan 30 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Martin Arvidsson, Visual Systems AB" <ma**************@vsab.netwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
Hi!

I issue a ExecuteCommand, is there a way to get a response from the service when the
command has been executed?
No, don't forget that you aren't talking to your Service, you are passing a command to the
SCM who, at his turn passes the command to the service, however there is no way for the
service to communicate back to the SCM.
What i want to do is to change an icon on the servicecontroller app, depending on the
command is being executed or is ready.
Assuming you have AutoLog property set to true, for every command that's been executed, the
SCM writes a fail/success message to the eventlog, maybe you can try to read this message.
Another option is to forget about the ServiceController and use remoting to pass user
commands to a service.

Willy.
Jan 30 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.