I have probs with writing/read an int value in registry, do someone know a tutorial for me ?

bye
Posted on 2003-04-05 15:56:05 by Forginforcer
Afternoon, Forginforcer.

Show us what you've done so far and where you think the problem may lie.

Cheers,
Scronty
Posted on 2003-04-05 19:49:57 by 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.
Posted on 2003-04-06 03:16:44 by Forginforcer
Thanks, I found the bug:
filepathsize must be an DWORD variable.
filepathsize DWORD 125

Thank you all !
Posted on 2003-04-06 06:05:24 by Forginforcer