title: C# how to specify SetupDiGetDeviceRegistryProperty field value SPDRP_HARDWAREID
body: <p>I am using this function <code>SetupDiGetDeviceRegistryProperty</code> in C # to query the hardware ID and to know how big a buffer to allocate for the data. But I am getting error at `SPDRP_HARDWAREID. Error message is </p>
  
  <blockquote>
    <p>"The name "SPDRP_HARDWAREID" does not exist in current context.</p>
  </blockquote>
  
  <p>I have tried declaring <code>SPDRP_HARDWAREID</code> as <code>enum</code>, but it didn't worked.</p>
  
  <p>Does anyone have idea?</p>