IMFSensorActivitiesReport::GetActivityReport method (mfidl.h)

Retrieves an IMFSensorActivityReport based on the specified index.

Syntax

HRESULT GetActivityReport(
  [in]  ULONG                   Index,
  [out] IMFSensorActivityReport **sensorActivityReport
);

Parameters

[in] Index

The index of the IMFSensorActivityReport to retrieve. This value must be less than the value returned by GetCount.

[out] sensorActivityReport

A pointer to the IMFSensorActivityReport associated with the specified index.

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 sensorActivityReport parameter is null.
MF_E_INVALIDINDEX
The Index parameter is not less than value returned by GetCount.

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