How to Obtain the Active Drive Letters in a Visual FoxPro AppID: Q137407 3.00 WINDOWS The information in this article applies to:
SUMMARYCall the GetLogicalDriveStrings API to get all the drive letters used in the active session of Windows NT or Windows 95. This API is not supported in Win32s, so it cannot be used when Visual FoxPro is running under Windows 3.x.
MORE INFORMATIONThe following code fragment returns an array called aMyarray containing all the used drive letters for that session of Windows NT or Windows 95. The code uses the GetLogicalDriveStrings Windows API, which is supported under Win32 only, not Win32s. The Number of drives is in a variables called NumberOfDrives.
Additional reference words: 3.00 VFoxWin logical drive list
KBCategory:
KBSubcategory: FxprgGeneral
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |