• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

ASM [MASM]MessageBox Example

Status
Not open for further replies.

Yahik0

Leech
User
Joined
Dec 13, 2014
Messages
10
Reputation
0
Reaction score
63
Points
13
Credits
0
‎10 Years of Service‎
100%
[HIDE-THANKS]

Code:
>
;------------Block 1----------
.386
.model flat,stdcall
option casemap:none


;------------Block 2----------
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib


;------------block 3----------
.data
szCaption db "Hello",0
szMsg db "Hello World!",0


;------------Block 4----------
.data?
retvalue dd ?


;------------Block 5----------
.code
start:
invoke MessageBox,NULL,addr szMsg,addr szCaption,MB_OK
mov retvalue,eax
xor eax,eax
invoke ExitProcess,eax
end start
[/HIDE-THANKS]

 
Status
Not open for further replies.
Back
Top