Click to See Complete Forum and Search --> : IRunningObjectTable how do it work.


rick
April 12th, 1999, 03:12 PM
I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?

Rick

Rick
April 12th, 1999, 03:12 PM
I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?

Rick

Oron Lenz
May 6th, 1999, 11:55 AM
try this code:
IRunningObjectTablePtr rot;
IEnumMonikerPtr MonikersTable;
IMonikerPtr CurrentMoniker;

if(GetRunningObjectTable(0, &rot) != S_OK)
return NULL; // couldn't access ROT !!!
rot->EnumRunning(&MonikersTable);
MonikersTable->Reset();
while(MonikersTable->Next(1, &CurrentMoniker, NULL) == S_OK)

... and use the moniker to get the interface.

Hope that what you ment.