DrawEscape

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
);
 

Parameters

hdc
Handle to the device context for the specified video display.
nEscape
Specifies the escape function to be performed.
cbInput
Specifies the number of bytes of data pointed to by the lpszInData parameter.
lpszInData
Pointer to the input structure required for the specified escape.

Return Values

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.

Remarks

When an application calls the DrawEscape function, the data identified by cbInput and lpszInData is passed directly to the specified display driver.

QuickInfo

  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.

See Also

Device Contexts Overview, Device Context Functions