Forum posts for dllhost.exe

Out-of-Proc-COM-Server (x86): dllhost.exe looks in wrong registry path

I write for a COM-Server (x86) a wrapper based on a DLL surrogate (x64) described like here to get access from a 64-bit-client.

I registered the COM-Server (x86) and the Proxy/Stub-DLL (x86) and they registered in the WOW6432-Nodes.

But when I call the instance with

IShellServerx86* pShellServer = NULL;
::CoCreateInstance(__uuidof(CShellServerx86), NULL, CLSCTX_LOCAL_SERVER |
CLSCTX_ACTIVATE_32_BIT_SERVER, __uuidof(IShellServerx86),
(void**)&pShellServer);


the dllhost.exe is started and I get back 'Class not registered'. When I analyse the dllhost.exe (x86-version!) with procmon I can see that the dllhost.exe tries to look up the paths in the 64bit-registry and not in the WOW6432-Nodes.

I tried to dupliate the registry entries into the 64-bit-paths but then I get back '%1 is not a WIN32 application'.

How can I can COM to look up in the 32-bit paths? Is the flag 'CLSCTX_ACTIVATE_32_BIT_SERVER' not enough?

Thanks for your help in advance.

Tobias

EDIT:

I found at MSDN this article that told that with Windows 7 registry reflection is disabled? It is said that all CLSIDs that contains a InprocServer32-Key are not reflected. But how then can I achieve reflection when I use System-Surrogation?

View complete forum thread with replies

Other posts related to dllhost.exe

See Related Forum Messages: Follow the Links Below to View Complete Thread

Why cant I profile using vsperfmon by attaching to dllhost.exe?
How to monitor a process that launches “dllhost.exe”?
Out-of-Proc-COM-Server (x86): dllhost.exe looks in wrong registry path
generating dmp files from an inproc com dll running in dllhost.exe
dllhost.exe not available for debugging
Why do inetinfo.exe, dllhost.exe and aspnet_wp.exe all start under debugger on themselves an…
How to programmatically recycle a dllhost.exe process in COM+?
Debugging COM+ in Delphi 2009 : the dllhost.exe /ProcessID does not work
Dllhost.exe*32 is unable to release 32-bit resources during uninstallation on a 64 bit machine
debugging an inproc com server running in dllhost.exe
PrintTicket DllHost.exe Memory Climbs
How to launch COM server in separate dllhost process?

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.