PFND3D11_1DDI_GETCRYPTOKEYEXCHANGETYPE - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// d3d10umddi.h

PFND3D11_1DDI_GETCRYPTOKEYEXCHANGETYPE Pfnd3d111DdiGetcryptokeyexchangetype;

HRESULT Pfnd3d111DdiGetcryptokeyexchangetype(
  D3D10DDI_HDEVICE hDevice,
  const GUID *pCryptoType,
  const GUID *pDecodeProfile,
  UINT Index,
  GUID *pKeyExchangeType
)
{...}
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nc-d3d10umddi-pfnd3d11_1ddi_getcryptokeyexchangetype)

PFND3D11_1DDI_GETCRYPTOKEYEXCHANGETYPE callback function

Description

Queries the type of key exchange that is supported by the cryptographic engine of the display adapter for a specified encryption algorithm and video decoder profile.

Parameters

hDevice

A handle to the display device (graphics context).

pCryptoType

A pointer to a GUID that specifies the type of encryption algorithm to query.

pDecodeProfile

A pointer to a GUID that specifies the decoder profile to query.

Index

The zero-based index of the key exchange type.

pKeyExchangeType

A pointer to a GUID that specifies the supported key exchange type for the specified index.

Return value

GetCryptoKeyExchangeType returns one of the following values:

Return code Description
S_OK The content protection capabilities were queried successfully.
D3DERR_INVALID_CRYPTO The encryption algorithm specified by the pCryptoType parameter is not supported.

Remarks

The GetCryptoKeyExchangeType function can be called to query the key exchange types for any index from 0 to (D3D11_1DDI_VIDEO_CONTENT_PROTECTION_CAPS.KeyExchangeTypeCount– 1).

The pCryptoType parameter can contain one of the following values:

[!NOTE] The Microsoft Direct3D runtime verifies that the pDecodeProfile, pCryptoType, and Index parameter data is valid before it calls the GetCryptoKeyExchangeType function.

See also

D3D11_1DDI_VIDEO_CONTENT_PROTECTION_CAPS

GetContentProtectionCaps