title: C++ Getting WMI Array Data from the Local Computer
body: <p>I am facing problem in retrieving array data from a WMI class using c++. </p>
  
  <p>In the following link, <a href="http://msdn.microsoft.com/en-us/library/aa390423(v=vs.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/aa390423(v=vs.85).aspx</a>, step 7 of the example shows us how to retrieve a string value of the wmi query ran. However, I am currently facing an issue when the value returned from the query is an uint16 array. </p>
  
  <p>eg. 
  <br>Query: "Select ChassisTypes from Win32_SystemEnclosure"</p>
  
  <p><br>Result:
           <br>_<em>GENUS     : 2
           <br></em>_CLASS     : Win32_SystemEnclosure
           <br>_<em>SUPERCLASS: 
           <br></em>_DYNASTY:
           <br>_<em>RELPATH:
           <br></em>_PROPERTY_COUNT: 1
           <br>_<em>DERIVATION: {}
           <br></em>_SERVER:
           <br>_<em>NAMESPACE:
           <br></em>_PATH:
           <br>ChassisTypes: {3}</p>
  
  <p>May I ask how do I actually process the result to retrieve the integer value of ChassisType from the array in this case? Thank you!</p>