Am I limited to using one of the existing categories for a sensor ? If no, then how do I enumerate all available categories ? GetSensorsByCategory requires that you know the category CLSID.
Yes, you are expected to know the category ID for the category of sensors you are interested in enumerating. In order to understand the values for the properties and data fields from sensor devices, you will have to know about them before hand; so you can know what they mean and how to interpret them.
Having said that, there is a way to enumerate all the categories of all the existing sensors - invoke GetSensorsByCategory(SENSOR_CATEGORY_ALL, ...) and for each sensor, invoke GetCategory.
Let us know if you have any further questions.
Thanks, Prasanna
Marked As Answer byWindowsNTTuesday, October 20, 2009 2:12 PM
Yes, you are expected to know the category ID for the category of sensors you are interested in enumerating. In order to understand the values for the properties and data fields from sensor devices, you will have to know about them before hand; so you can know what they mean and how to interpret them.
Having said that, there is a way to enumerate all the categories of all the existing sensors - invoke GetSensorsByCategory(SENSOR_CATEGORY_ALL, ...) and for each sensor, invoke GetCategory.
Let us know if you have any further questions.
Thanks, Prasanna
Marked As Answer byWindowsNTTuesday, October 20, 2009 2:12 PM