I'm trying to use a Win32 API function, which is being called like this:
var
BytesAvail : int64;
BytesTotal : int64;
BytesFree : int64;
RootDir : array [1..4] of char;
GetDiskFreeSpaceEx (@RootDir,BytesAvail,BytesTotal,@BytesFree);But when I compile I get this error:
Incompatible type for arg no. 3: Got INT64, expected LARGE_INTEGER
I've checked the .pdf files for the definition of LARGE_INTEGER, but I'm unable to locate that. The Win32 API Reference lists both the 2nd and 3rd args as PULARGE_INTEGER, so it seems a bit odd that the 2nd arg is being classified as okay while the 3rd isn't (unless the expression is being evaluated right to left, in which case the 2nd arg isn't checked yet and I just lied :-). I tried using -Sd too, but that didn't help either.
Obviously I'm doing something wrong here, but what is it?
BTW; -i tells me the following:
Free Pascal Compiler version 1.0.6
Compiler Date : 2002/04/23
Compiler Target: i386
TIA...
Jim
