IMFSensorActivitiesReport::GetActivityReportByDeviceName method (mfidl.h)

Retrieves an IMFSensorActivityReport based on the specified device name.

Syntax

HRESULT GetActivityReportByDeviceName(
        LPCWSTR                 SymbolicName,
  [out] IMFSensorActivityReport **sensorActivityReport
);

Parameters

SymbolicName

The symbolic name of the sensor for which the IMFSensorActivityReport is retrieved.

[out] sensorActivityReport

A pointer to the IMFSensorActivityReport associated with the sensor with the specified symbolic name.

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_INVALIDARG
The symbolicName parameter is null.
E_POINTER
The sensorActivityReport parameter is null.
E_OUTOFMEMORY
The system is out of memory.
MF_E_INVALIDINDEX
The Index parameter is not less than value returned by GetCount.
MF_E_NOT_FOUND
No sensor with the specified symbolic name was found.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps only]
Minimum supported server None supported
Target Platform Windows
Header mfidl.h
Library Mfplat.lib; Mfplat.dll

See also

IMFSensorActivitiesReport

IMFSensorActivityReport