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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting a USB drive letter programmatically

Status
Not open for further replies.

Bryan - Gendev

Programmer
Jan 9, 2011
408
0
16
AU
I am using this code
Declare Integer WNetGetConnection In win32api ;
STRING lpszLocalName,;
STRING lpszRemoteName,;
INTEGER @ lpchBuffer && Declare the external WNetGetConnection ;
API Function

Works fine, however I would like to be able to list any USB drives that may be connected to the PC - as in Windows Disk Management.
Anyone know how?

GenDev
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top