API Call problem

BlitzMax Forums/BlitzMax Programming/API Call problem

The function return type should be int.

[edit]
...As you've already discovered. ;o)

You can also do this...
Extern "Win32"
  Function GetDiskFreeSpaceEx(WindowText$z, FreeBytesToCaller%% Var, TotalBytes%% Var, TotalFree%% Var) = "GetDiskFreeSpaceExA@16"		
End Extern

...ETC...
					
GetDiskFreeSpaceEx("C:", FreeBytesToCaller%%, Total%%, FreeBytes%%)

...ETC...
[/edit]