DxgkDdiSetPalette routine
The DxgkDdiSetPalette function programs the color registers for palettized 8 bits-per-pixel (bpp) modes.
Syntax
PDXGKDDI_SETPALETTE DxgkDdiSetPalette; NTSTATUS APIENTRY DxgkDdiSetPalette( _In_ const HANDLE hAdapter, _In_ const DXGKARG_SETPALETTE *pSetPalette ) { ... }
Parameters
- hAdapter [in]
-
[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]
-
[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
|
Version | Available in Windows Vista and later versions of the Windows operating systems. |
|---|---|
|
Header |
|
|
IRQL | PASSIVE_LEVEL |
See also
Send comments about this topic to Microsoft
Build date: 11/29/2012