The following information is provided as is, and the authors take no responsibility for the correctness.

GETTECHNOLOGY

The GETTECHNOLOGY printer escape function identifies the type of printer driver.

To perform this operation, call the ExtEscape function with the following parameters.

#define GETTECHNOLOGY  20

int ExtEscape(
  hdc,             // handle to device context (HDC)
  GETTECHNOLOGY,   // the escape function
  cbInput,         // size of input structure in bytes
  lpszInData,      // pointer to input data
  cbOutput,        // size of the output structure
  lpszOutData      // pointer to the output structure
);

Parameters

hdc

Handle to the printer device context.

cbInput

Specifies the size, in bytes, of the data pointed to by the lpszInData parameter.

lpszInData

Pointer to a buffer containing the input data.

cbOutput

Specifies the size, in bytes, of the data pointed to by the lpszOutData parameter.

lpszOutData

Pointer to a buffer containing the output data.

Return Values

If the function succeeds, the return value is greater than zero. If the function fails or is not supported, the return value is less than or equal to zero.

To get extended error information, call GetLastError.

Remarks

  • For non-XPSDrv printers: This escape reports on whether or not the driver is a Postscript driver.
  • For XPSDrv printers: Reports on whether or not 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”.

Requirements

  • Windows NT/2000/XP/Vista: Included in Windows 2000 and later.
  • Windows 95/98/Me: Unsupported.

 
winspool/printer_escape_functions/gettechnology.txt · Last modified: 2007/11/26 13:34 (external edit)
 

All text is available under the terms of the GNU Free Documentation License (see Copyrights for details). Disclaimers

Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki