This topic has not yet been rated - Rate this topic

ISensorEvents::OnDataUpdated method

Provides sensor event data.

Syntax


HRESULT OnDataUpdated(
  [in]  ISensor *pSensor,
  [in]  ISensorDataReport *pNewData
);

Parameters

pSensor [in]

Pointer to the ISensor interface of the sensor that raised the event.

pNewData [in]

Pointer to the ISensorDataReport interface that contains the event data.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

 

Examples

For an example of how to receive sensor events, see Using Sensor API Events.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

None supported [desktop apps only]

Header

Sensorsapi.h

Library

Sensorsapi.lib

DLL

Sensorsapi.dll

See also

ISensorEvents

 

 

Build date: 11/19/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.