共用方式為


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.

Syntax

int ExtEscape(
  _In_  HDC    hdc,
  _In_  int    nEscape,
  _In_  int    cbInput,
  _In_  LPCSTR lpszInData,
  _In_  int    cbOutput,
  _Out_ LPSTR  lpszOutData
);

Parameters

  • hdc [in]
    A handle to the printer device context.

  • nEscape [in]
    The escape function to be performed.

    Value Meaning
    GETTECHNOLOGY

    Reports on whether or not the driver is a Postscript driver.

     

  • cbInput [in]
    The number of bytes of data pointed to by the lpszInData parameter.

  • lpszInData [in]
    A pointer to the input structure required for the specified escape.

  • cbOutput [in]
    The number of bytes of data pointed to by the lpszOutData parameter.

  • lpszOutData [out]
    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.

Return value

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.

Remarks

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 "https://schemas.microsoft.com/xps/2005/06".

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

WinGdi.h (include Windows.h)

See also

Printing

GDI Printer Escape Functions

Microsoft XPS Document Converter (MXDC)

ExtEscape