How to get the handle of a MessageBox.
Can I use FindWindow, and only pass the window name?


:confused:
Posted on 2001-08-27 14:37:28 by NSR
extern MessageBoxA
extern ExitProcess
extern FindWindowA
extern SendMessageA
extern ShellExecuteA
%include '\lab\vasm\inc\win32n.inc'
%include '\lab\vasm\inc\nagoa.inc'



ClassName db '#32770',0 ; <--messagebox?s



..start:
enter 0,0

call FindWindowA,ClassName,0
call SendMessageA,eax,WM_CLOSE,0,0

exit:
call ExitProcess ,0
xor eax,eax
leave
ret 16

http://visual-assembler.pt.vu
Posted on 2001-08-27 19:53:22 by Nguga
The strange thing is that in Window a
Messageboxa is a macro window

with button and label ....
Posted on 2001-08-27 19:55:03 by Nguga
Thanks Nguga, It works great!:)
Posted on 2001-08-27 22:48:49 by NSR