MFCreateSensorActivityMonitor function (mfidl.h)

Initializes a new instance of the IMFSensorActivityMonitor interface.

Syntax

HRESULT MFCreateSensorActivityMonitor(
  [in]  IMFSensorActivitiesReportCallback *pCallback,
  [out] IMFSensorActivityMonitor          **ppActivityMonitor
);

Parameters

[in] pCallback

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

[out] ppActivityMonitor

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 code Description
S_OK
The method succeeded.
E_POINTER
The ppActivityMonitor parameter is null.

Requirements

Requirement Value
Target Platform Windows
Header mfidl.h
Library Mfsensorgroup.lib
DLL Mfsensorgroup.lib