ReactOS  0.4.15-dev-309-g7c8d563
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:422
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()

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