---
name: "SetSystemPaletteUse"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SetSystemPaletteUse"
---

# SetSystemPaletteUse(3w)

## NAME

**SetSystemPaletteUse** (GDI32.@)

## SYNOPSIS

UINT SetSystemPaletteUse\
  (\
   HDC  *hdc*,\
   UINT *use*\
  )

## PARAMS

*hdc* **\[In\]**  Handle of device context.

*use* **\[In\]**  Palette-usage flag.

## DESCRIPTION

Specify whether the system palette contains **2** or **20** static colors.

## RETURNS

**Success:** Previous system palette

**Failure:** **SYSPAL\_ERROR**

## IMPLEMENTATION

Declared in **"wingdi.h"**.

Implemented in **"dlls/gdi32/palette.c"**.

Debug channel **"palette"**.
