网站首页  词典首页

请输入您要查询的函数:

 

术语 enumforms
释义 EnumForms
语法:
BOOL EnumForms(
__in HANDLE hPrinter,
__in DWORD Level,
__out LPBYTE pForm,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
EnumForms功能
枚举函数的EnumForms由指定的打印机支持的形式。
参数
hPrinter [in]
句柄的该表格可枚举打印机。使用OpenPrinter或添加打印机函数检索打印机处理。
Level [in]
指定的结构版本的pForm点。此值必须是1或2。
pForm [out]
指针到一个或多个FORM_INFO_1结构或一个或多个FORM_INFO_2结构。所有的结构将具有相同的Level。
cbBuf [in]
指定的大小,以字节为缓冲区的pForm点。
pcbNeeded [out]
指针变量,它接收复制到数组的字节数,其中pForm点(如果操作成功)或所需要的字节数(如果失败,因为cbBuf太小)。
pcReturned [out]
指针变量,它接收到数组的结构复制到其中一些pForm点。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
如果调用是远程,层次为2,返回的FORM_INFO_2结构StringType值总是STRING_LANGPAIR。
在Windows Vista中,形式EnumForms返回的数据是来自本地缓存时hPrinter指的是远程打印服务器或打印机,打印服务器托管,至少有一个打开的连接上的一个远程打印服务器上的打印机。在所有其他配置,查询表单数据从远程打印服务器。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesEnumFormsW(Unicode)和EnumFormsA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
添加打印机
FORM_INFO_1
OpenPrinter
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==EnumForms Function
The EnumForms function enumerates the forms supported by the specified printer.
Syntax
BOOL EnumForms(
__in HANDLE hPrinter,
__in DWORD Level,
__out LPBYTE pForm,
__in DWORD cbBuf,
__out LPDWORD pcbNeeded,
__out LPDWORD pcReturned
);
Parameters
hPrinter [in]
Handle to the printer for which the forms should be enumerated. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
Level [in]
Specifies the version of the structure to which pForm points. This value must be 1 or 2.
pForm [out]
Pointer to one or more FORM_INFO_1 structures or to one or more FORM_INFO_2 structures. All the structures will have the same level.
cbBuf [in]
Specifies the size, in bytes, of the buffer to which pForm points.
pcbNeeded [out]
Pointer to a variable that receives the number of bytes copied to the array to which pForm points (if the operation succeeds) or the number of bytes required (if it fails because cbBuf is too small).
pcReturned [out]
Pointer to a variable that receives the number of structures copied into the array to which pForm points.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
If the caller is remote, and the Level is 2, the StringType value of the returned FORM_INFO_2 structures will always be STRING_LANGPAIR.
In Windows Vista, the form data returned by EnumForms is retrieved from a local cache when hPrinter refers to a remote print server or a printer hosted by a print server and there is at least one open connection to a printer on the remote print server. In all other configurations, the form data is queried from the remote print server.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesEnumFormsW (Unicode) and EnumFormsA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AddPrinter
FORM_INFO_1
OpenPrinter
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162624(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:19:06