GetLogicalDriveStrings
Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (ByVal nBufferLength as Long, ByVal lpBuffer as String)
Retreives a string containing the root drive paths for all current logical drives.
nBufferLength = Long, The length of the lpBuffer String
lpBuffer = String, A string to load with the logical drive names. Each name is separated by a NULL Character, with two NULLS after the last name.
My question is regarding the use of this API Call. So far, all I can manage to get this to do is crash the IDE.
This function should return Zero on error, or a long that contains the required buffer length (if the present buffer length is not long enough).
I did not try to pre-init the string... maybe that's it. I'll try it, but has anyone used this call before?
No Dolphins were harmed in the posting of this message... Dolphin Friendly Tuna!
Declare Function GetLogicalDriveStrings Lib "kernel32" Alias "GetLogicalDriveStringsA" (ByVal nBufferLength as Long, ByVal lpBuffer as String)
Retreives a string containing the root drive paths for all current logical drives.
nBufferLength = Long, The length of the lpBuffer String
lpBuffer = String, A string to load with the logical drive names. Each name is separated by a NULL Character, with two NULLS after the last name.
My question is regarding the use of this API Call. So far, all I can manage to get this to do is crash the IDE.
This function should return Zero on error, or a long that contains the required buffer length (if the present buffer length is not long enough).
I did not try to pre-init the string... maybe that's it. I'll try it, but has anyone used this call before?
![[fish] [fish] [fish]](/data/assets/smilies/fish.gif)