开发者

How to get CLSID variable name, like MSVC?

开发者 https://www.devze.com 2023-01-15 02:57 出处:网络
When you are debugging a program and you hover over a GUID variable, MSVC retrieves both the variable name (e.g. CLSID_FilterGraph) and the human name (e.g. Filter Graph Object).

When you are debugging a program and you hover over a GUID variable, MSVC retrieves both the variable name (e.g. CLSID_FilterGraph) and the human name (e.g. Filter Graph Object).

It does the second by looking at HKCR\CLSID\GUID - but where does it get the variable name from?? It's not in the registry.

Any id开发者_开发知识库eas?


The debugging info in the .pdb, probably. It just needs to iterate the CLSIDs defined in the mumble_i.c file generated by MIDL. No problem matching them, they are after all globally unique :)

0

精彩评论

暂无评论...
验证码 换一张
取 消