SensorState enumeration (sensorsclassextension.h)

The SensorState enumeration type specifies the current operational state of a sensor.

Syntax

typedef enum __MIDL___MIDL_itf_windowssensorclassextension_0000_0000_0001 {
  SENSOR_STATE_MIN,
  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
Reserved.
SENSOR_STATE_READY
Indicates that the sensor is ready.
SENSOR_STATE_NOT_AVAILABLE
Indicates that the sensor is not currently available for use.
SENSOR_STATE_NO_DATA
Indicates that no data available.
SENSOR_STATE_INITIALIZING
Indicates that the sensor is not yet ready for use. Try again.
SENSOR_STATE_ACCESS_DENIED
Reserved. Do not use in driver code.
SENSOR_STATE_ERROR
Indicates that an unspecified error occurred.
SENSOR_STATE_MAX
Reserved.

Remarks

This enumeration also defines values used for the SENSOR_PROPERTY_STATE property.

Requirements

Requirement Value
Minimum supported client Windows 7,Available in Windows 7.
Minimum supported server None supported
Header sensorsclassextension.h

See also

ISensorClassExtension::PostStateChange

ISensorDriver::OnGetProperties