Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Пример диалогового окна (в случае нажатия Yes, открывает ещё одно окно)
- include '%fasm%\win32ax.inc'
- section '.code' code readable executable
- start:
- invoke MessageBox,NULL,lpText,lpCaption,\
- MB_YESNO+MB_ICONQUESTION
- cmp eax,IDYES
- jne exit
- invoke MessageBox,NULL,lpText,lpCaption,\
- MB_OK
- exit:
- invoke ExitProcess,0
- section '.data' data readable writeable
- lpText db 'Text',0
- lpCaption db 'Caption',0
- data import
- library kernel32,'KERNEL32.DLL',\
- user32,'USER32.DLL'
- import kernel32,ExitProcess,'ExitProcess'
- import user32,MessageBox,'MessageBoxA'
- end data
- Код:
- start:
- invoke MessageBox,NULL,'Text','Caption',\
- MB_YESNO+MB_ICONQUESTION\
- +MB_RIGHT+MB_DEFBUTTON2
- cmp eax,IDYES
- jne exit
- invoke MessageBox,NULL,'Caption','Text',\
- MB_OKCANCEL+MB_ICONQUESTION\
- +MB_SETFOREGROUND+MB_RTLREADING
- cmp eax,IDYES
- jne exit
- invoke MessageBox,NULL,'...','...',\
- MB_OK+MB_ICONEXCLAMATION
- exit:
- invoke ExitProcess,0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement