// d3dkmddi.h
DXGKDDI_SETPALETTE DxgkddiSetpalette;
NTSTATUS DxgkddiSetpalette(
[in] IN_CONST_HANDLE hAdapter,
[in] IN_CONST_PDXGKARG_SETPALETTE pSetPalette
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The DxgkDdiSetPalette function programs the color registers for palettized 8 bits-per-pixel (bpp) modes.
hAdapter [in]A handle to a context block that is associated with a display adapter. The display miniport driver previously provided this handle to the Microsoft DirectX graphics kernel subsystem in the MiniportDeviceContext output parameter of the DxgkDdiAddDevice function.
pSetPalette [in]A pointer to a DXGKARG_SETPALETTE structure that describes the palette to set for the display.
DxgkDdiSetPalette returns STATUS_SUCCESS, or an appropriate error result if the display palette is not successfully set.
Implementation of the DxgkDdiSetPalette function in the Windows Vista display driver model replaces IOCTL_VIDEO_SET_COLOR_REGISTERS functionality in the Windows 2000 display driver model.
DxgkDdiSetPalette should be made pageable.