// d3dkmthk.h
NTSTATUS D3DKMTSetDisplayPrivateDriverFormat(
[in] const D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT *unnamedParam1
);
View the official Windows Driver Kit DDI referenceNo description available.
The D3DKMTSetDisplayPrivateDriverFormat function changes the private-format attribute of a video present source.
unnamedParam1 [in]A pointer to a D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT structure that describes how to format a video present source.
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.
D3DKMT_SETDISPLAYPRIVATEDRIVERFORMAT
DXGKDDI_SETDISPLAYPRIVATEDRIVERFORMAT