I am facing problem in retrieving array data from a WMI class using c++.
In the following link, http://msdn.microsoft.com/en-us/library/aa390423(v=vs.85).aspx, 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.
eg.
Query: "Select ChassisTypes from Win32_SystemEnclosure"
Result:
_GENUS : 2
_CLASS : Win32_SystemEnclosure
_SUPERCLASS:
_DYNASTY:
_RELPATH:
_PROPERTY_COUNT: 1
_DERIVATION: {}
_SERVER:
_NAMESPACE:
_PATH:
ChassisTypes: {3}
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!