![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
|
Hi, Add COM reference to C:\Windows\System32\comsvcs.dll Then enumerate COM+ applications as following: -- BEGIN CODE -- COMSVCSLib.MtsGrpClass group = new COMSVCSLib.MtsGrpClass(); for (int i = 0; i < group.Count; i++) { object item = null; group.Item(i, out item); COMSVCSLib.COMEvents events = (COMSVCSLib.COMEvents) item; listBox1.Items.Add(events.GetProcessID().ToString( ) + ":" + events.PackageGuid + ":" + events.PackageName); Marshal.ReleaseComObject(item); item = null; Marshal.ReleaseComObject(events); events = null; } Marshal.ReleaseComObject(group); group = null; -- END CODE -- hope this helps -- Milosz Skalecki MCP, MCAD "SenthilVel" wrote: Hi I want to list the available "Component Services " (COM+) in a machine . i am trying to get the list of Componenet services in a machine using windows forms in dotnet , how can i retrive the list of componenet services, i know we can get the list of windows services, but i dont know how to get the list of Component services ? can any one let me know how to do this ? Thanks Senthil |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi You can also access the COMAdminCatalog from C# (via COM Interop). Check out the methods StartApplication and ShutdownApplication @ MSDN. Greetings Amanjit Gill |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |