flat assembler
Message board for the users of flat assembler.

Index > Windows > about including and importing

Author
Thread Post new topic Reply to topic
Ali.Z



Joined: 08 Jan 2018
Posts: 732
Ali.Z 15 Jan 2018, 08:13
so whats the main difference:

Code:
library kernel, 'kernel32.dll' 

import kernel, ExitProcess, 'ExitProcess'    


between this and this:

Code:
library kernel, 'kernel32.dll'

include \api\kernel32.inc    


does the last one include/import every function in *.dll?
or it just make the life easier when we dont want to say import this function and import that, the compiler automatically will include/import any functions we used?



Code:
includelib kernel32.* ; dll or lib?
; and what is this, i just dont get it!    

_________________
Asm For Wise Humans
Post 15 Jan 2018, 08:13
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20445
Location: In your JS exploiting you and your system
revolution 15 Jan 2018, 13:39
Ali.A wrote:
does the last one include/import every function in *.dll?
Yes. You can open the file and see exactly what it defines. And maybe some newer APIs are not listed yet.
Ali.A wrote:
Code:
includelib kernel32.* ; dll or lib?
; and what is this, i just dont get it!    
In fasm it is nothing.
Post 15 Jan 2018, 13:39
View user's profile Send private message Visit poster's website Reply with quote
Ali.Z



Joined: 08 Jan 2018
Posts: 732
Ali.Z 15 Jan 2018, 17:28
ah i see, thanks.
Post 15 Jan 2018, 17:28
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.