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

PrintCapabilities Schemas and Documents

· 52CE 我爱测

The PrintCapabilities Schema is intended to eliminate many of the limitations of the Win32 DevCaps functions.

This topic is not current. For the most current information, see the Print Schema Specification.

The current Win32 DevCaps functions (such as GetDeviceCaps or DeviceCapabilities, both described in the Microsoft Platform Software Development Kit (SDK) documentation) severely limit the type of information non-driver components can obtain, with regard to the capabilities and properties of printing devices. There is no support for publishing the capabilities of print processors, nor is there a method to enumerate nonstandard features. Thus there is no way for a component other than a driver to construct a complete user interface. Furthermore, the client or application cannot completely determine the capabilities of devices or print queues beyond those provided by the Win32 DevCaps functions. The current functions are not extensible, so devices cannot publish new properties or features.

The PrintCapabilities Schema is intended to eliminate many of the limitations of the Win32 DevCaps functions by providing a superset of the functionality afforded by these functions. If more functionality is needed, a provider of the PrintCapabilities document can extend the Print Schema Keywords, within the constraints of the Print Schema Framework, by adding privately-defined element instances. Because of its reliance on XML as the medium of interchange, any consumer of a PrintCapabilities document can access all of the data in the document without restriction, and without concern for compatibility with different operating system versions. This section describes the PrintCapabilities Schema and details its use.

The intended audience for this section includes the following groups:

  • Implementers of the PrintTicket/PrintCapabilities Provider interface

  • Consumers of PrintCapabilities

  • Clients of the PrintTicket/PrintCapabilities Provider interface

The first category in the preceding list is referred to as PrintCapabilities providers in the remainder of this section. The second and third categories are referred to as PrintCapabilities consumers.

Relationship to Print Schema and PrintTicket Schema

The PrintCapabilities and PrintTicket Schemas are both specialized parts of the Print Schema. The main structural differences between these subsets of the Print Schema is that the PrintCapabilities Schema includes Property and ParameterDef instances that are not contained in the PrintTicket Schema, while the PrintTicket Schema contains Property and ParameterInit instances that are not contained in the PrintCapabilities Schema. Except for these differences, the PrintCapabilities and PrintTicket Schemas generally mirror each other in content, sharing Feature, Option, ScoredProperty, and Value instances. Any such shared content must be kept up-to-date. For example, if a change is made in the PageMediaSize Feature in the PrintCapabilities Schema, the same change must be made in the PrintTicket Schema.

Related topics

Print Schema Specification

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)

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

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