特定于 PPD 的接口

重要

建议使用 Microsoft 的 IPP 收件箱类驱动程序,以及 Print Support Apps (PSA) ,在 Windows 10 和 11 中自定义打印体验,以便进行打印机设备开发。

有关详细信息,请参阅 打印支持应用设计指南

IPrintCoreUI2 COM 接口支持用户界面插件可以调用的九种方法来访问 PPD 文件中的信息。 IPrintCorePS2 COM 接口支持其中六种方法。 本部分介绍这些方法特定于 PPD 的行为。

IPrintCoreUI2 接口 PPD 方法

IPrintCoreUI2::EnumConstrainedOptions

IPrintCoreUI2::EnumFeatures

IPrintCoreUI2::EnumOptions

IPrintCoreUI2::GetOptions

IPrintCoreUI2::GetFeatureAttribute

IPrintCoreUI2::GetGlobalAttribute

IPrintCoreUI2::GetOptionAttribute

IPrintCoreUI2::SetOptions

IPrintCoreUI2::WhyConstrained

IPrintCorePS2 接口 PPD 方法

IPrintCorePS2::EnumFeatures

IPrintCorePS2::EnumOptions

IPrintCorePS2::GetOptions

IPrintCorePS2::GetFeatureAttribute

IPrintCorePS2::GetGlobalAttribute

IPrintCorePS2::GetOptionAttribute

在本部分中,对作为两个接口成员的任何方法的引用都适用于这两种方法。 例如,对 GetOptions 的 引用适用于 IPrintCoreUI2::GetOptions 以及 IPrintCorePS2::GetOptions

PPD 功能可用性

在本部分中,短语“PPD 功能当前不可用”表示打印机不支持该功能,或者该功能的非无/False 选项受当前可安装选项设置的约束。

例如,“双工功能当前不可用”表示 PPD 未指定双工 功能关键字,或者双 功能关键字的非 None 选项当前受未安装双工单元这一事实的约束。