flat assembler
Message board for the users of flat assembler.

Index > Windows > use API macros

Author
Thread Post new topic Reply to topic
marcinzabrze12



Joined: 07 Aug 2011
Posts: 61
marcinzabrze12 21 Jun 2012, 00:06
How can i use API macrodefinition - example ZwCurrentThread or ZwCurrentProcess. Simply import like funktions does't work error "not found specified functions".
Post 21 Jun 2012, 00:06
View user's profile Send private message Send e-mail Reply with quote
bzdashek



Joined: 15 Feb 2012
Posts: 147
Location: Tolstokvashino, Russia
bzdashek 21 Jun 2012, 04:50
marcinzabrze12 wrote:
How can i use API macrodefinition - example ZwCurrentThread or ZwCurrentProcess. Simply import like funktions does't work error "not found specified functions".

You can't, you have to do it "hard way". Them macros are defined in *.h files in VS. You can either define them using macro keyworrd or use API call which is called by needed macro. If you do not have the VS distribution, you can search for "define <macro_name>", and there's high probability that google will give you the correct definition, i.e.:
ZwCurrentThread is NtCurrentThread API call
ZwCurrentProcess is NtCurrentProcess API call
Post 21 Jun 2012, 04: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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.