"Carl Daniel [VC++ MVP]" <cp*****************************@mvps.org.nospam >
wrote
Adam Clauss wrote: If I am just given an open HKEY, is there a function I can use to
retrieve the name of the key?
No, there isn't. Regmon from sysinternals does this by intercepting all
RegOpen/RegCreate calls and building it's own map of handle -> path.
IIRC you should be able to determine the path by querying the object
name. For instance, with Zw/NtQueryObject. Although there's quite
some information available, it's not a documented feature, however.
(IIRC there's an article on codeproject about the NT API)
If one is interested in debugging only, the !handle extension might be good
enough.
-hg