flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > [solved]Problem with name matching in FASM\INCLUDE\API\*.inc

Author
Thread Post new topic Reply to topic
Core i7



Joined: 14 Nov 2024
Posts: 39
Location: Socket in motherboard
Core i7 02 Mar 2025, 11:10
Hello everyone!
When importing API from *.inc enumerations, I sometimes get collisions, which is why I have to comment out the function names. For example, the same functions for working with the RegOpenKeyEx() registry are written in both the Kernel32.inc file and in Advapi32.inc. Maybe there is some macro to specify in the import section from which specific file to import the functions? Thanks.
Post 02 Mar 2025, 11:10
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20517
Location: In your JS exploiting you and your system
revolution 02 Mar 2025, 18:38
There is some corruption in your include files, because RegOpenKeyEx should only exist in Advapi32.inc.
Post 02 Mar 2025, 18:38
View user's profile Send private message Visit poster's website Reply with quote
Core i7



Joined: 14 Nov 2024
Posts: 39
Location: Socket in motherboard
Core i7 03 Mar 2025, 03:58
revolution wrote:
There is some corruption in your include files

Now I checked in the old version of FASM 1.73.11, and it's true that API\Kernel32.inc doesn't have any functions for working with the registry. Apparently, this was specifically intended by the author to eliminate collisions. And I created these includes myself for all common libraries, because Win8-11 had new APIs that weren't in the default includes. Thank you very much, now I'll know.
Post 03 Mar 2025, 03:58
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.