blob: 160eab54cf7618c19efc6a8898b50c794185f965 (
plain) (
blame)
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
30
31
32
33
34
35
36
37
38
39
|
/***
*drivemap.c - _getdrives
*
* Copyright (c) 1991, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines _getdrives()
*
*Revision History:
* 08-22-91 BWM Wrote module.
*
*******************************************************************************/
#include <cruntime.h>
#include <oscalls.h>
#include <direct.h>
#if !defined(_WIN32_)
#error ERROR - ONLY WIN32 TARGET SUPPORTED!
#endif
/***
*void _getdrivemap(void) - Get bit map of all available drives
*
*Purpose:
*
*Entry:
*
*Exit:
* drive map with drive A in bit 0, B in 1, etc.
*
*Exceptions:
*
*******************************************************************************/
unsigned long _CALLTYPE1 _getdrives()
{
return (GetLogicalDrives());
}
|