Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygengetdfree.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
1.7.6.1
|