STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
dos.h
Go to the documentation of this file.
1 //
2 // dos.h
3 //
4 // Copyright (c) Microsoft Corporation. All rights reserved.
5 //
6 // This file declares the structures, constants, and functions used for the
7 // legacy DOS interface.
8 //
9 #pragma once
10 #define _INC_DOS
11 
12 #include <corecrt.h>
13 
15 
16 
17 
18 // File attribute constants
19 #define _A_NORMAL 0x00 // Normal file - No read/write restrictions
20 #define _A_RDONLY 0x01 // Read only file
21 #define _A_HIDDEN 0x02 // Hidden file
22 #define _A_SYSTEM 0x04 // System file
23 #define _A_SUBDIR 0x10 // Subdirectory
24 #define _A_ARCH 0x20 // Archive file
25 
26 
27 
28 #ifdef _CRT_USE_WINAPI_FAMILY_DESKTOP_APP
29 
30  #ifndef _DISKFREE_T_DEFINED
31  #define _DISKFREE_T_DEFINED
32 
33  struct _diskfree_t
34  {
35  unsigned total_clusters;
36  unsigned avail_clusters;
37  unsigned sectors_per_cluster;
38  unsigned bytes_per_sector;
39  };
40  #endif
41 
42  #if _CRT_FUNCTIONS_REQUIRED
43  _Success_(return == 0)
45  _DCRTIMP unsigned __cdecl _getdiskfree(
46  _In_ unsigned _Drive,
48  );
49  #endif
50 
51  #if _CRT_INTERNAL_NONSTDC_NAMES
52  #define diskfree_t _diskfree_t
53  #endif
54 
55 #endif
56 
57 
58 
#define _Out_
Definition: sal.h:342
_Pre_notnull_ _In_opt_z_ wchar_t const _Drive
Definition: corecrt_wstdlib.h:366
_Success_(return==0) _Check_return_ _DCRTIMP unsigned __cdecl _getdiskfree(_In_ unsigned _Drive
#define _CRT_BEGIN_C_HEADER
Definition: vcruntime.h:73
#define _Check_return_
Definition: sal.h:554
#define _In_
Definition: sal.h:305
_Out_ struct _diskfree_t * _DiskFree
Definition: dos.h:47
#define _DCRTIMP
Definition: corecrt.h:43
unsigned bytes_per_sector
Definition: direct.h:27
Definition: direct.h:22
#define _CRT_END_C_HEADER
Definition: vcruntime.h:76
unsigned avail_clusters
Definition: direct.h:25
unsigned total_clusters
Definition: direct.h:24
unsigned sectors_per_cluster
Definition: direct.h:26