Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Hardware & Devices
  4. USB Disk

USB Disk

Scheduled Pinned Locked Moved Hardware & Devices
help
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    Xeqtr 0
    wrote on last edited by
    #1

    Hi I have a problem. I want to detect USB Disk, but when I use GetDriveType, fuction return 3 drives instead 1 (it also return floppy disk and remote hard drive). I what to know alternative of GetDriveType.

    L 1 Reply Last reply
    0
    • X Xeqtr 0

      Hi I have a problem. I want to detect USB Disk, but when I use GetDriveType, fuction return 3 drives instead 1 (it also return floppy disk and remote hard drive). I what to know alternative of GetDriveType.

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      Hi, you can use WMI classes to get more details, such as the interface ("USB"). However it is not that easy, and it keeps getting more and more complex to figure out a general solution as more device types emerge: you have to discern USB floppies, USB hard disks, USB memory sticks, USB DVD drives, etc. However an ad hoc solution to a specific problem is most certainly doable, given time and lots of googling. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


      X 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, you can use WMI classes to get more details, such as the interface ("USB"). However it is not that easy, and it keeps getting more and more complex to figure out a general solution as more device types emerge: you have to discern USB floppies, USB hard disks, USB memory sticks, USB DVD drives, etc. However an ad hoc solution to a specific problem is most certainly doable, given time and lots of googling. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        This month's tips: - before you ask a question here, search CodeProject, then Google; - the quality and detail of your question reflects on the effectiveness of the help you are likely to get; - use PRE tags to preserve formatting when showing multi-line code snippets.


        X Offline
        X Offline
        Xeqtr 0
        wrote on last edited by
        #3

        I think that using WMI it's a wright way and maybe connect to ("system evets") & ("USB") interface. Thanks for help!!

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups