locked
How to get a USB Flash drive name RRS feed

All replies

  • You can use DDK APIs or WMI.

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    Friday, May 7, 2010 9:58 PM
  • Sorry, Sheng, I looked all through that DDK example you gave me and there's no reference there on how to get the name of a USB Flash drive. I'm not really using WMI, I have a MFC project. It can't be that there's no simple API to do that????
    Saturday, May 8, 2010 8:33 PM
  • Search SetupDiEnumDeviceInterfaces and SetupDiGetDeviceInterfaceDetail on that page. 

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful.
    Visual C++ MVP
    Saturday, May 8, 2010 8:42 PM