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 code | Description |
|---|---|
|
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 |
|
|
Library |
|
|
DLL |
|
See also
Build date: 11/19/2012