网站首页  词典首页

请输入您要查询的函数:

 

术语 addprintprocessor
释义 AddPrintProcessor
语法:
BOOL AddPrintProcessor(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in LPTSTR pPathName,
__in LPTSTR pPrintProcessorName
);
AddPrintProcessor功能
该AddPrintProcessor函数安装一个指定的服务器上的打印处理器,并增加了打印处理器的名称是支持的打印处理器的内部列表。
参数
pName [in]
一个指向 null 结尾的字符串指针,指定在其上打印处理器应安装服务器的名称。如果该参数为NULL,则打印处理器安装在本地。
pEnvironment [in]
一个指向 null 结尾的字符串指针,指定环境(例如,Windows x86的时,Windows IA64的,或Windows x64)的。如果该参数为NULL,则调用方目前的环境/客户端(不是目的地/服务器)的使用。
pPathName [in]
一个指向 null 结尾的字符串指针,指定文件包含打印处理器的名称。该文件必须在系统打印处理器目录。
pPrintProcessorName [in]
一个指向 null 结尾的字符串指针,指定的打印处理器的名称。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
调用者必须有相关权限。
在调用AddPrintProcessor功能,应用程序应核实该文件包含打印处理器在系统打印处理器的目录中。应用程序可以通过调用函数的GetPrintProcessorDirectory系统打印的名字处理器目录。
应用程序可以通过调用确定EnumPrintProcessors功能的现有的打印处理器的名称。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesAddPrintProcessorW(Unicode)和AddPrintProcessorA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
EnumPrintProcessors
GetPrintProcessorDirectory
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==AddPrintProcessor Function
The AddPrintProcessor function installs a print processor on the specified server and adds the print-processor name to an internal list of supported print processors.
Syntax
BOOL AddPrintProcessor(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in LPTSTR pPathName,
__in LPTSTR pPrintProcessorName
);
Parameters
pName [in]
A pointer to a null-terminated string that specifies the name of the server on which the print processor should be installed. If this parameter is NULL, the print processor is installed locally.
pEnvironment [in]
A pointer to a null-terminated string that specifies the environment (for example, Windows x86, Windows IA64, or Windows x64). If this parameter is NULL, the current environment of the caller/client (not of the destination/server) is used.
pPathName [in]
A pointer to a null-terminated string that specifies the name of the file that contains the print processor. This file must be in the system print-processor directory.
pPrintProcessorName [in]
A pointer to a null-terminated string that specifies the name of the print processor.
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 .
Before calling the AddPrintProcessor function, an application should verify that the file containing the print processor is stored in the system print-processor directory. An application can retrieve the name of the system print-processor directory by calling the GetPrintProcessorDirectory function.
An application can determine the name of existing print processors by calling the EnumPrintProcessors function.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesAddPrintProcessorW (Unicode) and AddPrintProcessorA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
EnumPrintProcessors
GetPrintProcessorDirectory
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183348(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 11:22:36