Click here to Skip to main content
15,914,419 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For example I can do it like this in C#
string[] names = Registry.CurrentUser.OpenSubKey("KEYNAME",true).GetValueNames();
Posted

You can use these functions:

RegOpenKeyEx[^]
ReqQueryInfoKey[^]
RegEnumValue[^]
RegCloseKey[^]

Have a look here[^] for an example.
 
Share this answer
 
I do this using RegOpenKeyEx and RegQueryValueEx. Precede the code with
MIDL
HMODULE hMod = LoadLibrary("advapi32.dll");


End the code with
MIDL
FreeLibrary(hMod);
if hMod != NULL
 
Share this answer
 
Comments
[no name] 2-Jan-11 18:42pm    
That works too, but then you have to know the names of all values you wish to read, at compile time.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900