Export (0) Print
Expand All

ISensor interface

Represents a sensor.

You will generally retrieve a pointer to ISensor by calling ISensorCollection::GetAt or ISensorManager::GetSensorByID, but other methods can retrieve this pointer, too. Various other Sensor API methods use a pointer to ISensor to provide information about a particular sensor or to enable you to specify which sensor to use for a particular action.

In addition to the methods inherited from IUnknown, the ISensor interface exposes the following methods.

Members

The ISensor interface inherits from the IUnknown interface but does not have additional members.

MethodDescription
GetCategory Retrieves the identifier of the sensor category.
GetData Retrieves the most recent sensor data report.
GetEventInterest Retrieves the current event interest settings.
GetFriendlyName Retrieves the friendly sensor name.
GetID Retrieves the unique identifier of the sensor.
GetProperties Retrieves multiple sensor properties.
GetProperty Retrieves a property value.
GetState Retrieves the current operational state of the sensor.
GetSupportedDataFields Retrieves a set of PROPERTYKEYs that represent the data fields the sensor can provide.
GetType Retrieves the sensor type ID.
SetEventInterest Specifies the list of sensor events to receive.
SetEventSink Specifies the interface through which to receive sensor event notifications.
SetProperties Specifies sensor properties.
SupportsDataField Indicates whether the sensor supports the specified data field.
SupportsEvent Indicates whether the sensor supports the specified event.

 

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported

Header

Sensorsapi.h

Library

Sensorsapi.lib

DLL

Sensorsapi.dll

See also

COM Interfaces

 

 

Community Additions

ADD
Show:
© 2014 Microsoft