网站首页  词典首页

请输入您要查询的函数:

 

术语 addprintprovidor
释义 AddPrintProvidor
语法:
BOOL AddPrintProvidor(
__in LPTSTR pName,
__in DWORD Level,
__in LPBYTE pProviderInfo
);
AddPrintProvidor功能
该AddPrintProvidor函数安装一个本地打印提供程序和链接配置,数据和供应商档案。
参数
pName [in]
一个指向 null 结尾的字符串指针,指定使用该供应商应安装服务器的名称。对于系统只支持本地安装的提供者,此参数应为NULL。
Level [in]
在结构Level的pProviderInfo点。它可以是下列之一。
ValueMeaning
1Function使用PROVIDOR_INFO_1结构。
2Function使用PROVIDOR_INFO_2结构。
pProviderInfo [in]
一个print provider 结构的指针,如所列数额。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
前一个应用程序调用AddPrintProvidor功能,所有文件的供应商要求必须被复制到SYSTEM32目录。
一个由AddPrintProvidor添加的提供者,可调用DeletePrintProvidor删除。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesAddPrintProvidorW(Unicode)和AddPrintProvidorA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
DeletePrintProvidor
PROVIDOR_INFO_1
PROVIDOR_INFO_2
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==AddPrintProvidor Function
The AddPrintProvidor function installs a local print provider and links the configuration, data, and provider files.
Syntax
BOOL AddPrintProvidor(
__in LPTSTR pName,
__in DWORD Level,
__in LPBYTE pProviderInfo
);
Parameters
pName [in]
A pointer to a null-terminated string that specifies the name of the server on which the provider should be installed. For systems that only support local installation of providers, this parameter should be NULL.
Level [in]
The level of the structure to which pProviderInfo points. It can be one of the following.
ValueMeaning
1Function uses a PROVIDOR_INFO_1 structure.
2Function uses a PROVIDOR_INFO_2 structure.

pProviderInfo [in]
A pointer to a print provider structure, as indicated by Level.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
Before an application calls the AddPrintProvidor function, all files required by the provider must be copied to the SYSTEM32 directory.
A provider added by AddPrintProvidor may be removed by calling DeletePrintProvidor .
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesAddPrintProvidorW (Unicode) and AddPrintProvidorA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
DeletePrintProvidor
PROVIDOR_INFO_1
PROVIDOR_INFO_2
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183349(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:26:47