Retrieving a string value from the registry.
check out the wrox site for CRegistry under the code example for the
book called Beginning NT programming.
The code is free for a quick fix... Or buy the book. It will help you
with all you introductory questions about NT programming. Anyway it is
the same thing that you find at
if( RegQueryValueEx(hKey, szSubKey, NULL, NULL, reinterpret_cast<LPBYTE>
(pData), &dwSize) == ERROR_SUCCESS )
> If you go to
> you can download a class called CRegistry (from the left frame) which
> wraps the APIs and seems to do everything you'd need
> > First, I want to thank Vladimir for all his help with registry
> > however, I'm still unable to read back the string values that I
store in the
> > registry. I've tried using RegQueryValue and RegQueryValueEx, but
> > Could someone send me the code required to get a _string_ value
> > registry? (I've got the RegOpenKey function working, all I need is
> > RegQueryValue or RegQueryValueEx function and how I should declare
> > variables.)
Sent via Deja.com http://www.deja.com/
Before you buy.