IMFSampleProtection::InitOutputProtection method (mfidl.h)
Retrieves initialization information for sample protection from the upstream component.
HRESULT InitOutputProtection( [in] DWORD dwVersion, [in] DWORD dwOutputId, [in] BYTE *pbCert, [in] DWORD cbCert, [out] BYTE **ppbSeed, [out] DWORD *pcbSeed );
Specifies the version number of the sample protection scheme. The version number is specified as a SAMPLE_PROTECTION_VERSION enumeration value.
Identifier of the output stream. The identifier corresponds to the output stream identifier returned by the IMFTransform interface.
Pointer to a certificate provided by the downstream component.
Size of the certificate, in bytes.
Receives a pointer to a buffer that contains the initialization information for downstream component. The caller must free the memory for the buffer by calling CoTaskMemFree.
Receives the size of the ppbSeed buffer, in bytes.
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
||The method succeeded.|
This method must be implemented by the upstream component. The method fails if the component does not support the requested sample protection version. Downstream components do not implement this method and should return E_NOTIMPL.
|Minimum supported client||Windows Vista [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2008 [desktop apps | UWP apps]|