Solved

GetDiskFreeSpace() API

Posted on 2003-12-02
3
392 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 250 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

630 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