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

# SetPaletteEntries(3w)

## NAME

**SetPaletteEntries** (GDI32.@)

## SYNOPSIS

UINT SetPaletteEntries\
  (\
   HPALETTE            *hpalette*,\
   UINT                *start*,\
   UINT                *count*,\
   const PALETTEENTRY\* *entries*\
  )

## PARAMS

*hpalette* **\[In\]**  Handle of logical palette.

*start* **\[In\]**  Index of first entry to set.

*count* **\[In\]**  Number of *entries* to set.

*entries* **\[In\]**  Address of array of structures.

## DESCRIPTION

Sets color values for range in palette.

## RETURNS

**Success:** Number of *entries* that were set

**Failure:** **0**

## IMPLEMENTATION

Declared in **"d3d8.h"**.

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

Debug channel **"palette"**.
