Re: [Dev-C++] GetDiskFreeSpaceEx Question
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-03-22 10:39:45
|
You might use the uliFreeCaller.QuadPart value, which is a 64-bit integer. Or, if you know that the information is < 4GB, you have a 32-bit value in uliFreeCaller.LowPart. Note that since a HD normally is larger than 4 GB, you may not assume that you might send the information to a function that only accepts a 'normal integer value'. A little improvement would be to Rewrite your function to assume space in kB units, and then you call it with: =09MyFunction(unsigned(uliFreeCaller.QuadPart / 1024)); That would be safe up to 4TB disks. /Per W On Sat, 22 Mar 2003, Hammamur Rahman wrote: > > > Hi, I=92m using the following function: > > GetDiskFreeSpaceEx(&szDrives[i], &uliFreeCaller, &uliTotal, &uliFree) > > > > The uliFreeCaller, uliTotal, uliFree are all of type ULARGE_INTEGER. Now= I > need these values as normal integer so I could pass these values to anoth= er > function which only accepts normal integer values. How could I convert t= hem > to normal integer, do I have to cast them. Please help. > > > > Thank You! > > > > > _________________________________________________________________ > Use MSN Messenger to send music and pics to your friends > http://messenger.msn.co.uk > > > > ------------------------------------------------------- > This SF.net email is sponsored by:Crypto Challenge is now open! > Get cracking and register here for some mind boggling fun and > the chance of winning an Apple iPod: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |