PRINTER_CONNECTION_INFO_1 Structure

Represents information about a connection to a printer.

Syntax

typedef struct _PRINTER_CONNECTION_INFO_1 {
  DWORD  dwFlags;
  LPTSTR pszDriverName;
}PRINTER_CONNECTION_INFO_1, *PPRINTER_CONNECTION_INFO_1;

Members

dwFlags

The following values are defined:

ValueMeaning
PRINTER_CONNECTION_MISMATCH (0x00000020)

If this bit-flag is set, the printer connection is mismatched. The user can supply a local print driver as pszDriverName and use it to do the rendering instead of using the driver installed on the server printer to which the user is connected.

PRINTER_CONNECTION_NO_UI (0x00000040)

If this bit-flag is set then this call cannot display a dialog box. If a dialog box must be displayed to install a printer driver from the server and this bit-flag is set, the printer driver will not be installed, the printer connection will not be added, and the call will fail.

Windows 7: In Windows 7 and later versions of Windows, if this flag is set and the user is running in elevated mode, the Do you trust this printer? dialog will not be shown.

 

pszDriverName

A pointer to the name of the driver.

Requirements

Minimum supported clientWindows Vista
Minimum supported serverWindows Server 2008
HeaderWinspool.h. (include Windows.h)

See Also

Printing and Print Spooler Overview
Printing and Print Spooler Structures

Send comments about this topic to Microsoft

Build date: 11/16/2009

Tags :


Page view tracker