hello
i have trouble with delete all my entries keys in the registry
szKeyName db "SOFTWARE\ragdog\myapp\info", 0
szValueName db "TestKey",0
szString db "Test",0
this is my source:
DelRegString proc lpszKeyName:dword, lpszValueName:dword
LOCAL Disp:DWORD
LOCAL pKey:DWORD
invoke RegCreateKeyEx,HKEY_LOCAL_MACHINE,lpszKeyName,NULL,NULL, \
REG_OPTION_NON_VOLATILE,KEY_ALL_ACCESS,NULL,addr pKey,addr Disp
.if eax == ERROR_SUCCESS
invoke RegDeleteValue,pKey,lpszValueName
push eax
invoke RegCloseKey, pKey
pop eax
.endif
ret
DelRegString endp
is this correct RegDeleteKey?
can help their me please?
greets
ragdog
i have it :red
The function will remove the key and all of the key's values from the registry
szKeyName db "SOFTWARE\ragdog\", 0
invoke SHDeleteKey,HKEY_LOCAL_MACHINE,ADDR szKeyName