

How can I figure out which object is being hosted in an instance of dllhost?
source link: https://devblogs.microsoft.com/oldnewthing/20210802-00/?p=105510
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

How can I figure out which object is being hosted in an instance of dllhost?

Raymond
August 2nd, 2021
We saw some time ago that the dllhost.exe
process goes by the name COM Surrogate and is used when a COM object is configured to run in a separate process.
If you have found an instance of the dllhost.exe
process, how can you figure out which COM object is running inside it? For example, maybe you are debugging an out-of-process COM object and you want to find the dllhost.exe
that is hosting it, so you can debug further. Or you’re studying a crash of dllhost.exe
and you want to know what object the crashed dllhost.exe
was working with.
Note that this information is for debugging purposes only.
The information is encoded in the dllhost.exe
command line. From the debugger, you can use the !peb
command to view the command line. You can also ask Task Manager to show the command line by going to the Details page and turning on the Command line column.
From the command line, extract the GUID. That is the AppId of the object loaded into the dllhost.exe
process. You can look up this GUID in the registry under HKEY_CLASSES_ROOT\AppId\{Guid}
. That will give you some information about what the object is. To obtain the CLSID that corresponds to the AppId, go to HKEY_CLASSES_ROOT\CLSID
and search for the AppId GUID. It will be a value inside one of the CLSID entries. That’s the object.
Recommend
-
6
GitLab hosted virtual TBD event - me being interviewed about my book This is quite exciting for me: With GitLab hosting, This...
-
14
欢迎转载,请支持原创,保留原文链接:blog.ilibrary.me functools.l...
-
15
C ++: Destroyer for the same instance of an object called twice advertisements so basically I have some c++ code in VS2013 that looks like thi...
-
9
Make an instance of the Singleton Class object eligible for GC advertisements I have a class JAXBReader which hold unmarshalled xml fi...
-
8
-
8
Use Object Instance Function as JSONP Callback Function February 20, 2015 In...
-
11
Snap Outlines New Advances in Virtual Object Creation, Which Could Accelerate the Metaverse Shift Published Aug. 8, 2022 By
-
6
A Guide to Clouds: Object, File, and Block January 4, 2023 by Patrick Thomas //
-
6
Science + Technology A mysterious object is being dragged into the supermassive black hole at the Milky Way’s center UCLA...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK