如何使用c#?
在远程计算机上获取已安装组件服务的版本这适用于本地机器......任何人都可以告诉如何访问远程机器吗?
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;