ReactOS  0.4.14-dev-41-g31d7680
direct.h File Reference
#include <crtdefs.h>
#include <io.h>
Include dependency graph for direct.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _diskfree_t
 

Macros

#define _DISKFREE_T_DEFINED
 
#define _GETDISKFREE_DEFINED
 
#define _WDIRECT_DEFINED
 
#define diskfree_t   _diskfree_t
 

Functions

_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getcwd (_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
 
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl _getdcwd (_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
 
_Check_return_ _Ret_opt_z_ char *__cdecl _getdcwd_nolock (_In_ int _Drive, _Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
 
_Check_return_ _CRTIMP int __cdecl _chdir (_In_z_ const char *_Path)
 
_Check_return_ _CRTIMP int __cdecl _mkdir (_In_z_ const char *_Path)
 
_Check_return_ _CRTIMP int __cdecl _rmdir (_In_z_ const char *_Path)
 
_Check_return_ _CRTIMP int __cdecl _chdrive (_In_ int _Drive)
 
_Check_return_ _CRTIMP int __cdecl _getdrive (void)
 
_Check_return_ _CRTIMP unsigned long __cdecl _getdrives (void)
 
_Check_return_ _CRTIMP unsigned __cdecl _getdiskfree (_In_ unsigned _Drive, _Out_ struct _diskfree_t *_DiskFree)
 
_Check_return_ _Ret_opt_z_ _CRTIMP wchar_t *__cdecl _wgetcwd (_Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
 
_Check_return_ _Ret_opt_z_ _CRTIMP wchar_t *__cdecl _wgetdcwd (_In_ int _Drive, _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
 
_Check_return_ _Ret_opt_z_ wchar_t *__cdecl _wgetdcwd_nolock (_In_ int _Drive, _Out_writes_opt_(_SizeInWords) wchar_t *_DstBuf, _In_ int _SizeInWords)
 
_Check_return_ _CRTIMP int __cdecl _wchdir (_In_z_ const wchar_t *_Path)
 
_Check_return_ _CRTIMP int __cdecl _wmkdir (_In_z_ const wchar_t *_Path)
 
_Check_return_ _CRTIMP int __cdecl _wrmdir (_In_z_ const wchar_t *_Path)
 
_Check_return_ _Ret_opt_z_ _CRTIMP char *__cdecl getcwd (_Out_writes_opt_(_SizeInBytes) char *_DstBuf, _In_ int _SizeInBytes)
 
_Check_return_ _CRTIMP int __cdecl chdir (_In_z_ const char *_Path)
 
_Check_return_ _CRTIMP int __cdecl mkdir (_In_z_ const char *_Path)
 
_Check_return_ _CRTIMP int __cdecl rmdir (_In_z_ const char *_Path)
 

Macro Definition Documentation

◆ _DISKFREE_T_DEFINED

#define _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 direct.h.

◆ _GETDISKFREE_DEFINED

#define _GETDISKFREE_DEFINED

Definition at line 97 of file direct.h.

◆ _WDIRECT_DEFINED

#define _WDIRECT_DEFINED

Definition at line 108 of file direct.h.

◆ diskfree_t

#define diskfree_t   _diskfree_t

Definition at line 163 of file direct.h.

Function Documentation

◆ _chdir()

◆ _chdrive()

_Check_return_ _CRTIMP int __cdecl _chdrive ( _In_ int  _Drive)

◆ _getcwd()

_Check_return_ _Ret_opt_z_ _CRTIMP char* __cdecl _getcwd ( _Out_writes_opt_(_SizeInBytes) char _DstBuf,
_In_ int  _SizeInBytes 
)

◆ _getdcwd()

_Check_return_ _Ret_opt_z_ _CRTIMP char* __cdecl _getdcwd ( _In_ int  _Drive,
_Out_writes_opt_(_SizeInBytes) char _DstBuf,
_In_ int  _SizeInBytes 
)

◆ _getdcwd_nolock()

_Check_return_ _Ret_opt_z_ char* __cdecl _getdcwd_nolock ( _In_ int  _Drive,
_Out_writes_opt_(_SizeInBytes) char _DstBuf,
_In_ int  _SizeInBytes 
)

◆ _getdiskfree()

_Check_return_ _CRTIMP unsigned __cdecl _getdiskfree ( _In_ unsigned  _Drive,
_Out_ struct _diskfree_t _DiskFree 
)

◆ _getdrive()

Definition at line 20 of file getdrive.c.

21 {
24  {
25  buffer[0]=towupper(buffer[0]);
26  if (buffer[0] >= L'A' && buffer[0] <= L'Z' && buffer[1] == L':')
27  return buffer[0] - L'A' + 1;
28  }
29  return 0;
30 }
#define GetCurrentDirectoryW(x, y)
Definition: compat.h:413
GLuint buffer
Definition: glext.h:5915
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define MAX_PATH
Definition: compat.h:26
static const WCHAR L[]
Definition: oid.c:1250
#define towupper(c)
Definition: wctype.h:99

Referenced by _tgetdcwd(), and _tstat64().

◆ _getdrives()

_Check_return_ _CRTIMP unsigned long __cdecl _getdrives ( void  )

Definition at line 35 of file getdrive.c.

36 {
37  return GetLogicalDrives();
38 }
DWORD WINAPI GetLogicalDrives(VOID)
Definition: disk.c:110

◆ _mkdir()

◆ _rmdir()

◆ _wchdir()

◆ _wgetcwd()

◆ _wgetdcwd()

_Check_return_ _Ret_opt_z_ _CRTIMP wchar_t* __cdecl _wgetdcwd ( _In_ int  _Drive,
_Out_writes_opt_(_SizeInWords) wchar_t _DstBuf,
_In_ int  _SizeInWords 
)

◆ _wgetdcwd_nolock()

_Check_return_ _Ret_opt_z_ wchar_t* __cdecl _wgetdcwd_nolock ( _In_ int  _Drive,
_Out_writes_opt_(_SizeInWords) wchar_t _DstBuf,
_In_ int  _SizeInWords 
)

◆ _wmkdir()

◆ _wrmdir()

◆ chdir()

◆ getcwd()

◆ mkdir()

◆ rmdir()