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 ?