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 code | Description |
|---|---|
|
The method succeeded. |
|
The ppActivityMonitor parameter is null. |
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|