I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?
Rick
Printable View
I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?
Rick
I have to access the IRunningObjectTable (ROT)to find Word but how can I access it, quickly?
Rick
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.