Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry

Status
Not open for further replies.

NN

IS-IT--Management
Apr 20, 2001
12
US
Can anyone tell me how to read and write to Windows registry using Visual C++
 
Look at these 2 functions:
RegOpenKey()
RegOpenKeyEx()

I used this one: I got it right out of MSDN library.

LONG RegOpenKeyEx(
HKEY hKey, // handle to open key
LPCTSTR lpSubKey, // subkey name
DWORD ulOptions, // reserved
REGSAM samDesired, // security access mask
PHKEY phkResult // handle to open key
);

good luck



 
There is also a CRegKey class and the CWinApp object WriteProfileString/Int ReadXXXX etc. methods -There are only 10 types of people in the world, those who understand binary and those who don't-

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top