EN
Este contenido no se encuentra disponible en su idioma, pero aquí tiene la versión en inglés.

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

Header

Sensorsapi.h

Library

Sensorsapi.lib

DLL

Sensorsapi.dll

See also

ISensorEvents

 

 

Adiciones de comunidad

AGREGAR
Mostrar:
© 2014 Microsoft