471,605 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

Can we get the list of COM+ Applications using System.ServiceProcess

Hi

We use System.ServiceProcess.ServiceController class is used to get the list
of windows services installed in a particular machine.

Also we use System.ServiceProcess.ServiceController.GetService s("IIS") to
get the control on the IIS ..

In the same way can we get the List of services which are part of the COM+
applications.

basically i need to start/STop the COM+ applications using the

System.ServiceProcess.ServiceController class..

is this possible ??

Thanks
Senthil


Jan 24 '06 #1
1 2588

"SenthilVel" <se******************@misyshealthcare.com> wrote in message
news:OC**************@TK2MSFTNGP11.phx.gbl...
| Hi
|
| We use System.ServiceProcess.ServiceController class is used to get the
list
| of windows services installed in a particular machine.
|
| Also we use System.ServiceProcess.ServiceController.GetService s("IIS") to
| get the control on the IIS ..
|
| In the same way can we get the List of services which are part of the COM+
| applications.
|
| basically i need to start/STop the COM+ applications using the
|
| System.ServiceProcess.ServiceController class..
|
| is this possible ??
|
| Thanks
| Senthil
|
|

COM+ applications aren't services (unless you did configure your com+
application to run as a service), so they can't be controlled through the
ServiceController class.
You only option is to use the "ComAdmin" automation interfaces, from managed
code you need to set a reference to the "COM+ Admin Type Library". Check the
platform sdk docs for details.

Willy.

Jan 24 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

26 posts views Thread by Lasse Edsvik | last post: by
3 posts views Thread by TT (Tom Tempelaere) | last post: by
6 posts views Thread by Pawel Janik | last post: by
2 posts views Thread by Kondapanaidu | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.