LlPrintGetPrinterInfo

Syntax:

INT LlPrintGetPrinterInfo (HLLJOB hJob, LPTSTR lpszPrn, UINT nPrnBufSize, LPTSTR lpszPort, UINT nPortBufSize);

Task:

Returns information about the target printer.

Parameter:

hJob: List & Label job handle

lpszPrn: Address of buffer for the printer name

nPrnBufSize: Length of the buffer lpszPrn

lpszPort: Address of buffer for the printer port

nPortBufSize: Length of the buffer lpszPort

Return Value:

Error code

Hints:

Examples for printer names are 'HP DeskJet 500' or 'NEC P6', for printer port 'LPT2:' or '\\server\printer1'

In case of an export, the printer contains the description of the exporter and the port is empty.

See chapter Important Remarks on the Function Parameters of DLLs concerning the buffer return value.

See also:

LlPrintStart, LlPrintWithBoxStart