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

Printer Driver Installation Reference

· 52CE 我爱测

The functions in this section install and configure printer drivers on a computer.

The functions in this section install and configure printer drivers on a computer.

In this section

Function Description
<a href="addmonitor.md">AddMonitor</a> The <a href="/windows/desktop/printdocs/addmonitor">AddMonitor</a> function installs a local port monitor and links the configuration, data, and monitor files.
<a href="addport.md">AddPort</a> The <a href="/windows/desktop/printdocs/addport">AddPort</a> function adds the name of a port to the list of supported ports. The AddPort function is exported by the port monitor.
AddPrinterDriver The AddPrinterDriver function installs a local or remote printer driver and associates the configuration, data, and driver files. For more flexibility in installing or upgrading printer drivers, use the AddPrinterDriverEx function because it allows strict upgrade, strict downgrade, copying of newer files only, and copying of all files (regardless of the file time stamps). Note: Installing a printer driver without a driver package is no longer recommended. Use InstallPrinterDriverFromPackage instead.
AddPrinterDriverEx The AddPrinterDriverEx function installs a local or remote printer driver and links the configuration, data, and driver files. Besides having the capabilities of AddPrinterDriver, it also has options that permit strict upgrade, strict downgrade, copying of newer files only, and copying of all files (regardless of file time stamps). Note: Installing a printer driver without a driver package is no longer recommended. Use InstallPrinterDriverFromPackage instead.
<a href="addprintprocessor.md">AddPrintProcessor</a> The <a href="/windows/desktop/printdocs/addprintprocessor">AddPrintProcessor</a> function installs a print processor on the specified server and adds the print-processor name to the list of supported print processors.
<a href="addprintprovidor.md">AddPrintProvidor</a> The <a href="/windows/desktop/printdocs/addprintprovidor">AddPrintProvidor</a> function installs a local print provider and links the configuration, data, and provider files.
<a href="coreprinterdriverinstalled.md">CorePrinterDriverInstalled</a> The <a href="/windows/desktop/printdocs/coreprinterdriverinstalled">CorePrinterDriverInstalled</a> function reports whether a core printer driver with a specified GUID, date, and version is installed.
<a href="deletemonitor.md">DeleteMonitor</a> The <a href="/windows/desktop/printdocs/deletemonitor">DeleteMonitor</a> function removes a port monitor added by the <a href="addmonitor.md">AddMonitor</a> function.
<a href="deleteport.md">DeletePort</a> The <a href="/windows/desktop/printdocs/deleteport">DeletePort</a> function displays a dialog box that allows the user to delete a port name.
<a href="deleteprinterdriver.md">DeletePrinterDriver</a> The <a href="/windows/desktop/printdocs/deleteprinterdriver">DeletePrinterDriver</a> function removes the specified printer-driver name from the list of names of supported drivers on a server. To delete the files associated with the driver in addition to removing the specified printer-driver name from the list of names of supported drivers for a server, use the <a href="deleteprinterdriverex.md">DeletePrinterDriverEx</a> function.<a href="/windows/desktop/printdocs/deleteprinterdriver">DeletePrinterDriver</a> deletes a driver only if no version of the driver is in use for the specified environment. <a href="deleteprinterdriverex.md">DeletePrinterDriverEx</a> can delete specific versions of the driver.
<a href="deleteprinterdriverex.md">DeletePrinterDriverEx</a> The <a href="/windows/desktop/printdocs/deleteprinterdriverex">DeletePrinterDriverEx</a> function removes the specified printer-driver name from the list of names of supported drivers on a server and deletes the files associated with the driver. This function can also delete specific versions of the driver.
<a href="deleteprinterdriverpackage.md">DeletePrinterDriverPackage</a> Deletes a printer driver package from the driver store.
<a href="deleteprintprocessor.md">DeletePrintProcessor</a> The <a href="/windows/desktop/printdocs/deleteprintprocessor">DeletePrintProcessor</a> function removes a print processor added by the <a href="addprintprocessor.md">AddPrintProcessor</a> function.
<a href="deleteprintprovidor.md">DeletePrintProvidor</a> The <a href="/windows/desktop/printdocs/deleteprintprovidor">DeletePrintProvidor</a> function removes a print provider added by the <a href="addprintprovidor.md">AddPrintProvidor</a> function.
<a href="enummonitors.md">EnumMonitors</a> The <a href="/windows/desktop/printdocs/enummonitors">EnumMonitors</a> function retrieves information about the port monitors installed on the specified server.
<a href="enumports.md">EnumPorts</a> The <a href="/windows/desktop/printdocs/enumports">EnumPorts</a> function enumerates the ports that are available for printing on a specified server.
<a href="enumprinterdrivers.md">EnumPrinterDrivers</a> The <a href="/windows/desktop/printdocs/enumprinterdrivers">EnumPrinterDrivers</a> function enumerates the printer drivers installed on a specified printer server.
<a href="enumprintprocessordatatypes.md">EnumPrintProcessorDatatypes</a> The <a href="/windows/desktop/printdocs/enumprintprocessordatatypes">EnumPrintProcessorDatatypes</a> function enumerates the data types that a specified print processor supports.
<a href="enumprintprocessors.md">EnumPrintProcessors</a> The <a href="/windows/desktop/printdocs/enumprintprocessors">EnumPrintProcessors</a> function enumerates the print processors installed on the specified server.
<a href="getcoreprinterdrivers.md">GetCorePrinterDrivers</a> Retrieves GUID, version, and date of the specified core printer drivers and the path to their packages.
<a href="getprinterdriver.md">GetPrinterDriver</a> The <a href="/windows/desktop/printdocs/getprinterdriver">GetPrinterDriver</a> function retrieves driver data for the specified printer. If the driver is not installed on the local computer, GetPrinterDriver installs it.
<a href="getprinterdriver2.md">GetPrinterDriver2</a> The <a href="getprinterdriver2.md">GetPrinterDriver2</a> function retrieves driver data for the specified printer. If the driver is not installed on the local computer, GetPrinterDriver2 installs it and displays any user interface to the specified window.
<a href="getprinterdriverdirectory.md">GetPrinterDriverDirectory</a> The <a href="/windows/desktop/printdocs/getprinterdriverdirectory">GetPrinterDriverDirectory</a> function retrieves the path of the printer-driver directory.
<a href="getprinterdriverpackagepath.md">GetPrinterDriverPackagePath</a> Retrieves the path to the specified printer driver package on a print server.
<a href="getprintprocessordirectory.md">GetPrintProcessorDirectory</a> The <a href="/windows/desktop/printdocs/getprintprocessordirectory">GetPrintProcessorDirectory</a> function retrieves the path to the print processor directory on the specified server.
<a href="installprinterdriverfrompackage.md">InstallPrinterDriverFromPackage</a> Installs a printer driver from a driver package that is in the print server's driver store.
<a href="uploadprinterdriverpackage.md">UploadPrinterDriverPackage</a> Uploads a printer driver to the print server's driver store so that it can be installed by calling <a href="installprinterdriverfrompackage.md">InstallPrinterDriverFromPackage</a>.

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)

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

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