Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
Devices
Sensor API
Enumeration Types
 SensorState enumeration
SensorState enumeration

Applies to: desktop apps only

Defines possible operational states for sensors.

Syntax

typedef enum  {
  SENSOR_STATE_MIN,
  SENSOR_STATE_READY           = SENSOR_STATE_MIN,
  SENSOR_STATE_NOT_AVAILABLE,
  SENSOR_STATE_NO_DATA,
  SENSOR_STATE_INITIALIZING,
  SENSOR_STATE_ACCESS_DENIED,
  SENSOR_STATE_ERROR,
  SENSOR_STATE_MAX             = SENSOR_STATE_ERROR 
} SensorState;

Constants

SENSOR_STATE_MIN

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

Minimum supported client

Windows 7

Minimum supported server

None supported

Header

Sensorsapi.h

 

 

Send comments about this topic to Microsoft

Build date: 3/6/2012

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker