Reference

DescribePixelFormat(3w)

NAME

DescribePixelFormat (GDI32.@)

SYNOPSIS

INT DescribePixelFormat
(
HDC hdc,
INT iPixelFormat,
UINT nBytes,
LPPIXELFORMATDESCRIPTOR ppfd
)

DESCRIPTION

Gets information about pixel format from DC.

PARAMS

hdc [In] Device context.

iPixelFormat [In] Pixel format selector.

nBytes [In] Size of buffer.

ppfd [Out] Pointer to structure to receive pixel format data.

RETURNS

Success: Maximum pixel format index of the device context

Failure: 0

IMPLEMENTATION

Declared in "wingdi.h".

Implemented in "dlls/gdi32/painting.c".

Debug channel "gdi".

History