网站首页  词典首页

请输入您要查询的函数:

 

术语 enumprintprocessordatatypes
释义 EnumPrintProcessorDatatypes
语法:
BOOL EnumPrintProcessorDatatypes(
__in LPTSTR pName,
__in LPTSTR pPrintProcessorName,
__in DWORD Level,
__out LPBYTE pDatatypes,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
EnumPrintProcessorDatatypes功能
该EnumPrintProcessorDatatypes函数枚举的数据类型指定的打印处理器的支持。
参数
pName [in]
一个指向 null 结尾的字符串指针,指定服务器上的打印处理器所在的名字。如果该参数为NULL,本地打印处理器的数据类型枚举。
pPrintProcessorName [in]
一个指向 null 结尾的字符串指针,指定的打印处理器,其数据类型列举的名称。
Level [in]
在缓冲区的pDatatypes返回的信息类型。此参数必须为1。
pDatatypes [out]
A到接收缓冲区的DATATYPES_INFO_1结构的数组指针。每个结构描述了一个可用的数据类型。该缓冲区必须足够大,得到结构的数组和字符串或任何其他数据进行了结构成员点。
要确定所需的缓冲区大小,设置为0 cbBuf呼吁EnumPrintProcessorDatatypes。 EnumPrintProcessorDatatypes失败,GetLastError返回ERROR_INSUFFICIENT_BUFFER和pcbNeeded参数返回的大小,以字节为单位须持有的结构及其数据数组中的缓冲区。
cbBuf [in]
大小,指出以字节为缓冲区的pDatatypes。
pcbNeeded [out]
一个变量,它接收的pDatatypes复制到缓冲区的字节数,如果函数成功指针。如果缓冲区太小,功能失败和变量接收到所需的字节数。
pcReturned [out]
一个变量,它接收在pDatatypes缓冲区的指针返回结构的数目。这是支持的数据类型。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
与Windows Vista,从远程打印服务器上的数据类型的信息检索开始从本地缓存。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesEnumPrintProcessorDatatypesW(Unicode)和EnumPrintProcessorDatatypesA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
DATATYPES_INFO_1
EnumPrintProcessors
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumPrintProcessorDatatypes Function
The EnumPrintProcessorDatatypes function enumerates the data types that a specified print processor supports.
Syntax
BOOL EnumPrintProcessorDatatypes(
__in LPTSTR pName,
__in LPTSTR pPrintProcessorName,
__in DWORD Level,
__out LPBYTE pDatatypes,
__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 processor resides. If this parameter is NULL, the data types for the local print processor are enumerated.
pPrintProcessorName [in]
A pointer to a null-terminated string that specifies the name of the print processor whose data types are enumerated.
Level [in]
The type of information returned in the pDatatypes buffer. This parameter must be 1.
pDatatypes [out]
A pointer to a buffer that receives an array of DATATYPES_INFO_1 structures. Each structure describes an available data type. The buffer must be large enough to receive the array of structures and any strings or other data to which the structure members point.
To determine the required buffer size, call EnumPrintProcessorDatatypes with cbBuf set to zero. EnumPrintProcessorDatatypes 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 pDatatypes.
pcbNeeded [out]
A pointer to a variable that receives the number of bytes copied to the pDatatypes 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 pDatatypes buffer. This is the number of supported data types.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
Starting with Windows Vista, the data type information from remote print servers is retrieved from a local cache.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesEnumPrintProcessorDatatypesW (Unicode) and EnumPrintProcessorDatatypesA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
DATATYPES_INFO_1
EnumPrintProcessors
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162693(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:25:55