I have created my own interface to read and make changes to
the registry, and everything works just fine and dandy
except when I want to set a DWORD-value.
Then I get Invalid DWORD value, when I check the Registry.
part of my code:
//setval below is the dword value I want to add to registry
data = (char*) malloc(sizeof(setval));
//theCurrentHKEY is for example:
//and value the value to set
RegSetValueEx(theCurrentHKEY, value, ReservedValue,
REG_DWORD, (const byte*)data, sizeof(data));
so any ideas as to why this doesn't work?
(WinNT4 servicepack3, VC5 servicepack1)