Posted By: ello
c++ , how to delete a binary key in the registry - 12/04/10 16:23
hi there,
can someone point me to how i can delete a certain binary entry in the registry? i can delete a whole key with its content but i cant find some example or info how to delete a certain binary entry...
for example how can i delete HKEY_LOCAL_MACHINE\\SOFTWARE\\MYKEY\\VALUE
thanks in advance,
ello
edit: ok, i found this RegDeleteKeyValue.. but how do i use it? i gent an error "error C2664: 'RegDeleteKeyValueW': Konvertierung des Parameters 2 von 'const char [33]' in 'LPCWSTR' nicht möglich"
this is how iwas trying it:
RegDeleteKeyValue(HKEY_LOCAL_MACHINE,"HKEY_LOCAL_MACHINE\\SOFTWARE\\MYKEY","VALUE");
can someone point me to how i can delete a certain binary entry in the registry? i can delete a whole key with its content but i cant find some example or info how to delete a certain binary entry...
for example how can i delete HKEY_LOCAL_MACHINE\\SOFTWARE\\MYKEY\\VALUE
thanks in advance,
ello
edit: ok, i found this RegDeleteKeyValue.. but how do i use it? i gent an error "error C2664: 'RegDeleteKeyValueW': Konvertierung des Parameters 2 von 'const char [33]' in 'LPCWSTR' nicht möglich"
this is how iwas trying it:
RegDeleteKeyValue(HKEY_LOCAL_MACHINE,"HKEY_LOCAL_MACHINE\\SOFTWARE\\MYKEY","VALUE");