网站首页  词典首页

请输入您要查询的函数:

 

术语 enumprintprocessors
释义 EnumPrintProcessors
语法:
BOOL EnumPrintProcessors(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in DWORD Level,
__out LPBYTE pPrintProcessorInfo,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
EnumPrintProcessors功能
该EnumPrintProcessors函数枚举在指定的打印服务器上安装的处理器。
参数
pName [in]
一个指向 null 结尾的字符串指针,指定的服务器的打印处理器居住的名称。 If this parameter is NULL, the local print processors are enumerated.
pEnvironment [in]
一个指向 null 结尾的字符串指针,指定环境(例如,Windows x86的时,Windows IA64的,或Windows x64)的。如果该参数为NULL,则调用应用程序和客户机(不是目标应用程序和打印服务器)是目前使用的环境。
Level [in]
在缓冲区的pPrintProcessorInfo返回的信息类型。此参数必须为1。
pPrintProcessorInfo [out]
A到接收缓冲区的PRINTPROCESSOR_INFO_1结构的数组指针。每个结构描述了一个可用的打印处理器。该缓冲区必须足够大,得到结构的数组和字符串的任何结构委员指出。
要确定所需的缓冲区大小,设置为0 cbBuf呼吁EnumPrintProcessors。 EnumPrintProcessors失败,GetLastError返回ERROR_INSUFFICIENT_BUFFER和pcbNeeded参数返回的大小,以字节为单位须持有的结构及其数据数组中的缓冲区。
cbBuf [in]
大小,指出以字节为缓冲区的pPrintProcessorInfo。
pcbNeeded [out]
一个变量,它接收的pPrintProcessorInfo复制到缓冲区的字节数,如果函数成功指针。如果缓冲区太小,功能失败和变量接收到所需的字节数。
pcReturned [out]
一个变量,它接收在pPrintProcessorInfo缓冲区的指针返回结构的数目。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesEnumPrintProcessorsW(Unicode)和EnumPrintProcessorsA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
AddPrintProcessor
EnumPrintProcessorDatatypes
PRINTPROCESSOR_INFO_1
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumPrintProcessors Function
The EnumPrintProcessors function enumerates the print processors installed on the specified server.
Syntax
BOOL EnumPrintProcessors(
__in LPTSTR pName,
__in LPTSTR pEnvironment,
__in DWORD Level,
__out LPBYTE pPrintProcessorInfo,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
Parameters
pName [in]
A pointer to a null-terminated string that specifies the name of the server on which the print processors reside. If this parameter is NULL, the local print processors are enumerated.
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 calling application and client machine (not of the destination application and print server) is used.
Level [in]
The type of information returned in the pPrintProcessorInfo buffer. This parameter must be 1.
pPrintProcessorInfo [out]
A pointer to a buffer that receives an array of PRINTPROCESSOR_INFO_1 structures. Each structure describes an available print processor. The buffer must be large enough to receive the array of structures and any strings to which the structure members point.
To determine the required buffer size, call EnumPrintProcessors with cbBuf set to zero. EnumPrintProcessors fails, GetLastError returns ERROR_INSUFFICIENT_BUFFER, and the pcbNeeded parameter returns the size, in bytes, of the buffer required to hold the array of structures and their data.
cbBuf [in]
The size, in bytes, of the buffer pointed to by pPrintProcessorInfo.
pcbNeeded [out]
A pointer to a variable that receives the number of bytes copied to the pPrintProcessorInfo buffer if the function succeeds. If the buffer is too small, the function fails and the variable receives the number of bytes required.
pcReturned [out]
A pointer to a variable that receives the number of structures returned in the pPrintProcessorInfo buffer.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesEnumPrintProcessorsW (Unicode) and EnumPrintProcessorsA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AddPrintProcessor
EnumPrintProcessorDatatypes
PRINTPROCESSOR_INFO_1
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162694(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:24:31