VideoProcessorSetStreamExtension function

Sets the private state data for a video processor stream from an application.


HRESULT APIENTRY* VideoProcessorSetStreamExtension(
  _In_       D3D10DDI_HDEVICE           hDevice,
  _In_       D3D11_1DDI_HVIDEOPROCESSOR hVideoProcessor,
  _In_       UINT                       StreamIndex,
  _In_ const GUID                       *pGuid,
  _In_       UINT                       DataSize,
  _In_       void                       *pData


hDevice [in]

A handle to the display device (graphics context).

hVideoProcessor [in]

A handle to the video processor object that was created through a call to the CreateVideoProcessor function.

StreamIndex [in]

The zero-based index of the input stream.

pGuid [in]

A pointer to a GUID that identifies the private state data. The meaning of this GUID is defined by the graphics driver.

DataSize [in]

The size, in bytes, of the private state data in the buffer referenced by the pData parameter.

pData [in]

A pointer to a buffer that contains the private state data.

Note  The Direct3D runtime does not validate the private state data in the buffer before it calls the VideoProcessorSetStreamExtension function

Return value

VideoProcessorSetStreamExtension returns one of the following values:

Return codeDescription

The private state data was set successfully.


The graphics adapter was removed.


The display miniport driver cannot set the requested private state data for the video processor.


Parameters were validated and determined to be incorrect.



Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Target platform


D3d10umddi.h (include D3d10umddi.h)

See also




Send comments about this topic to Microsoft