## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreQueryBitmapHandle - Parameters

hdc (HDC) - input Device context handle.

lLcid (LONG) - input Local identifier for which the bit-map handle is required.

pInstance (PVOID) - input Pointer to instance data.

lFunction (ULONG) - input High-order WORD=flags; low-order WORD= NGreQueryBitmapHandle.

rc (HBITMAP) - returns Return codes.

This function returns the bit-map handle (hbm), or it returns GPI_ERROR if an error occurs.

Possible Errors Detected: When an error is detected, the graphics engine calls WinSetErrorInfo to post the condition. Reasons for failure of this function include:

PMERR_BITMAP_NOT_SELECTED
PMERR_HDC_BUSY
PMERR_INV_HDC
PMERR_INV_SETID

Refer to the "Error Explanations" section of the Presentation Manager Programming Reference for further explanation.