Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetLogicalDriveStrings doesn't seem to work on Windows 2000

Status
Not open for further replies.

MacLeod72

Programmer
Jan 17, 2002
80
US
I am using GetLogicalDriveStrings to retrieve a list of the drives on my computer in VC++ 6.0.

I have a floppy (A:), a hard drive (C:), a CD drive (D:), a removable drive (E:), and a network drive (W:). The problem is that I seem to only be getting back "A:\\\0C:\\\0D:\\\0\0".

How would I get the removable drive and network drive on the list?

Thanks in advance!

--Robert Amour
 
I found an error in my loop. I apologize for wasting everyone's time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top