anyone has a simple example without forms on how to set\delete a registry key\value ? if so plz post here tnx
Posted on 2001-02-27 22:07:00 by __DuDu__
.data szType db "REG_SZ",0 szData db "TEST",0 szSubkeyToCreate db "XYZ",0 szValueName db "Log",0 nResult DWORD 0 .data? nDisposition DWORD ? nDataLength DWORD ? invoke RegCreateKeyEx, HKEY_CURRENT_USER, ADDR szSubkeyToCreate,\ NULL, ADDR szType, REG_OPTION_VOLATILE, KEY_ALL_ACCESS,\ NULL, ADDR nResult, ADDR nDisposition invoke RegSetValueEx, nResult, ADDR szValueName, NULL, REG_SZ,\ ADDR szData, nDataLength invoke RegDeleteValue, nResult, ADDR szValueName invoke RegDeleteKey, HKEY_CURRENT_USER, ADDR szSubkeyToCreate hth vesa
Posted on 2001-02-28 02:59:00 by vesa
If your looking for an example program, check out my file http://asmsource.8k.com/files32/regi32.zip which shows how to write a string and a number. Any question, feel free to ask. Goodluck,john
Posted on 2001-02-28 07:28:00 by mega
try this, to add a value. retrieving data is harder. .data AppHWnd dd 0 hKey dd 80000002h ; HKEY_LOCAL_MACHINE lpValueName db 'value',0 lpData db 'data',0 cbData dd 05h ; lpData + 6 lpSubKey db 'SOFTWARE\Microsoft\Windows\CurrentVersion\Run', 0 phkResult dd 0 lpdwDisposition dd 0 .code push offset lpdwDisposition push offset phkResult push 0 push 1F0000h + 1 + 2h push 0 push 0 push 0 push offset lpSubKey push hKey call RegCreateKeyExA push cbData push offset lpData push 01h push 0 push offset lpValueName push phkResult call RegSetValueExA push 0 call RegCloseKey skud.
Posted on 2001-03-29 13:50:00 by skud