|
-
September 8th, 2009, 05:14 AM
#1
GetDiskFreeSpaceEx problem
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!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|