Jump to content

DEVESC_QUERYFB

From EDM2
Revision as of 00:05, 12 July 2025 by Martini (talk | contribs) (Created page with "{{DISPLAYTITLE:DEVESC_QUERYFB}} '''GreEscape DEVESC_QUERYFB''' is called by EnDIVE users to get information describing the characteristics of the frame buffer. ;Simulation support: None. ==Syntax==  GreEscape(hdc, ICODE, lInCount, pbInData, plOutCount, pbOutData); ==Parameters== ;''hdc'' (HDC) - input: Device context handle. ;''ICODE'' (LONG) - input: DEVESC_QUERYFB escape code. ;''lInCount'' (LONG) - input: Zero (0). ;''pbInData'' (PBYTE) - in...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

GreEscape DEVESC_QUERYFB is called by EnDIVE users to get information describing the characteristics of the frame buffer.

Simulation support

None.

Syntax

 GreEscape(hdc, ICODE, lInCount, pbInData, plOutCount, pbOutData);

Parameters

hdc (HDC) - input
Device context handle.
ICODE (LONG) - input
DEVESC_QUERYFB escape code.
lInCount (LONG) - input
Zero (0).
pbInData (PBYTE) - input
NULL.
plOutCount (PLONG) - input
Number of bytes pointed to by pbOutData.
pbOutData (PLONG) - input
Pointer to FBINFO data structure.

Returns

rc (LONG) - returns
Return Codes.
The handling routine returns:
DEV_OK
Successful
DEVESC_NOTIMPLEMENTED
Escape is not implemented for the specified code
DEVESC_ERROR
Error
WINGETLASTERROR can be called for specific error information.

Remarks

None.

Sample Source Code

Declaration:

#define INCL_GRE_DEVICE
#include <os2.h>

HDC       hdc;           /* Device context handle. */
LONG      ICODE;         /* DEVESC_QUERYFB escape code. */
LONG      lInCount;      /* Zero (0). */
PBYTE     pbInData;      /* NULL. */
PLONG     plOutCount;    /* Number of bytes pointed to by pbOutData. */
PLONG     pbOutData;     /* Pointer to FBINFO data structure. */
LONG      rc;            /* Return Codes. */

rc = GreEscape(hdc, ICODE, lInCount, pbInData,
        plOutCount, pbOutData);