PFND3DDDI_DESTROYCRYPTOSESSION callback function (d3dumddi.h)

The DestroyCryptoSession function releases resources for the encryption session that the CreateCryptoSession function creates.

Syntax

PFND3DDDI_DESTROYCRYPTOSESSION Pfnd3dddiDestroycryptosession;

HRESULT Pfnd3dddiDestroycryptosession(
  HANDLE hDevice,
  const D3DDDIARG_DESTROYCRYPTOSESSION *unnamedParam2
)
{...}

Parameters

hDevice

A handle to the display device (graphics context).

unnamedParam2

pData [in]

A pointer to a D3DDDIARG_DESTROYCRYPTOSESSION structure that contains one member that specifies the handle to the encryption session to destroy.

Return value

DestroyCryptoSession returns one of the following values:

Return code Description
S_OK The encryption session is successfully destroyed.
E_OUTOFMEMORY DestroyCryptoSession could not allocate the required memory for it to complete.

Requirements

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

See also

CreateCryptoSession

D3DDDIARG_DESTROYCRYPTOSESSION