Export (0) Print
Expand All

IMFInputTrustAuthority::GetDecrypter method

Retrieves a decrypter transform.

Syntax


HRESULT GetDecrypter(
  [in]   REFIID riid,
  [out]  void **ppv
);

Parameters

riid [in]

Interface identifier (IID) of the interface being requested. Currently this value must be IID_IMFTransform, which requests the IMFTransform interface.

ppv [out]

Receives a pointer to the interface. The caller must release the interface.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return codeDescription
S_OK

The method succeeded.

E_NOINTERFACE

The decrypter does not support the requested interface.

MF_E_NOT_PROTECTED

This input trust authority (ITA) does not provide a decrypter.

 

Remarks

The decrypter should be created in a disabled state, where any calls to IMFTransform::ProcessOutput automatically fail. After the input trust authority (ITA) has verified that it is running inside the protected media path (PMP), the ITA should enable the decrypter.

An ITA is not required to provide a decrypter. If the source content is not encrypted, the method should return MF_E_NOT_PROTECTED. The PMP will then proceed without using a decrypter for that stream.

The ITA must create a new instance of its decrypter for each call to GetDecrypter. Do not return multiple references to the same decrypter. They must be separate instances because the Media Session might place them in two different branches of the topology.

Requirements

Minimum supported client

Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 [desktop apps | Windows Store apps]

Header

Mfidl.h

Library

Mfuuid.lib

See also

IMFInputTrustAuthority

 

 

Community Additions

ADD
Show:
© 2014 Microsoft