NASM - The Netwide Assembler
NASM Forum => Using NASM => Topic started by: Marek Niewazne on August 27, 2009, 07:43:18 PM
-
xor rcx,rcx
call GetModuleHandleA
mov [hModule],eax
push 0
mov r9,MainDialogBoxProcedure
mov r8,0
mov rdx,1
mov rcx,rax
call DialogBoxParamA
ExitProgram:
mov rcx,0
call ExitProcess
MainDialogBoxProcedure:
push rbp
mov rbp,rsp
mov rax,[rbp+??] ;wParam
cmp rax,2 ;WM_DESTROY
jz MainDialogExit
cmp rax,10h ;WM_CLOSE
jz MainDialogExit
cmp rax,110h ;WM_INITDIALOG
jz MainDialogBoxInitDialog
cmp rax,111 ;WM_COMMAND
jz MainDialogBoxCheckUserAction
xor rax,rax
leave
ret
whats the value for hWnd under windows xp 64 bit ?
-
oops sorry wasnt clear enought last time so i try again ... after i call DialogBoxParamA windows return control to my previously defined dialog box procedure with some arguments located SOMWHERE on the stack like uMsg wParam hWnd and so on their location changed from win32 to win64 so now im not sure where are they located if anyone could clearm me out here would be greate thanks ;)