; MsgBox example: FASMW version

format PE GUI 4.0
entry start

include '%include%\win32a.inc'

section '.data' data readable writeable

_MsgCaption db "Iczelion's tutorial no. 2",0
_MsgBoxText db "Win32 Assembly is Great!",0

section '.code' code readable executable

start:
invoke MessageBox, HWND_DESKTOP,\
_MsgBoxText, _MsgCaption, MB_ICONINFORMATION+MB_OK
exit:
invoke ExitProcess, 0


section '.idata' import data readable writeable

library kernel32,'KERNEL32.DLL',\
user32,'USER32.DLL'

import kernel32,\
ExitProcess,'ExitProcess'

import user32,\
MessageBox,'MessageBoxA'

; Cheers,
;
; The I
Posted on 2003-08-14 06:30:59 by imagineer