Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Use the UWP Sensor API instead.
The COM-based Sensor API is deprecated and should not be used in new applications. No additional features or enhancements are planned, and support will be limited.
Defines possible operational states for sensors.
Syntax
typedef enum __MIDL___MIDL_itf_sensorsapi_0000_0000_0001 {
SENSOR_STATE_MIN = 0,
SENSOR_STATE_READY,
SENSOR_STATE_NOT_AVAILABLE,
SENSOR_STATE_NO_DATA,
SENSOR_STATE_INITIALIZING,
SENSOR_STATE_ACCESS_DENIED,
SENSOR_STATE_ERROR,
SENSOR_STATE_MAX
} SensorState;
Constants
SENSOR_STATE_MINValue: 0 Minimum enumerated sensor state. Use SENSOR_STATE_READY instead. |
SENSOR_STATE_READYReady to send sensor data. |
SENSOR_STATE_NOT_AVAILABLEThe sensor is not available for use. |
SENSOR_STATE_NO_DATAThe sensor is available but does not have data. |
SENSOR_STATE_INITIALIZINGThe sensor is available, but performing initialization. Try again later. |
SENSOR_STATE_ACCESS_DENIEDThe sensor is available, but the user account does not have permission to access the sensor data. For more information about permissions, see Managing User Permissions. |
SENSOR_STATE_ERRORThe sensor has raised an error. |
SENSOR_STATE_MAXMaximum enumerated sensor state. Not a valid value. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7 [desktop apps only] |
| Minimum supported server | None supported |
| Header | sensorsapi.h |