// d3dumddi.h
PFND3DDDI_GETENCRYPTIONBLTKEY Pfnd3dddiGetencryptionbltkey;
HRESULT Pfnd3dddiGetencryptionbltkey(
HANDLE hDevice,
const D3DDDIARG_GETENCRYPTIONBLTKEY *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The GetEncryptionBltKey function returns the key that is used to decrypt the data that the driver's EncryptionBlt function returns.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in, out]
A pointer to a D3DDDIARG_GETENCRYPTIONBLTKEY structure that describes the key for an encrypted session.
GetEncryptionBltKey returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | The key for an encrypted session is successfully retrieved. |
| D3DDDIERR_NOTAVAILABLE | The driver does not support the GetEncryptionBltKey function. |
The hardware and driver can optionally support the GetEncryptionBltKey function for all crypto types.
Each time the Direct3D runtime calls the driver's GetEncryptionBltKey function, the driver should generate a new read-back key. If the driver's CreateCryptoSession function previously created the encryption session with the CryptoType member of the D3DDDIARG_CREATECRYPTOSESSION structure set to D3DCRYPTOTYPE_AES128_CTR, the driver and hardware should encrypt the read-back key with the session key.