ID3D11VideoDevice::GetContentProtectionCaps
Syntax
HRESULT GetContentProtectionCaps(
[in] const GUID *pCryptoType,
[in] const GUID *pKeyUsageType,
[out] D3D11_VIDEO_CONTENT_PROTECTION_CAPS *pCaps
);
Parameters
| Parameter | Description |
|---|---|
pCryptoType |
Pointer to a GUID that specifies the crypto type.
For example, D3D11_CRYPTO_TYPE_AES_128_CBC.
|
pKeyUsageType |
Pointer to a GUID that specifies the key usage type.
For example, D3D11_KEY_USAGE_TYPE_EK_US.
|
pCaps |
Pointer to a D3D11_VIDEO_CONTENT_PROTECTION_CAPS structure that receives the content protection capabilities.
|
Return Value
Returns S_OK if successful; otherwise, returns an error code.
Remarks
This function retrieves the content protection capabilities for a given crypto type and key usage type. The capabilities include information about hardware acceleration for content protection operations, such as encryption, decryption, and data signing.
The D3D11_VIDEO_CONTENT_PROTECTION_CAPS structure provides details on various flags and limits
related to content protection, including:
Reserved: Reserved for future use.Caps: A bitmask of flags indicating supported content protection features.ProtectedMemorySize: The maximum size of protected memory that can be allocated.MaxGPUSatelliteHardwareID: The maximum number of GPU satellite hardware IDs that can be used.
You can use the information returned in the D3D11_VIDEO_CONTENT_PROTECTION_CAPS structure
to determine if your application can perform the desired content protection operations and to configure
them appropriately.
Requirements
| Header | d3d11.h |
|---|---|
| Library | d3d11.lib |