..msdn Add comment W32 Constants Translate this page
The Escape function enables applications to access capabilities of a particular device not directly available through GDI. Escape calls made by an application are translated and sent to the driver. |
HDC hdc, // handle to DC
int nEscape, // escape function
int cbInput, // size of input structure
LPCSTR lpvInData, // input structure
LPVOID lpvOutData // output structure
DECLARE INTEGER Escape IN gdi32;
[in] Handle to the device context.
[in] Specifies the escape function to be performed.
[in] Specifies the number of bytes of data pointed to by the lpvInData parameter.
[in] Pointer to the input structure required for the specified escape.
[out] Pointer to the structure that receives output from this escape.
|If the function succeeds, the return value is greater than zero, except with the QUERYESCSUPPORT printer escape, which checks for implementation only. If the escape is not implemented, the return value is zero.|
* some constants that used with the Escape function
#DEFINE NEWFRAME 1
#DEFINE STARTDOC 10
#DEFINE ENDDOC 11
* informs the printer that the application has finished
* writing to a page.
= Escape(hPrnDC, NEWFRAME, 0,0,0)
* ends a print job started by the STARTDOC escape.
= Escape(hPrnDC, ENDDOC, 0,0,0)
|Translate this page:|
Visited in last 7 days: 10
|Created: ||2002-12-30 19:14:52|
|Modified: ||2007-06-11 20:07:41|
||User Contributed Notes:
|Alex | 2006-06-20 13:00:57|
|Can someone tell me why escape function doesn't work in win98?|
|A.M. | 2006-06-20 13:18:30|
|What is the return value?|
Copyright © 2001-2016
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.6.30), the Open Source standard SQL database,
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc.