Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1008 Bytes

GetLogicalDrives.md

File metadata and controls

38 lines (25 loc) · 1008 Bytes

Home

Function name : GetLogicalDrives

Group: File System - Library: kernel32


The GetLogicalDrives function retrieves a bitmask representing the currently available disk drives


Code examples:

Retrieving list of available disk drives
Disconnecting USB Mass Storage Device programmatically

Declaration:

DWORD GetLogicalDrives(VOID);  

FoxPro declaration:

DECLARE INTEGER GetLogicalDrives IN kernel32  

Parameters:

This function has no parameters


Return value:

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