how to write A regedit use c++

how to write key in regedit use c++

first i need to create it , for exmaple
MY_COMPUTER\HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\COMMON\NEW

COMMON HAVE NOT EXIST, AND THE NEW IS A KEY THAT REG_EXPAND_SZ

AND I NEED TO WRITE A STRING "2009-GDHUG-456-JK" IN IT

HOW CAN ACHIEVE IT?

THANKS
Last edited on
Use google to find more info...
RegOpenKeyA()
RegCreateKeyA()
RegSetValueA()
RegCloseKey()
Those were WIN16 functions. You need to check out:

RegCreateKeyEx
RegOpenKeyEx
RegSetValueEx
RegCloseKey
thanks for your help
it's helpful

i need to write a dll compatible with win xp, win vista
do all vista is 64 bit?

any change for the api using in this platform

egCreateKeyEx
RegOpenKeyEx
RegSetValueEx
RegCloseKey
closed account (z05DSL3A)
Both XP and Vista are available in 32bit and 64 bit variants.

Registry
http://msdn.microsoft.com/en-us/library/ms724871(VS.85).aspx

32-bit and 64-bit Application Data in the Registry
http://msdn.microsoft.com/en-us/library/ms724072(VS.85).aspx
Topic archived. No new replies allowed.