ID3D11VideoDevice::CheckCryptoKeyExchange Method

Gets a cryptographic key-exchange mechanism that is supported by the driver.

Syntax

public:
HRESULT CheckCryptoKeyExchange(
         const GUID *pCryptoType,
         const GUID *pDecoderProfile,
         UINT Index,
         GUID *pKeyExchangeType
)  

Parameters

pCryptoType
Type: GUID *

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

pDecoderProfile
Type: GUID *

[in, optional] A pointer to a GUID that specifies the decoding profile. To get profiles that the driver supports, call ID3D11VideoDevice::GetVideoDecoderProfile. If decoding will not be used, set this parameter to NULL.

Index
Type: UINT 

[in] The zero-based index of the key-exchange type. The driver reports the number of types in the KeyExchangeTypeCount member of the D3D11_VIDEO_CONTENT_PROTECTION_CAPS structure.

pKeyExchangeType
Type: GUID *

[out] Receives a GUID that identifies the type of key exchange.

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.

Requirements

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