网站首页  词典首页

请输入您要查询的函数:

 

术语 deleteprinterdriver
释义 DeletePrinterDriver
语法:
BOOL DeletePrinterDriver(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in LPTSTR pDriverName
);
DeletePrinterDriver功能
该DeletePrinterDriver函数删除从支持的驱动程序名称的服务器列表指定的打印机驱动程序的名称。
要删除与在取消从支持的驱动程序名称的服务器列表指定的打印机驱动程序名称程序有关的文件,使用DeletePrinterDriverEx功能。
DeletePrinterDriver删除只做司机如果没有版本的驱动程序在指定的环境使用。 DeletePrinterDriverEx可以删除该驱动程序的特定版本。
参数
pName [in]
一个指向 null 结尾的字符串指针指定的服务器从该驱动程序被删除的名称。如果该参数为NULL,则打印机驱动程序的名称将被删除本地。
pEnvironment [in]
一个指向 null 结尾的字符串指针指定的环境,从该驱动程序被删除(例如,Windows x86的时,Windows IA64的,或Windows x64)的。如果该参数为NULL,则删除驱动程序的名称从目前的环境中调用应用程序和客户机(不是目标应用程序和打印服务器)。
pDriverName [in]
一个指向 null 结尾的字符串指针指定认为应该删除驱动程序的名称。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
调用者必须有相关权限。
该DeletePrinterDriver函数不会删除关联的文件,它只是免除了EnumPrinterDrivers函数返回的列表中的驱动程序的名称。
在调用DeletePrinterDriver,您必须删除所有打印机对象使用的打印机驱动程序。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesDeletePrinterDriverW(Unicode)和DeletePrinterDriverA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
DeletePrinterDriverEx
EnumPrinterDrivers
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DeletePrinterDriver Function
The DeletePrinterDriver function removes the specified printer-driver name from the list of names of supported drivers for 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 DeletePrinterDriverEx function.
DeletePrinterDriver deletes a driver only if no version of the driver is in use for the specified environment. DeletePrinterDriverEx can delete specific versions of the driver.
Syntax
BOOL DeletePrinterDriver(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in LPTSTR pDriverName
);
Parameters
pName [in]
A pointer to a null-terminated string that specifies the name of the server from which the driver is to be deleted. If this parameter is NULL, the printer-driver name will be removed locally.
pEnvironment [in]
A pointer to a null-terminated string that specifies the environment from which the driver is to be deleted (for example, Windows x86, Windows IA64, or Windows x64). If this parameter is NULL, the driver name is deleted from the current environment of the calling application and client machine (not of the destination application and print server).
pDriverName [in]
A pointer to a null-terminated string specifying the name of the driver that should be deleted.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
The caller must have the SeLoadDriverPrivilege .
The DeletePrinterDriver function does not delete the associated files, it merely removes the driver name from the list returned by the EnumPrinterDrivers function.
Before calling DeletePrinterDriver, you must delete all printer objects that use the printer driver.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesDeletePrinterDriverW (Unicode) and DeletePrinterDriverA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
DeletePrinterDriverEx
EnumPrinterDrivers
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183545(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:16:33