.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH GetNearestPaletteIndex 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBGetNearestPaletteIndex\fR (GDI32.@) .SH SYNOPSIS UINT GetNearestPaletteIndex ( HPALETTE \fIhpalette\fR, COLORREF \fIcolor\fR ) .SH PARAMS \fIhpalette\fR \fB[In]\fR Handle of logical \fIcolor\fR palette. .PP \fIcolor\fR \fB[In]\fR Color to be matched. .PP .SH DESCRIPTION .PP Gets palette index for \fIcolor\fR. .SH NOTES .PP Should index be initialized to \fBCLR_INVALID\fR instead of \fB0\fR?. .SH RETURNS .PP \fBSuccess:\fR Index of entry in logical palette .PP \fBFailure:\fR \fBCLR_INVALID\fR .SH IMPLEMENTATION .PP Declared in \fB"wingdi.h"\fR. .PP Implemented in \fB"dlls/gdi32/palette.c"\fR. .PP Debug channel \fB"palette"\fR.