The DrawEscape function accesses drawing capabilities of a video display that are not directly available through the graphics device interface (GDI).
int DrawEscape(
HDC hdc, // handle to device context
int nEscape, // specifies escape function
int cbInput, // size of structure for input
LPCSTR lpszInData // pointer to structure for input
);
The return value specifies the outcome of the function. It is greater than zero if the function is successful, except for the QUERYESCSUPPORT draw escape, which checks for implementation only. The return value is zero if the escape is not implemented. The return value is less than zero if an error occurred.
Windows NT: To get extended error information, call GetLastError.
When an application calls the DrawEscape function, the data identified by cbInput and lpszInData is passed directly to the specified display driver.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Device Contexts Overview, Device Context Functions