flat assembler
Message board for the users of flat assembler.

Index > Windows > Return Value from API commands

Author
Thread Post new topic Reply to topic
Killswitch



Joined: 21 Jan 2006
Posts: 20
Killswitch 14 Apr 2006, 15:43
Hey,

Could someone please explain how you get the return value of an Win32 API call in FASM?

Thanks a lot,

Killswitch
Post 14 Apr 2006, 15:43
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 14 Apr 2006, 15:49
EAX register holds the return value, check an example:
Code:
        invoke  MessageBox,0,_message,_caption,MB_ICONQUESTION+MB_YESNO
        cmp     eax,IDYES
        jne     exit
    

(That code is the "beer" example of FASM package)
Post 14 Apr 2006, 15:49
View user's profile Send private message Reply with quote
Killswitch



Joined: 21 Jan 2006
Posts: 20
Killswitch 14 Apr 2006, 16:20
Thank you!
Post 14 Apr 2006, 16:20
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.