
How to determine drive type (CDROM)
says...
Quote:
>I'm trying to determine how to determine which drive letter may be
>assign to a users CDROM.
>Would the best approach be to let the user tell the app during install
>that the CDROM is a certain drive letter? or is there away to determine
>this at run time (prefered)?
On Win32 (ie VB4/32-bit) you can call GetLogicalDrives() or
GetLogicalDriveStrings() and then call GetDriveType() for each logical
drive. For Win16, things get harder - you have to write some yucky
assembler, and put it in a DLL. There was a DLL around called VBASM
which I believe could do what you are after.
- S
--
The opinions expressed in this message are my own personal views
and do not reflect the official views of Microsoft Corporation.