Group: File System - Library: kernel32
The GetLogicalDriveStrings function fills a buffer with strings that specify valid drives in the system
Using the GetLogicalDriveStrings
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
Using File Mapping for enumerating files opened by Visual FoxPro
DWORD GetLogicalDriveStrings(
DWORD nBufferLength, // size of buffer
LPTSTR lpBuffer // drive strings buffer
); DECLARE INTEGER GetLogicalDriveStrings IN kernel32;
As "GetLogicalDriveStringsA";
INTEGER nBufferLength,;
STRING @ lpBuffer As String
nBufferLength [in] Specifies the maximum size, in characters, of the buffer pointed to by lpBuffer
lpBuffer [out] Pointer to a buffer that receives a series of null-terminated strings, one for each valid drive in the system, that end with a second null character
If the function succeeds, the return value is the length, in characters, of the strings copied to the buffer
Home