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.
lackluster,
try
try
.data
nullstr db 0
.code
invoke RegQueryValueEx, hKey, addr nullstr, NULL, REG_SZ, NULL, NULL ; <-- Crashy Mashy