A
alangab
Hi, I'm write a utility that open ROT (running object table) looking for
Microsoft Word application registered. When there are 2 Winword running, the
ROT show two entries like this:
!{000209FF-0000-0000-C000-000000000046}
!{000209FF-0000-0000-C000-000000000046}
The two WORD application objects are registered with the same name. The name
is the CLSID of Microsoft Word 2000, prefixed with !
When I found those strings, I try to get the IUnknown interface of
application objects using IRunnuingObjectTable::GetObject. The code is like
this:
------------------------------------
if( !FAILED(pTable->GetObject(pCurMoniker, &pUnknown)) )
{
IDispatch* pDispatch;
if( !FAILED(pUnknown->QueryInterface(IID_IDispatch, (void**)&pDispatch)) )
{
_Application application;
application.AttachDispatch(pDispatch);
...
------------------------------------
This is fine for the first application object, when I do this operations for
the second entry of the ROT I get the same IUnknown interface of before.
I check the task manager and i have two Winword.exe processes.
What i do wrong?
TIA
Microsoft Word application registered. When there are 2 Winword running, the
ROT show two entries like this:
!{000209FF-0000-0000-C000-000000000046}
!{000209FF-0000-0000-C000-000000000046}
The two WORD application objects are registered with the same name. The name
is the CLSID of Microsoft Word 2000, prefixed with !
When I found those strings, I try to get the IUnknown interface of
application objects using IRunnuingObjectTable::GetObject. The code is like
this:
------------------------------------
if( !FAILED(pTable->GetObject(pCurMoniker, &pUnknown)) )
{
IDispatch* pDispatch;
if( !FAILED(pUnknown->QueryInterface(IID_IDispatch, (void**)&pDispatch)) )
{
_Application application;
application.AttachDispatch(pDispatch);
...
------------------------------------
This is fine for the first application object, when I do this operations for
the second entry of the ROT I get the same IUnknown interface of before.
I check the task manager and i have two Winword.exe processes.
What i do wrong?
TIA