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

  • Thread starter Thread starter SenthilVel
  • Start date Start date
S

SenthilVel

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.GetServices("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
 
| 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.GetServices("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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top