Table of Contents

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

Requirements