Bewerken

Delen via


D3DKMTSetDisplayPrivateDriverFormat function (d3dkmthk.h)

The D3DKMTSetDisplayPrivateDriverFormat function changes the private-format attribute of a video present source.

Syntax

NTSTATUS D3DKMTSetDisplayPrivateDriverFormat(
  [in] const D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT *unnamedParam1
);

Parameters

[in] unnamedParam1

A pointer to a D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT structure that describes how to format a video present source.

Return value

D3DKMTSetDisplayPrivateDriverFormat returns one of the following values:

Return code Description
STATUS_SUCCESS The video present source was successfully changed.
STATUS_DEVICE_REMOVED The graphics adapter was stopped or the display device was reset.
Parameters were validated and determined to be incorrect.
Before the call to D3DKMTSetDisplayPrivateDriverFormat, the device did not acquire exclusive ownership of the view. Therefore, the device could not change the private-format attribute of the video present source.
STATUS_NOT_SUPPORTED The display miniport driver does not support the DXGKDDI_SETDISPLAYPRIVATEDRIVERFORMAT function.
STATUS_UNSUCCESSFUL The display miniport driver could not change the private-format attribute of the view for the video present source.

This function might also return other NTSTATUS values.

Requirements

Requirement Value
Minimum supported client Windows Vista
Target Platform Universal
Header d3dkmthk.h (include D3dkmthk.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT

DXGKDDI_SETDISPLAYPRIVATEDRIVERFORMAT