#include <corecrt.h>
#include <io.h>
Go to the source code of this file.
◆ _A_ARCH
Definition at line 35 of file dos.h.
◆ _A_HIDDEN
Definition at line 31 of file dos.h.
◆ _A_NORMAL
Definition at line 29 of file dos.h.
◆ _A_RDONLY
Definition at line 30 of file dos.h.
◆ _A_SUBDIR
Definition at line 34 of file dos.h.
◆ _A_SYSTEM
Definition at line 32 of file dos.h.
◆ _A_VOLID
Definition at line 33 of file dos.h.
◆ _DISKFREE_T_DEFINED
This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.
Definition at line 19 of file dos.h.
◆ _GETDISKFREE_DEFINED
Definition at line 38 of file dos.h.
◆ diskfree_t
Definition at line 48 of file dos.h.
◆ _getdiskfree()
Definition at line 19 of file drivfree.cpp.
23{
26
28
29 wchar_t drive_name_buffer[4] = { '_', ':', '\\', '\0' };
30
33 : drive_name_buffer;
34
36 {
37 drive_name_buffer[0] =
static_cast<wchar_t>(
drive_number) +
static_cast<wchar_t>(
L'A' - 1);
38 }
39
40 static_assert(
sizeof(
result->sectors_per_cluster) ==
sizeof(
DWORD),
"Unexpected sizeof long");
41
47 {
50
51 return os_error;
52 }
53
54 return 0;
55}
int __cdecl __acrt_errno_from_os_error(unsigned long)
#define _VALIDATE_RETURN(expr, errorcode, retexpr)
#define ERROR_INVALID_PARAMETER
BOOL WINAPI GetDiskFreeSpaceW(IN LPCWSTR lpRootPathName, OUT LPDWORD lpSectorsPerCluster, OUT LPDWORD lpBytesPerSector, OUT LPDWORD lpNumberOfFreeClusters, OUT LPDWORD lpTotalNumberOfClusters)
DWORD WINAPI GetLastError(void)