ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

getdfree.c
Go to the documentation of this file.
00001 #include <precomp.h>
00002 #include <ctype.h>
00003 #include <direct.h>
00004 
00005 
00006 /*
00007  * @implemented
00008  */
00009 unsigned int _getdiskfree(unsigned int _drive, struct _diskfree_t* _diskspace)
00010 {
00011     char RootPathName[10];
00012 
00013     RootPathName[0] = toupper(_drive +'@');
00014     RootPathName[1] = ':';
00015     RootPathName[2] = '\\';
00016     RootPathName[3] = 0;
00017     if (_diskspace == NULL)
00018         return 0;
00019     if (!GetDiskFreeSpaceA(RootPathName,(LPDWORD)&_diskspace->sectors_per_cluster,(LPDWORD)&_diskspace->bytes_per_sector,
00020             (LPDWORD )&_diskspace->avail_clusters,(LPDWORD )&_diskspace->total_clusters))
00021         return 0;
00022     return _diskspace->avail_clusters;
00023 }

Generated on Fri May 25 2012 04:34:53 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.