Windows 데스크톱 응용 프로그램
콘텐츠의 테이블 축소
콘텐츠의 테이블 확장
EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

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

 

 

커뮤니티 추가 항목

추가
표시:
© 2016 Microsoft