13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

EscapeEscapeSyntaxParametersReturn valueint Escape(hDC, nEscape, nCount, lpInData, lpOutData)function Escape(DC: HDC; Escape, Count: Integer; InData, OutData:Pointer): Integer;This function allows applications to access facilities of a particular devicethat are not directly available through CD!. Escape calls made by anapplication are translated and sent to the device driver.hDCnEscapenCountIplnDataIpOutDataHOC Identifies the device context.int Specifies the escape function to be performed. For acomplete list of escape functions, see Chapter 12, "Printerescapes," in Reference, Volume 2.int Specifies the number of bytes of data pointed to by theIplnData parameter.LPSTR Points to the input data structure required for thisescape.LPSTR Points to the data structure to receive output fromthis escape. The IpOutData parameter should be NULL ifno data are returned.The return value specifies the outcome of the function. It is positive if thefunction is successful except for the QUERYESCSUPPORT escape, whichonly checks for implementation. The return value is zero if the escape isnot implemented. A negative value indicates an error. The following listshows common error values:ValueSP_ERRORSP _ OUTOFDISKSP _OUTOFMEMORYSP _USERABORTMeaningGeneral error.Not enough disk space is currently available for spooling,and no more space will become available.Not enough memory is available for spooling.User terminated the job through the Print Manager.268Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!