Kernel32GetLogicalDrives Method
Retrieves a bitmask representing the currently available disk drives.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)]
public static uint GetLogicalDrives()
<DllImportAttribute("Kernel32.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetLogicalDrives As UInteger
Dim returnValue As UInteger
returnValue = Kernel32.GetLogicalDrives()
public:
[DllImportAttribute(L"Kernel32.dll", ExactSpelling = true, SetLastError = true)]
static unsigned int GetLogicalDrives()
[<DllImportAttribute("Kernel32.dll", ExactSpelling = true, SetLastError = true)>]
static member GetLogicalDrives : unit -> uint32
No code example is currently available or this language may not be supported.
Return Value
UInt32
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.