 |
Escape ..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. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int Escape(
HDC hdc, // handle to DC
int nEscape, // escape function
int cbInput, // size of input structure
LPCSTR lpvInData, // input structure
LPVOID lpvOutData // output structure
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER Escape IN gdi32;
INTEGER hdc,;
INTEGER nEscape,;
INTEGER cbInput,;
INTEGER lpvInData,;
INTEGER lpvOutData
|
 |
 |
 |
| Parameters: |
 |
hdc
[in] Handle to the device context.
nEscape
[in] Specifies the escape function to be performed.
cbInput
[in] Specifies the number of bytes of data pointed to by the lpvInData parameter.
lpvInData
[in] Pointer to the input structure required for the specified escape.
lpvOutData
[out] Pointer to the structure that receives output from this escape. |
 |
 |
| Return value: |
 |
| 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. |
 |
 |
| Usage: |
 |
* 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-12-30 19:14:52 | | Modified: | 2007-06-11 20:07:41 | Visited in last 7 days: 15 |