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:
Value Meaning 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
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Header |
|