windows-nt/Source/XPSP1/NT/base/crts/crtw32/direct/drivemap.c

41 lines
773 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/***
*drivemap.c - _getdrives
*
* Copyright (c) 1991-2001, Microsoft Corporation. All rights reserved.
*
*Purpose:
* defines _getdrives()
*
*Revision History:
* 08-22-91 BWM Wrote module.
* 04-06-93 SKS Replace _CRTAPI* with _cdecl
*
*******************************************************************************/
#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 __cdecl _getdrives()
{
return (GetLogicalDrives());
}