flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Possible bug with nested API calls (Win32)

Author
Thread Post new topic Reply to topic
neounk



Joined: 24 Sep 2006
Posts: 9
neounk 06 Oct 2006, 16:46
It may just be me but it seems when an API takes no params you cannot nest it. IE:

invoke GetCurrentProcess
invoke OpenProcessToken,eax,TOKEN_ADJUST_PRIVILEGES+TOKEN_QUERY,hToken

works but:

invoke OpenProcessToken,<invoke GetCurrentProcess>,TOKEN_ADJUST_PRIVILEGES+TOKEN_QUERY,hToken

does not.


Error Undefined Symbol
Instruction:
pushd invoke GetCurrentProcess

proc32.inc [17]

FASM 1.67.7 incase you need to know.
Post 06 Oct 2006, 16:46
View user's profile Send private message Reply with quote
UCM



Joined: 25 Feb 2005
Posts: 285
Location: Canada
UCM 06 Oct 2006, 22:17
1. This should be in Macroinstructions, not Compiler Internals
2. Are you sure you are using win32ax.inc / other extened headers? Simply win32a.inc/win32w.inc will not enable nesting.
Post 06 Oct 2006, 22:17
View user's profile Send private message Reply with quote
neounk



Joined: 24 Sep 2006
Posts: 9
neounk 07 Oct 2006, 16:05
Ah, i was only using win32a.inc, thanks.
Post 07 Oct 2006, 16:05
View user's profile Send private message Reply with quote
OzzY



Joined: 19 Sep 2003
Posts: 1029
Location: Everywhere
OzzY 07 Oct 2006, 22:33
What header allows this?
Post 07 Oct 2006, 22:33
View user's profile Send private message Reply with quote
IceStudent



Joined: 19 Dec 2003
Posts: 60
Location: Ukraine
IceStudent 08 Oct 2006, 07:50
win32ax.inc
Post 08 Oct 2006, 07:50
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-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.