I have probs with writing/read an int value in registry, do someone know a tutorial for me ?
bye
bye
Afternoon, Forginforcer.
Show us what you've done so far and where you think the problem may lie.
Cheers,
Scronty
Show us what you've done so far and where you think the problem may lie.
Cheers,
Scronty
hi, thats my problem, I have the invoke commmand only !
I want to read a reg key:
filepathsize DB 125
filepath DB 150 dup(0)
skey1 DB "Software\Microsoft\Windows", 0
regkey DWORD 0
sdescrp DB "huhu", 0
INVOKE RegOpenKeyEx, HKEY_LOCAL_MACHINE, ADDR skey1, NULL, KEY_ALL_ACCESS, ADDR regkey
.IF EAX == ERROR_SUCCESS
Invoke RegQueryValueExA, regkey, addr sdescrp, NULL, addr RegType, addr filepath, ADDR filepathsize
INVOKE MessageBox, NULL, ADDR filepath, ADDR filepath, NULL
.ENDIF
nothing else.
I want to read a reg key:
filepathsize DB 125
filepath DB 150 dup(0)
skey1 DB "Software\Microsoft\Windows", 0
regkey DWORD 0
sdescrp DB "huhu", 0
INVOKE RegOpenKeyEx, HKEY_LOCAL_MACHINE, ADDR skey1, NULL, KEY_ALL_ACCESS, ADDR regkey
.IF EAX == ERROR_SUCCESS
Invoke RegQueryValueExA, regkey, addr sdescrp, NULL, addr RegType, addr filepath, ADDR filepathsize
INVOKE MessageBox, NULL, ADDR filepath, ADDR filepath, NULL
.ENDIF
nothing else.
Thanks, I found the bug:
filepathsize must be an DWORD variable.
filepathsize DWORD 125
Thank you all !
filepathsize must be an DWORD variable.
filepathsize DWORD 125
Thank you all !