Determine path to registry key from HKEY handle in C++

前端 未结 5 1663
北荒
北荒 2020-11-30 04:23

Given a handle to a Windows Registry Key, such as the ones that are set by ::RegOpenKeyEx(), is it possible to determine the full path to that key?

I realize that in

5条回答
  •  遥遥无期
    2020-11-30 05:01

    Nominally no because it's just a handle and there is no API that I know of to let you do this in the normal Windows API's.

    HOWEVER the Native API has lots of functions some of which can give you handles open for given files and the like so there maybe something similar for the Registry. That and RegMon by SysInternals may do something like this but you'll have to Google I'm afraid :/

提交回复
热议问题