ID3D11VideoDevice::CreateCryptoSession Method

Creates a cryptographic session to encrypt video content that is sent to the graphics driver.

Syntax

public:
HRESULT CreateCryptoSession(
         const GUID *pCryptoType,
         const GUID *pDecoderProfile,
         const GUID *pKeyExchangeType,
         ID3D11CryptoSession **ppCryptoSession
)  

Parameters

pCryptoType
Type: GUID *

[in] A pointer to a GUID that specifies the type of encryption to use. The following GUIDs are defined.

pDecoderProfile
Type: GUID *

[in, optional] A pointer to a GUID that specifies the decoding profile. For a list of possible values, see ID3D11VideoDevice::GetVideoDecoderProfile. If decoding will not be used, set this parameter to NULL.

pKeyExchangeType
Type: GUID *

[in] A pointer to a GUID that specifies the type of key exchange.

ppCryptoSession
Type: ID3D11CryptoSession **

[out] Receives a pointer to the ID3D11CryptoSession interface. The caller must release the interface.

Return value

Type: HRESULT 

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

See Direct3D 11 return codes for possible return values.

Remarks

The ID3D11DeviceContext::ClearState method does not affect the internal state of the cryptographic session.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).