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. C / C++ / MFC
  4. Need Help Detecting If System Has USB Ports

Need Help Detecting If System Has USB Ports

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
4 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.
  • T Offline
    T Offline
    TaknuMone
    wrote on last edited by
    #1

    Hi All, searched high 'n low, and can't find a function/or where to look, to see if a system has usb ports installed. don't need to know what the devices are, just if the motherboard has a usb port. needs to be c/c++, no wmi, function must be compatible with w98/w2k/xp any help or advice appreciated

    D 1 Reply Last reply
    0
    • T TaknuMone

      Hi All, searched high 'n low, and can't find a function/or where to look, to see if a system has usb ports installed. don't need to know what the devices are, just if the motherboard has a usb port. needs to be c/c++, no wmi, function must be compatible with w98/w2k/xp any help or advice appreciated

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      You might try the Win32_USBController and Win32_USBControllerDevice WMI classes.


      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

      T 1 Reply Last reply
      0
      • D David Crow

        You might try the Win32_USBController and Win32_USBControllerDevice WMI classes.


        "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

        T Offline
        T Offline
        TaknuMone
        wrote on last edited by
        #3

        Hi David, thanks for he info, but i can't use WMI, gonna make the app too fat for its purpose with com and all the other stuff. plus the app needs to run and detect on w98 systems, which WMI is not activated by default, and the end users are not bright enough to start hacking the registry. any way with using WMI ?? thanks again

        T 1 Reply Last reply
        0
        • T TaknuMone

          Hi David, thanks for he info, but i can't use WMI, gonna make the app too fat for its purpose with com and all the other stuff. plus the app needs to run and detect on w98 systems, which WMI is not activated by default, and the end users are not bright enough to start hacking the registry. any way with using WMI ?? thanks again

          T Offline
          T Offline
          TaknuMone
          wrote on last edited by
          #4

          any with using WMI SHOULD BE: any way without using WMI

          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