#include <precomp.h>
#include <ctype.h>
#include <direct.h>
Go to the source code of this file.
◆ _getdiskfree()
Definition at line 9 of file getdfree.c.
10{
11 char RootPathName[10];
12
13 RootPathName[0] =
toupper(_drive +
'@');
14 RootPathName[1] = ':';
15 RootPathName[2] = '\\';
16 RootPathName[3] = 0;
17 if (_diskspace ==
NULL)
18 return 0;
21 return 0;
23}
BOOL WINAPI GetDiskFreeSpaceA(IN LPCSTR lpRootPathName, OUT LPDWORD lpSectorsPerCluster, OUT LPDWORD lpBytesPerSector, OUT LPDWORD lpNumberOfFreeClusters, OUT LPDWORD lpTotalNumberOfClusters)
unsigned bytes_per_sector
unsigned sectors_per_cluster