flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > Static import of Windows programs

Author
Thread Post new topic Reply to topic
macomics



Joined: 26 Jan 2021
Posts: 161
Location: Russia
macomics
A self-compiled Windows Batch file for creating include files for static function import to FASM.


Description:
Download
Filename: export.zip
Filesize: 2.67 KB
Downloaded: 95 Time(s)

Post 07 Aug 2021, 19:25
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 394
Location: Ukraine
Overclick
Why don't you just include it to your projects?
Code:
include 'MyMacros or code or whatever functions you need.INC'    
Post 25 Aug 2021, 16:22
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 161
Location: Russia
macomics
This macro is needed to create plug-in fasm files for static function import from Windows libraries. If the project does not have compiled libraries that are statically connected to the main file, there is no need for it. But if necessary, you can also update the plug-in files of static import of standard Windows libraries and add the missing ones. For myself, I rewrote the standard macros included in the fasm kit for static function import. I need the functions to be listed in a different order, but I was too lazy to rewrite them manually. In order to understand how it works, just try writing in the command line "export.cmd %WinDir%\system32\kernel32.dll", or "export.cmd %WinDir%\system32\winmm.dll".
Post 25 Aug 2021, 17:09
View user's profile Send private message Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 394
Location: Ukraine
Overclick
Why don't you use import section to add missing/required functions from any library you want?


Description:
Filesize: 21.15 KB
Viewed: 568 Time(s)

Capture.PNG


Description:
Filesize: 13.79 KB
Viewed: 568 Time(s)

Capture.PNG


Post 25 Aug 2021, 17:24
View user's profile Send private message Visit poster's website Reply with quote
Overclick



Joined: 11 Jul 2020
Posts: 394
Location: Ukraine
Overclick
You can include your "plug-in" to
section '.idata' import data readable writeable
or use my multisection macro precent somewhere in this thread
Post 25 Aug 2021, 17:28
View user's profile Send private message Visit poster's website Reply with quote
macomics



Joined: 26 Jan 2021
Posts: 161
Location: Russia
macomics
There is a slightly different principle here. The import section is also used, but you have someone's library and some functions in it. The macro lists them from an already compiled library and forms it as a plug-in file added to the import section.
Post 25 Aug 2021, 17:46
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-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.