I've tried to get free drive space information using the API GetDiskFreeSpaceEx(), but ended with some exceptions.

...
ULARGE_INTEGER i64FreeBytes, i64TotalBytes;

GetDiskFreeSpaceEx(NULL, i64FreeBytes, i64TotalBytes, NULL);
...

I've 'unhandled exception' when executing the API. Any suggestion ?
Thanks.