HELP: How to Query Binary registry values 
Author Message
 HELP: How to Query Binary registry values


Below is a snippet of code which works fine foor querying string values from
the registry. Could someone explain to me what is required to query binary

I have read the help for RegQueryValueEx but am unsure what to make of it.

Any help or suggestions greatly appreciated.

HKEY hKey;
DWORD dwSize = 24 ;
CString RegQuery;

if (RegOpenKey (HKEY_LOCAL_MACHINE,"Key\\Here",&hKey)==ERROR_SUCCESS)

 if (RegQueryValueEx (hKey, "Key Value", NULL,
NULL,(LPBYTE)RegQuery.GetBuffer(25),&dwSize) == ERROR_SUCCESS)
   RegQuery.ReleaseBuffer (0);

Mon, 09 Jul 2001 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. HELP: How to Query Binary registry values

2. Query registry values doesn't work in release

3. Registry & Binary Values

4. Setting Large (Binary) values in Registry

5. Setting large binary values in registry using RegSetValueEx

6. Getting Binary Registry Key Value

7. Reading binary registry value

8. Read a binary value from the registry

9. Registry & Binary Values

10. Writing Binary Values to Win95 Registry

11. Please help query registry

12. Help Need setting Windows NT Registry Values


Powered by phpBB® Forum Software