blob: 5968416b4381c6e8f740ed4d2728c1cdec83f7f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#include <windows.h>
int W32GetLogicalDrives_C(void)
{
return GetLogicalDrives();
}
int W32GetDriveType_C(const char *root)
{
switch(GetDriveType(root))
{
case DRIVE_UNKNOWN:
return 0;
case DRIVE_NO_ROOT_DIR:
return 1;
case DRIVE_REMOVABLE:
return 2;
case DRIVE_FIXED:
return 3;
case DRIVE_REMOTE:
return 4;
case DRIVE_CDROM:
return 5;
case DRIVE_RAMDISK:
return 6;
default:
return 0;
}
}
|