Solved

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

Posted on 2002-07-10
4
1,546 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

705 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