Hello,

I am fairly new to c++ and winapi,
not new to coding though as I already code in php and javascript.

I am trying to use GetDiskFreeSpaceEx() to get the disk space sizes from my c: drive:

I define:

ULARGE_INTEGER* freeSpace;
ULARGE_INTEGER* totalSpace;
ULARGE_INTEGER* totalFreeSpace;

and on WM_LBUTTONDOWN:

if (GetDiskFreeSpaceEx( "C:\\", freeSpace, totalSpace, totalFreeSpace ))
{
cout << "-" << freeSpace << "-" << totalSpace << "-" << totalFreeSpace <<endl;
}
else
{
cout << "error";
}

It returns 0-0-0.

Any help? Thanks!