The following information is provided as is, and the authors take no responsibility for the correctness.
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 );
Handle to the printer device context.
Specifies the size, in bytes, of the data pointed to by the lpszInData parameter.
Pointer to a buffer containing the input data.
Specifies the size, in bytes, of the data pointed to by the lpszOutData parameter.
Pointer to a buffer containing the output data.
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.