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. Hardware Device Status

Hardware Device Status

Scheduled Pinned Locked Moved C / C++ / MFC
hardwarequestion
4 Posts 3 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.
  • M Offline
    M Offline
    mcsherry
    wrote on last edited by
    #1

    When you use the Device Manager within Windows to look at any connected devices (i.e. keyboard) it has a 'Device Status' field. Can anyone tell me how I can access this information? cheers, Andy

    A 1 Reply Last reply
    0
    • M mcsherry

      When you use the Device Manager within Windows to look at any connected devices (i.e. keyboard) it has a 'Device Status' field. Can anyone tell me how I can access this information? cheers, Andy

      A Offline
      A Offline
      ashukasama
      wrote on last edited by
      #2

      have a look DeviceIoControl Device Management Control Codes http://msdn2.microsoft.com/en-us/library/aa363226.aspx

      M 1 Reply Last reply
      0
      • A ashukasama

        have a look DeviceIoControl Device Management Control Codes http://msdn2.microsoft.com/en-us/library/aa363226.aspx

        M Offline
        M Offline
        mcsherry
        wrote on last edited by
        #3

        Hi, thanks for your reply, I'm not sure that this does what I require (could be that I'm misunderstanding it. I've found the following articles which do what I want however it seems a bit overkill to have to install the Windows DDK just to access this information: http://www.codeproject.com/system/EnumDeviceProperties.asp[^] http://www.codeproject.com/system/EnumDevices.asp[^] is there a simpler way of doing this? TIA, Andy

        I 1 Reply Last reply
        0
        • M mcsherry

          Hi, thanks for your reply, I'm not sure that this does what I require (could be that I'm misunderstanding it. I've found the following articles which do what I want however it seems a bit overkill to have to install the Windows DDK just to access this information: http://www.codeproject.com/system/EnumDeviceProperties.asp[^] http://www.codeproject.com/system/EnumDevices.asp[^] is there a simpler way of doing this? TIA, Andy

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          As I understand, you will only need the DDK for the headers when you're compiliing the application, not for an end user to run it... Just make sure to test on a more normal envirnnment before distribution! Iain.

          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