Event Constants (Sensors.h)
The Windows Sensor and Location platform defines constants for driver events. Sensor manfuactureres can also define their own constants.
Sensor Event Types
The platform defines the following sensor event type identifiers.
Sensor event type | Description |
---|---|
|
Indicates that the device was shaken. |
|
Indicates that new data is available. |
|
Indicates that a property value changed. Check the IPortableDeviceValues interface, passed through the pEventData parameter to OnEvent, to determine which property changed and its new value. |
|
Indicates a change of operational state, for example, from SENSOR_STATE_INITIALIZING to SENSOR_STATE_READY. |
Sensor Event PROPERTYKEYs
Platform-defined property keys for events are based on the following GUID:
{64346E30-8728-4B34-BDF6-4F52442C5C28}
The sensor platform defines the following PROPERTYKEYs that identify sensor event parameters.
Sensor event PROPERTYKEY and PID | Description |
---|---|
|
Indicates that the GUID value in IPortableDeviceValues is an event type ID, such as SENSOR_EVENT_DATA_UPDATED. |
|
Indicates that the unsigned integer value in IPortableDeviceValues is a sensor state, such as SENSOR_STATE_READY. |
Sensor Error PROPERTYKEYs
Platform-defined property keys for errors will be based on the following GUID:
{77112BCD-FCE1-4f43-B8B8-A88256ADB4B3}
The sensor platform reserves this GUID for future use.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
None supported |
Header |
|