MFCreateSensorActivityMonitor function

Initializes a new instance of the IMFSensorActivityMonitor interface.

Syntax


HRESULT WINAPI MFCreateSensorActivityMonitor(
  _In_  IMFSensorActivitiesReportCallback *pCallback,
  _Out_ IMFSensorActivityMonitor          **ppActivityMonitor
);

Parameters

pCallback [in]

An implementation of the IMFSensorActivitiesReportCallback interface through which the system delivers IMFSensorActivitiesReport objects.

ppActivityMonitor [out]

A pointer to the new IMFSensorActivityMonitor.

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.

E_POINTER

The ppActivityMonitor parameter is null.

 

Requirements

Header

Mfidl.h

Library

Mfplat.lib

DLL

Mfplat.lib

 

 

Show: