How does FreePascal handle C-based platform APIs that use 64bit long?
When interfacing with C code it's suggested to use the types from the
ctypes unit (in this case
clong) as these are defined according to the platform (and for the Windows API it's of course suggested to use the appropriate types from the
Windows unit

).