Solved

How to get full path of a registry key depending on registry handle like HKEY hKey

Posted on 2002-07-10
4
1,495 Views
Last Modified: 2008-03-17
Hi,all
The question is , I have a registry key handle, HKEY hKey,
how to get the full path of this hKey?

the full path is like this:

HKEY_LOCAL_MACHINE/Software/Microsoft/......

and the hKey is retrieved by some registry API like RegOpenKeyEx(..)
0
Comment
Question by:greensleeve
4 Comments
 
LVL 12

Expert Comment

by:pjknibbs
ID: 7145362
I don't think this is possible, but since you presumably created this registry key handle in the first place, how come you've forgotten what it points at?
0
 
LVL 2

Accepted Solution

by:
Serega earned 50 total points
ID: 7145511
See MSDN for API function  RegQueryInfoKey
0
 
LVL 11

Expert Comment

by:griessh
ID: 7375954
Dear greensleeve

I think you forgot this question. I will ask Community Support to close it unless you finalize it within 7 days. You can always request to keep this question open. But remember, experts can only help you if you provide feedback to their questions.
Unless there is objection or further activity,  I will suggest to accept

     "Serega"

comment(s) as an answer.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
======
Werner
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 7419800
Force accepted

** Mindphaser - Community Support Moderator **
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question