Gento
April 13th, 2004, 08:47
Hi i've trying this:
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0
dfx db "DFX Close",0
handlewindow dd 00000000h
.code
start:
xor eax,eax
invoke FindWindowA, 0, addr dfx
cmp eax,0
je start
mov handlewindow, eax
invoke GetDlgItem, eax, 02bfh
mov handlewindow, eax
invoke SendMessageA, eax,WM_LBUTTONDOWN,0,0
mov eax, handlewindow
invoke SendMessageA, eax,WM_LBUTTONUP,0,0
invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL
end start
but 02bfh is no correct. Can anybody helo me??? I have seeing the api reference but i can see the correct value.
.386
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib
.data
MsgCaption db "Iczelion's tutorial no.2",0
MsgBoxText db "Win32 Assembly is Great!",0
dfx db "DFX Close",0
handlewindow dd 00000000h
.code
start:
xor eax,eax
invoke FindWindowA, 0, addr dfx
cmp eax,0
je start
mov handlewindow, eax
invoke GetDlgItem, eax, 02bfh
mov handlewindow, eax
invoke SendMessageA, eax,WM_LBUTTONDOWN,0,0
mov eax, handlewindow
invoke SendMessageA, eax,WM_LBUTTONUP,0,0
invoke MessageBox, NULL,addr MsgBoxText, addr MsgCaption, MB_OK
invoke ExitProcess,NULL
end start
but 02bfh is no correct. Can anybody helo me??? I have seeing the api reference but i can see the correct value.
