mirror of
https://github.com/reactos/reactos.git
synced 2025-06-06 01:40:36 +00:00

Imported from https://www.nuget.org/packages/Microsoft.Windows.SDK.CRTSource/10.0.22621.3 License: MIT
31 lines
607 B
C++
31 lines
607 B
C++
/***
|
|
*drivemap.c - _getdrives
|
|
*
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
*
|
|
*Purpose:
|
|
* defines _getdrives()
|
|
*
|
|
*******************************************************************************/
|
|
|
|
#include <corecrt_internal.h>
|
|
#include <direct.h>
|
|
|
|
/***
|
|
*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:
|
|
*
|
|
*******************************************************************************/
|
|
|
|
extern "C" unsigned long __cdecl _getdrives()
|
|
{
|
|
return GetLogicalDrives();
|
|
}
|