ID3D11VideoDevice::GetContentProtectionCaps Method

Queries the driver for its content protection capabilities.

Syntax

public:
HRESULT GetContentProtectionCaps(
         const GUID *pCryptoType,
         const GUID *pDecoderProfile,
         D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps
)  

Parameters

pCryptoType
Type: GUID *

[in, optional] A pointer to a GUID that specifies the type of encryption to be used. The following GUIDs are defined.If no encryption will be used, set this parameter to NULL.

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.The driver might disallow some combinations of encryption type and profile.

pCaps
Type: D3D11_VIDEO_CONTENT_PROTECTION_CAPS *

[out] A pointer to a D3D11_VIDEO_CONTENT_PROTECTION_CAPS structure. The method fills in this structure with the driver’s content protection capabilities.

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).