大网数据广告活动
打印与设备

PRINTER_CONNECTION_INFO_1 structure (Winspool.h)

· 52CE 我爱测

Represents information about a connection to a printer.

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 Winspool.h (include Windows.h)

See also

Printing

Print Spooler API Structures

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。