int DrawEscape(hdc, nEscape, cbInput, lpszInData) | |||||
HDC hdc; | /* handle of device context | */ | |||
int nEscape; | /* specifies escape function | */ | |||
int cbInput; | /* size of structure for input | */ | |||
LPCSTR lpszInData; | /* address of structure for input | */ |
The DrawEscape function allows applications to access drawing capabilities of a particular device that are not directly available through the graphics device interface (GDI). DrawEscape calls made by an application are translated and sent to the driver.
hdc
Identifies the device context.
nEscape
Specifies the application-defined escape function to be performed.
cbInput
Specifies the number of bytes of data pointed to by the lpvInData parameter.
lpszInData
Points to the input structure required for the specified escape.
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. A return value less than zero indicates an error. Use the GetLastError function to obtain extended error information.