Skip to content

Latest commit

 

History

History
106 lines (80 loc) · 3.97 KB

nc-d3d10umddi-pfnd3dwddm2_0ddi_getcryptosessionprivatedatasize.md

File metadata and controls

106 lines (80 loc) · 3.97 KB
UID title description old-location ms.date keywords ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos tech.root req.typenames f1_keywords topic_type api_type api_location api_name
NC:d3d10umddi.PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE
PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE (d3d10umddi.h)
GetCryptoSessionPrivateDataSize retrieves sizes for optional private driver data.
display\getcryptosessionprivatedatasize.htm
05/10/2018
PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE callback function
PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE, PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE callback, d3d10umddi/pfnGetCryptoSessionPrivateDataSize, display.getcryptosessionprivatedatasize, pfnGetCryptoSessionPrivateDataSize, pfnGetCryptoSessionPrivateDataSize callback function [Display Devices]
d3d10umddi.h
D3d10umddi.h
Desktop
Windows 10
Windows Server 2016
Windows
display
PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE
d3d10umddi/PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE
APIRef
kbSyntax
UserDefined
D3d10umddi.h
PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE

PFND3DWDDM2_0DDI_GETCRYPTOSESSIONPRIVATEDATASIZE callback function

-description

GetCryptoSessionPrivateDataSize retrieves sizes for optional private driver data.

-parameters

-param hDevice

A handle to the display device (graphics context). The Direct3D runtime passed the user-mode driver this handle as the hDevice member of the D3DDDIARG_CREATEDEVICE structure at device creation.

-param pCryptoType

Indicates the crypto type for which the private input and output size is queried.

-param pDecoderProfile

Indicates the decoder profile for which the private input and output size is queried.

-param pKeyExchangeType

Indicates the key exchange type for which the private input and output size is queried.

-param pPrivateInputSize

Returns the size of private data that the driver needs for input commands.

-param pPrivateOutputSize

Returns the size of private data that the driver needs for output commands.

-remarks

When pKeyExchangeType is D3D11_KEY_EXCHANGE_HW_PROTECTION, the following behavior is expected in the NegotiateCryptessionKeyExchangedevice driver interface (DDI):

  • DataSize is set to the size of the D3D11_KEY_EXCHANGE_HW_PROTECTION_DATA structure.
  • pData points to a D3D11_KEY_EXCHANGE_CONTENT_PROTECTION_DATA structure.
  • pInputData points to a D3D11_KEY_EXCHANGE_CONTENT_PROTECTION_OUTPUT_DATA structure where:
    • pbInput[0] – pbInput[N-1] contains memory reserved for use by the driver. The number of bytes (N) reserved for the driver is determined by the pPrivateInputSize value returned by the GetCryptoSessionPrivateDataSizeDDI.
    • pbInput[N] contains the first byte of the Digital Rights Management (DRM) command packet.
  • pOutputData points to a D3D11_KEY_EXCHANGE_CONTENT_PROTECTION_OUTPUT_DATA structure where:
    • pbOutput[0] – pbOutput[M-1] contains memory reserved for use by the driver. The number of bytes (M) reserved for the driver is determined by the pPrivateOutputSize value returned by the GetCryptoSessionPrivateDataSizeDDI.
    • pbOutput[M] contains the first byte of the DRM command packet.

-see-also

D3DDDIARG_CREATEDEVICE