...or maybe this macro could become the "standard"?

At least, as Scronty says but starting from library, so in case of only one section:


data import
include '..\..\inc\gen_api.inc'
end data


Same inc valid also for:


section '.idata' import data readable
include '..\..\inc\gen_api.inc'


gen_api.inc:


; GENERAL PURPOSE API CALLS

library kernel,'KERNEL32.DLL',\
user,'USER32.DLL',\
.
.
.
RegCloseKey,'RegCloseKey'
Posted on 2002-07-22 09:14:44 by pelaillo

...or maybe this macro could become the "standard"?


I would never make something standard, wich slows down the compilation :/
If we have a complete file, covering almost all API's, Privalov can put it on his
homepage along with a example prog as sort of "addon".

BTW, there are about 1700 API functions included in WinXP :)
You find several lists via google, but no list wich shows the API's for each library...
maybe just write a prog wich scans the export table and prints it to a text file.
(hmm... I have done that before.... *searchs harddisk*)
Posted on 2002-07-22 09:19:08 by bazik
What about the CVS file in the PSDK?
Posted on 2002-07-22 09:44:02 by bitRAKE
This is why I call it "general purpose API calls".
Then there will be some specialized incs to be included only when needed.

BTW, I've tested the slowdown time of compiling asmwork.asm with incs of about 1050 api calls and is about 2 secs.
Posted on 2002-07-22 09:53:14 by pelaillo
I take them from Win32Api.xls on Hutch's Masm32 distro.

Before sending them to Privalov, I am formatting it to have:

most used,
gdi,
kernel,
user,
comctl,...

Regards,
Posted on 2002-07-22 10:01:28 by pelaillo

What about the CVS file in the PSDK?


Strange, someone placed a Win32API.csv in my PSDK directory without asking me :grin:

Thanks bitRAKE!
Posted on 2002-07-22 10:05:34 by bazik
This is a set of include files for API Calls of some libraries that I am using.

Version for unicode in separated files.

Regards,
Posted on 2002-07-23 05:31:08 by pelaillo
I have made even more extended "invoke" macro, with checking the parameters' count, I've put in the reply for other thread:

http://www.asmcommunity.net/board/showthread.php?s=&postid=49594.msg49594
Posted on 2002-07-23 13:25:46 by Tomasz Grysztar
I've completed the set of include files to use with FASM and new macro for parameter count check.

There are 6855 Win32 API calls taken from the Hutch's includes for Masm32.

Regards,
pelaillo
Posted on 2002-07-25 05:59:15 by pelaillo