ReactOS 0.4.15-dev-7924-g5949c20
getdrive.c File Reference
#include <precomp.h>
#include <ctype.h>
#include <direct.h>
Include dependency graph for getdrive.c:

Go to the source code of this file.

Functions

int _getdrive (void)
 
unsigned long _getdrives (void)
 

Function Documentation

◆ _getdrive()

int _getdrive ( void  )

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:756
#define MAX_PATH
Definition: compat.h:34
GLuint buffer
Definition: glext.h:5915
#define L(x)
Definition: ntvdm.h:50
#define towupper(c)
Definition: wctype.h:99
__wchar_t WCHAR
Definition: xmlstorage.h:180

Referenced by _tgetdcwd(), _tstat64(), and cmd_setlocal().

◆ _getdrives()

unsigned long _getdrives ( void  )

Definition at line 35 of file getdrive.c.

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