flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > Missing constant definition for INFINITE.

Author
Thread Post new topic Reply to topic
SeproMan



Joined: 11 Oct 2009
Posts: 71
Location: Belgium
SeproMan 31 May 2025, 21:26
The WaitForSingleObject and WaitForMultipleObjects functions can use the INFINITE argument. I found it is missing from the KERNEL32.INC file (where I would have expected it to reside). Maybe it could be added to the 'General constants' section that for now has but 3 items:
Code:
; General constants

NULL  = 0
TRUE  = 1
FALSE = 0
    


I see a lot of people using either -1 or else 0xffffffff, instead of writing the much clearer INFINITE. What got me worried is that I found an online list of Windows equates that has INFINITE = 65535.

_________________
Real Address Mode.
Post 31 May 2025, 21:26
View user's profile Send private message Reply with quote
AsmGuru62



Joined: 28 Jan 2004
Posts: 1711
Location: Toronto, Canada
AsmGuru62 01 Jun 2025, 01:10
The current .INC files in FASM package are missing quite a bit of stuff from Windows API: structures, constants, etc.
If you search the forum (I think there is even a sticky post somewhere) -- you can find very good .INC files compiled by some good soul.
I once had an idea to make a converter which would load the .H file from Windows SDK package and parse it and create .INC file for FASM.
Well, it never got up to a conclusion.
Would be nice to have a tool like that -- any new SDK stuff could be ported to FASM.
Post 01 Jun 2025, 01:10
View user's profile Send private message Send e-mail 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.