IMFSampleProtection::InitInputProtection method (mfidl.h)

Initializes sample protection on the downstream component.

Syntax

HRESULT InitInputProtection(
  [in] DWORD dwVersion,
  [in] DWORD dwInputId,
  [in] BYTE  *pbSeed,
  [in] DWORD cbSeed
);

Parameters

[in] dwVersion

Specifies the version number of the sample protection scheme. The version number is specified as a SAMPLE_PROTECTION_VERSION enumeration value.

[in] dwInputId

Identifier of the input stream. The identifier corresponds to the output stream identifier returned by the IMFTransform interface.

[in] pbSeed

Pointer to a buffer that contains the initialization data provided by the upstream component. To retrieve this buffer, call IMFSampleProtection::InitOutputProtection.

[in] cbSeed

Size of the pbSeed buffer, in bytes.

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.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header mfidl.h
Library Mfuuid.lib

See also

IMFSampleProtection