IMFSampleProtection::InitInputProtection method
Initializes sample protection on the downstream component.
Syntax
HRESULT InitInputProtection( [in] DWORD dwVersion, [in] DWORD dwInputId, [in] BYTE *pbSeed, [in] DWORD cbSeed );
Parameters
- dwVersion [in]
-
Specifies the version number of the sample protection scheme. The version number is specified as a SAMPLE_PROTECTION_VERSION enumeration value.
- dwInputId [in]
-
Identifier of the input stream. The identifier corresponds to the output stream identifier returned by the IMFTransform interface.
- pbSeed [in]
-
Pointer to a buffer that contains the initialization data provided by the upstream component. To retrieve this buffer, call IMFSampleProtection::InitOutputProtection.
- cbSeed [in]
-
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 |
|---|---|
|
The method succeeded. |
Requirements
|
Minimum supported client |
Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
See also