title: Reading Device Manager's Property Fields in Windows 7/8
body: <p>I am developing a windows application which gives the field details --> X.</p>
  
  <p>Where X is --></p>
  
  <p>Right Click My Computer  ></p>
  
  <pre><code>    Properties &gt;
  
            Device Manager &gt; (select any Item - Say KeyBoard) &gt;
  
                     Click it &gt; standard PS/2 KeyBoard &gt;
  
                                  double Click standard PS/2 KeyBoard &gt;
  
                                             click the Details Tab &gt;
  </code></pre>
  
  <p>Under the Property there are various fields like Display Name , Problem Code,Parent Siblings, etc , etc? </p>
  
  <p>I want to get their values .
  Which Windows API I can use for this.
  I am doing this for windows 7 as well as windows 8.I hope the API will remain the same.Also i am having 64 bit machine.
  This has to be true for any device whose details I wanted to know from the Device Manager.</p>
  
  <p>ALso I just want to all  operations - Reading and No Set (writing) so I think I will not be having any problem with violating the Admin Rights.PLease suggest.! I have added Snapshots for reference!Say for example I want to know the current State of the HID USB Complaint Mouse(D0(Active) or D2(Sleep)).</p>
  
  <p><img src="https://i.stack.imgur.com/F4wcD.jpg" alt="Image Showing the Powerdata Field for HID Compliant Mouse"></p>
  
  <p><img src="https://i.stack.imgur.com/YIOU1.jpg" alt="Image Showing the Power State for HID Complaint Mouse That is D0 - Active"></p>
  
  <p>I need to Get this Power State D0.</p>