Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 397
  • Last Modified:

GetDiskFreeSpace() API

Hi,
The GetDiskFreeSpace API takes in three variables of type ULARGE_INTEGER. Can someone tell me how I can work with these numbers after I get them? I want to compare them...

Example...
ULARGE_INTEGER var1;
ULARGE_INTEGER var2;

if(var1 > var2) {
 // Do stuff
}

But this doesn't work because the > operator isn't implemented for ULARGE_INTEGER.
0
dankennedy
Asked:
dankennedy
  • 2
1 Solution
 
dankennedyAuthor Commented:
Actually it's the GetDiskFreeSpaceEx() API I'm using... but you probably figured that out...
0
 
jkrCommented:
Just take out the part that has the operators defined:

unsigned __int64 test1 = var1.QuadPart;
unsigned __int64 test2 = var1.QuadPart;

if ( test1 > test2) {
}
0
 
dankennedyAuthor Commented:
Thanks!
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now