Expand Minimize

D3DKMTSetDisplayPrivateDriverFormat function

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

Syntax


NTSTATUS APIENTRY D3DKMTSetDisplayPrivateDriverFormat(
  _In_ const D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT *pData
);

Parameters

pData [in]

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 codeDescription
STATUS_SUCCESS

The video present source was successfully changed.

STATUS_DEVICE_REMOVED

The graphics adapter was stopped or the display device was reset.

STATUS_INVALID_PARAMETER

Parameters were validated and determined to be incorrect.

STATUS_GRAPHICS_NOT_EXCLUSIVE_MODE_OWNER

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 DxgkDdiSetDisplayPrivateDriverFormat 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

Target platform

Universal

Version

Available in Windows Vista and later versions of the Windows operating systems.

Header

D3dkmthk.h (include D3dkmthk.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT
DxgkDdiSetDisplayPrivateDriverFormat

 

 

Send comments about this topic to Microsoft

Show:
© 2015 Microsoft