DXGKDDI_SETPALETTE callback function

The DxgkDdiSetPalette function programs the color registers for palettized 8 bits-per-pixel (bpp) modes.

Syntax

DXGKDDI_SETPALETTE DxgkddiSetpalette;

NTSTATUS DxgkddiSetpalette(
  IN_CONST_HANDLE hAdapter,
  IN_CONST_PDXGKARG_SETPALETTE pSetPalette
)
{...}

Parameters

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.

Return Value

DxgkDdiSetPalette returns STATUS_SUCCESS, or an appropriate error result if the display palette is not successfully set.

Remarks

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.

Requirements

   
Minimum supported client Available in Windows Vista and later versions of the Windows operating systems.
Target Platform Desktop
Header d3dkmddi.h
IRQL PASSIVE_LEVEL

See Also

D3DKMDT_PALETTEDATA

DXGKARG_SETPALETTE

DxgkDdiAddDevice