Hi,
I am trying to open SQL Server Enterprise Manager from my application. Enterprise Manager is in reality just a MMC snapin that runs inside the MM Console for which there is an SDK provided. The problem i am facing is as follows.
I am able to start the Enterprise Manager by using:
Process proc = new Process();
proc.StartInfo.FileName="mmc.exe";
But to be able to control this application, I need to get the ApplicationClass object for this process. How do i do that.
MSDN suggests a similar functionality for Access and Excel. But that uses a Marshal.GetActiveObject( ) ... This works only if the object is registered in the ROT. In my case, I checked using the ROT Viewer and the MMC objects doesn't seem to have been registered at all.
Anyone ??
Thanks,
Nish
I am trying to open SQL Server Enterprise Manager from my application. Enterprise Manager is in reality just a MMC snapin that runs inside the MM Console for which there is an SDK provided. The problem i am facing is as follows.
I am able to start the Enterprise Manager by using:
Process proc = new Process();
proc.StartInfo.FileName="mmc.exe";
But to be able to control this application, I need to get the ApplicationClass object for this process. How do i do that.
MSDN suggests a similar functionality for Access and Excel. But that uses a Marshal.GetActiveObject( ) ... This works only if the object is registered in the ROT. In my case, I checked using the ROT Viewer and the MMC objects doesn't seem to have been registered at all.
Anyone ??
Thanks,
Nish