Escape Function

In Japanese Windows 2.x, Japanese printer drivers have special escapes to support EUDC and Japanese applications called the Escape function to manipulate EUDC characters in the printers. Furthermore, some Japanese applications create EUDC characters and download them to the printers by calling the Escape function. In Japanese Windows 3.1, the system default EUDC font and the EUDC editor are supported so applications no longer manipulate EUDC characters by themselves. Only EUDC editors call the Escape function to manipulate EUDC characters.

Note  In Asian versions of Windows 95, the subfunctions always fail since traditional EUDC functions are taken over by new TrueType EUDC functions.

int FAR PASCAL Escape (hFC, nEscape, nCount, lpInData, lpOutData)
HFC  hDC;
int  nEscape;
int  nCount;
LPSTR  lpInData;
LPSTR  lpOutData;
 
hDC
Specifies the target device context to be accessed.
nEscape
Specifies the subfunction number.

GAIJIFONTSIZE

GAIJIAREASIZE

GAIJISYSTEMGETFONT

GAIJISYSTEMSETFONT

GAIJITOCODE

GAIJIPHYSICALFONTSIZE

nCount
Specifies the size of memory that has been reserved in the area pointed to by the lpOutData argument.

Other parameters and the return value depend on each subfunction. However, if the return value is zero, an error has occurred or the function is not implemented.

When any of the following subfunctions is executed, GDI copies the value of the nCount parameter to the high-order word of lpInData. Therefore, the value to be set in the high-order word of lpInData in the description for each subfunction must also be set in the nCount parameter. Application programmers must make sure to do this.