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

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

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

enter 0,0

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

call ExitProcess ,0
xor eax,eax
ret 16
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