Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

GetDiskFreeSpace() API

Posted on 2003-12-02
3
Medium Priority
?
395 Views
Last Modified: 2008-03-06
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
Comment
Question by:dankennedy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 2

Author Comment

by:dankennedy
ID: 9861730
Actually it's the GetDiskFreeSpaceEx() API I'm using... but you probably figured that out...
0
 
LVL 86

Accepted Solution

by:
jkr earned 1000 total points
ID: 9861758
Just take out the part that has the operators defined:

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

if ( test1 > test2) {
}
0
 
LVL 2

Author Comment

by:dankennedy
ID: 9861848
Thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question