SensorState enumeration (sensorsapi.h)

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_MIN
Value: 0
Minimum enumerated sensor state. Use SENSOR_STATE_READY instead.
SENSOR_STATE_READY
Ready to send sensor data.
SENSOR_STATE_NOT_AVAILABLE
The sensor is not available for use.
SENSOR_STATE_NO_DATA
The sensor is available but does not have data.
SENSOR_STATE_INITIALIZING
The sensor is available, but performing initialization. Try again later.
SENSOR_STATE_ACCESS_DENIED
The 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_ERROR
The sensor has raised an error.
SENSOR_STATE_MAX
Maximum 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