Setting and retrieving the sensor properties
When an application requests a particular property value for a sensor, a corresponding property-retrieval method is called in the sample driver. For the accelerometer, this method is CAccelerometer::GetPropertyValuesForAccelerometerObject. The Sensor API passes the property keys for the properties requested by the application. Then the driver bundles the property values in an IPortableDeviceValues object, which it returns to the API.
When an application tries to update a property on the sensor, such as change sensitivity or the report interval, a corresponding property-write method is called in the sample driver. For the accelerometer, this method is CAccelerometer::UpdateAccelerometerPropertyValues. This method is declared and defined in the sensor object’s files, Accelerometer.h and Accelerometer.cpp, and is invoked in the SensorDDI.cpp module.
For information about how the sensor properties are defined, see Supporting the Sensor Properties.
Build date: 11/29/2012