// d3d10umddi.h
PFND3D11_1DDI_VIDEODECODERGETHANDLE Pfnd3d111DdiVideodecodergethandle;
HRESULT Pfnd3d111DdiVideodecodergethandle(
D3D10DDI_HDEVICE hDevice,
D3D11_1DDI_HDECODE unnamedParam2,
HANDLE *pContentProtectionHandle
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
Returns the driver's handle for a video decoder that can be used by the application to configure content protection.
hDeviceA handle to the display device (graphics context).
unnamedParam2hDecoder [in]
A handle to the video decoder object that was created through a call to the CreateVideoDecoder function.
pContentProtectionHandleA pointer to the handle.
VideoDecoderGetHandle returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | The handle was returned successfully. |
| D3DDDIERR_DEVICEREMOVED | The graphics adapter was removed. |
| E_OUTOFMEMORY | Memory was not available to complete the operation. |
The VideoDecoderGetHandle function returns a driver handle for the video decoder. This handle can be used by the application to associate the decoder with a cryptographic session over the authenticated channel.
This function allows the driver to define its own handle to its state data for the video decoder. This bypasses any handle mapping that may be performed by the Microsoft Direct3D runtime.
Note Drivers can return the same handle in the pHandle parameter that was passed in the hDecoder parameter.
D3D11_1DDIARG_VIDEODECODEREXTENSION