<br><font size=2 face="sans-serif">I'm trying to use a Win32 API function, which is being called like this:</font>
<br>
<br><font size=2 face="sans-serif">var</font>
<br><font size=2 face="sans-serif"> BytesAvail : int64;</font>
<br><font size=2 face="sans-serif"> BytesTotal : int64;</font>
<br><font size=2 face="sans-serif"> BytesFree : int64;</font>
<br><font size=2 face="sans-serif"> RootDir : array [1..4] of char;</font>
<br>
<br><font size=2 face="sans-serif">GetDiskFreeSpaceEx (@RootDir,BytesAvail,BytesTotal,@BytesFree);</font>
<br>
<br><font size=2 face="sans-serif">But when I compile I get this error:</font>
<br>
<br><font size=2 face="sans-serif">Incompatible type for arg no. 3: Got INT64, expected LARGE_INTEGER</font>
<br>
<br><font size=2 face="sans-serif">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.</font>
<br>
<br><font size=2 face="sans-serif">Obviously I'm doing something wrong here, but what is it?</font>
<br>
<br><font size=2 face="sans-serif">BTW; -i tells me the following:</font>
<br><font size=2 face="sans-serif">Free Pascal Compiler version 1.0.6</font>
<br><font size=2 face="sans-serif">Compiler Date : 2002/04/23</font>
<br><font size=2 face="sans-serif">Compiler Target: i386</font>
<br>
<br><font size=2 face="sans-serif">TIA...</font>
<br>
<br><font size=2 face="sans-serif">Jim</font>