Skip to content

Latest commit

 

History

History
141 lines (113 loc) · 2.88 KB

nf-fileapi-getlogicaldrives.md

File metadata and controls

141 lines (113 loc) · 2.88 KB
UIDtitledescriptionhelpviewer_keywordsold-locationtech.rootms.assetidms.datems.keywordsreq.headerreq.include-headerreq.target-typereq.target-min-winverclntreq.target-min-winversvrreq.kmdf-verreq.umdf-verreq.ddi-compliancereq.unicode-ansireq.idlreq.max-supportreq.namespacereq.assemblyreq.type-libraryreq.libreq.dllreq.irqltargetosreq.typenamesreq.redistms.customf1_keywordsdev_langstopic_typeapi_typeapi_locationapi_name
NF:fileapi.GetLogicalDrives
GetLogicalDrives function (fileapi.h)
Retrieves a bitmask representing the currently available disk drives.
GetLogicalDrives
GetLogicalDrives function [Files]
_win32_getlogicaldrives
base.getlogicaldrives
fileapi/GetLogicalDrives
fs.getlogicaldrives
winbase/GetLogicalDrives
fs\getlogicaldrives.htm
fs
21a66050-3bab-4c70-9003-3b52e8c72b00
12/05/2018
GetLogicalDrives, GetLogicalDrives function [Files], _win32_getlogicaldrives, base.getlogicaldrives, fileapi/GetLogicalDrives, fs.getlogicaldrives, winbase/GetLogicalDrives
fileapi.h
Windows.h
Windows
Windows XP [desktop apps \| UWP apps]
Windows Server 2003 [desktop apps \| UWP apps]
Kernel32.lib
Kernel32.dll
Windows
19H1
GetLogicalDrives
fileapi/GetLogicalDrives
c++
APIRef
kbSyntax
DllExport
Kernel32.dll
API-MS-Win-Core-File-l1-1-0.dll
KernelBase.dll
API-MS-Win-Core-File-l1-2-0.dll
API-MS-Win-Core-File-l1-2-1.dll
API-MS-Win-Core-File-l1-2-2.dll
API-MS-Win-DownLevel-Kernel32-l1-1-0.dll
MinKernelBase.dll
GetLogicalDrives

GetLogicalDrives function

-description

Retrieves a bitmask representing the currently available disk drives.

-returns

If the function succeeds, the return value is a bitmask representing the currently available disk drives. Bit position 0 (the least-significant bit) is drive A, bit position 1 is drive B, bit position 2 is drive C, and so on.

If the function fails, the return value is zero. To get extended error information, call GetLastError.

-remarks

In Windows 8 and Windows Server 2012, this function is supported by the following technologies.

TechnologySupported
Server Message Block (SMB) 3.0 protocol No
SMB 3.0 Transparent Failover (TFO) No
SMB 3.0 with Scale-out File Shares (SO) No
Cluster Shared Volume File System (CsvFS) Yes
Resilient File System (ReFS) Yes
 

SMB does not support volume management functions.

-see-also

GetLogicalDriveStrings

Volume Management Functions

close