GETTECHNOLOGY Printer Escape function
The GETTECHNOLOGY printer escape function identifies the type of printer driver.
To perform this operation, call the ExtEscape function with the following parameters.
int ExtEscape( _In_ HDC hdc, _In_ int nEscape, _In_ int cbInput, _In_ LPCSTR lpszInData, _In_ int cbOutput, _Out_ LPSTR lpszOutData );
A handle to the printer device context.
The escape function to be performed.
Value Meaning GETTECHNOLOGY
Reports on whether or not the driver is a Postscript driver.
The number of bytes of data pointed to by the lpszInData parameter.
A pointer to the input structure required for the specified escape.
The number of bytes of data pointed to by the lpszOutData parameter.
A pointer to the structure that receives output from this escape. This parameter must not be NULL if ExtEscape is called as a query function. If no data is to be returned in this structure, set cbOutput to 0.
The return value is greater than zero if the function is successful and less than zero if not. A return value of zero indicates that the printer does not support this escape.
For non-XPSDrv printers, this escape reports whether the driver is a Postscript driver.
For XPSDrv printers, this escape reports whether the driver is the Microsoft XPS Document Converter (MXDC). If it is, the escape returns the zero-terminated string "http://schemas.microsoft.com/xps/2005/06".
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
|WinGdi.h (include Windows.h)|