术语 | addform |
释义 | AddForm 语法: BOOL AddForm( __in HANDLE hPrinter, __in DWORD Level, __in LPBYTE pForm ); AddForm函数 该AddForm函数添加的形式进行,可用于指定的打印机列表中选定的现有形式。 参数 hPrinter [in] 一个句柄,打印机支持与指定表格打印。使用OpenPrinter或添加打印机函数检索打印机处理。 Level [in] 在结构Level的pForm点。此值必须是1或2。 pForm [in] 一个 FORM_INFO_1或FORM_INFO_2结构的指针。 返回值 如果函数成功,返回值是一个非零值。 如果函数失败,返回值是零。 备注 应用程序可以决定哪些形式的打印机可调用EnumForms功能。 如果与FORM_INFO_2 pForm点,然后AddForm将失败,指定的名称已经存在或结构的pKeyword值如果任一形式已经存在。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 EnumForms FORM_INFO_1 FORM_INFO_2 OpenPrinter 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==AddForm Function The AddForm function adds a form to the list of available forms that can be selected for the specified printer. Syntax BOOL AddForm( __in HANDLE hPrinter, __in DWORD Level, __in LPBYTE pForm ); Parameters hPrinter [in] A handle to the printer that supports printing with the specified form. Use the OpenPrinter or AddPrinter function to retrieve a printer handle. Level [in] The level of the structure to which pForm points. This value must be 1 or 2. pForm [in] A pointer to a FORM_INFO_1 or FORM_INFO_2 structure. Return Value If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. Remarks An application can determine which forms are available for a printer by calling the EnumForms function. If pForm points to a FORM_INFO_2, then AddForm will fail if either a form with the specified name already exists or the structure's pKeyword value already exists. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinspool.h (include Windows.h) LibraryWinspool.lib See Also Printing and Print Spooler Overview Printing and Print Spooler Functions EnumForms FORM_INFO_1 FORM_INFO_2 OpenPrinter Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183328(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。