// d3dumddi.h
PFND3DDDI_DESTROYCRYPTOSESSION Pfnd3dddiDestroycryptosession;
HRESULT Pfnd3dddiDestroycryptosession(
HANDLE hDevice,
const D3DDDIARG_DESTROYCRYPTOSESSION *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DestroyCryptoSession function releases resources for the encryption session that the CreateCryptoSession function creates.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in]
A pointer to a D3DDDIARG_DESTROYCRYPTOSESSION structure that contains one member that specifies the handle to the encryption session to destroy.
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. |
D3DDDIARG_DESTROYCRYPTOSESSION