Bewerken

Delen via


D3DDDIARG_DECRYPTIONBLT structure (d3dumddi.h)

The D3DDDIARG_DECRYPTIONBLT structure describes the parameters of a decrypted bit-block transfer (bitblt) in a call to the DecryptionBlt function.

Syntax

typedef struct _D3DDDIARG_DECRYPTIONBLT {
  [in] HANDLE                     hCryptoSession;
  [in] HANDLE                     hSrcResource;
  [in] UINT                       SrcSubResourceIndex;
  [in] HANDLE                     hDstResource;
  [in] UINT                       DstSubResourceIndex;
  [in] UINT                       SrcResourceSize;
  [in] D3DDDIENCRYPTED_BLOCK_INFO *pEncryptedBlockInfo;
  [in] VOID                       *pContentKey;
  [in] VOID                       *pIV;
} D3DDDIARG_DECRYPTIONBLT;

Members

[in] hCryptoSession

A handle to the encryption session.

[in] hSrcResource

A handle to the source resource.

[in] SrcSubResourceIndex

The index to the source surface within the resource.

[in] hDstResource

A handle to the destination resource.

[in] DstSubResourceIndex

The index to the destination surface within the resource.

[in] SrcResourceSize

The size, in bytes, of the source resource.

[in] pEncryptedBlockInfo

A pointer to a D3DDDIENCRYPTED_BLOCK_INFO structure that describes the portions of the buffer that are encrypted.

[in] pContentKey

A pointer to a block of memory that contains the content key that is required to decrypt the bitblt data. If pContentKey is NULL, hardware does not require a separate content key to decrypt the data. That is, the session key is used to encrypt the data.

[in] pIV

A pointer to a block of memory that contains the initialization vector that is required to decrypt the bitblt data. If pIV is NULL, hardware does not require a separate initialization vector to decrypt the data. That is, the session key is used to encrypt the data.

Remarks

A pointer to a populated D3DDDIARG_DECRYPTIONBLT structure is passed to the driver's DecryptionBlt function to write data to a protected surface.

Requirements

Requirement Value
Minimum supported client D3DDDIARG_DECRYPTIONBLT is supported beginning with the Windows 7 operating system.
Header d3dumddi.h (include D3dumddi.h)

See also

D3DDDIENCRYPTED_BLOCK_INFO

DecryptionBlt