#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.
11 char RootPathName[10];
13 RootPathName[0] =
toupper(_drive +
'@');
14 RootPathName[1] =
':';
15 RootPathName[2] =
'\\';
17 if (_diskspace ==
NULL)
unsigned bytes_per_sector
BOOL WINAPI GetDiskFreeSpaceA(IN LPCSTR lpRootPathName, OUT LPDWORD lpSectorsPerCluster, OUT LPDWORD lpBytesPerSector, OUT LPDWORD lpNumberOfFreeClusters, OUT LPDWORD lpTotalNumberOfClusters)
unsigned sectors_per_cluster