Solved

GetDiskFreeSpace() API

Posted on 2003-12-02
3
340 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
  • 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

706 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now