invoke RegOpenKeyEx, HKEY_LOCAL_MACHINE, addr regstartup, 0, KEY_QUERY_VALUE, hKey

mov hBytes, 1

invoke RegQueryValueEx, hKey, NULL, NULL, REG_SZ, NULL, NULL ; <-- Crashy Mashy


Why? I've tried Everything! Btw, regstartup is defined as:

regstartup  db 'Software\Microsoft\Windows\CurrentVersion\Run', 0


What could be the reason for this prog to crash?

Thanks.
Posted on 2001-11-13 21:37:50 by lackluster
lackluster,

try



.data
nullstr db 0
.code
invoke RegQueryValueEx, hKey, addr nullstr, NULL, REG_SZ, NULL, NULL ; <-- Crashy Mashy
Posted on 2001-11-14 02:53:47 by japheth