D3DKMTSetDisplayPrivateDriverFormat function

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


NTSTATUS D3DKMTSetDisplayPrivateDriverFormat(



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


Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Universal
Header d3dkmthk.h (include D3dkmthk.h)
Library Gdi32.lib
DLL Gdi32.dll

See Also