术语 | getform |
释义 | GetForm 语法: BOOL GetForm( __in HANDLE hPrinter, __in LPTSTR pFormName, __in DWORD Level, __out LPBYTE pForm, __in DWORD cbBuf, __out LPDWORD pcbNeeded ); GetForm功能 该GetForm函数检索一个指定的表格信息。 参数 hPrinter [in] 句柄到打印机。使用OpenPrinter或添加打印机函数检索打印机处理。 pFormName [in] 一个指向 null 结尾的字符串指针,指定窗体的名称。为了摆脱由打印机支持的窗体的名称,调用EnumForms功能。 Level [in] 结构的版本的pForm点。此值必须是1或2。 pForm [out] 一个字节数组初始化FORM_INFO_1接收或FORM_INFO_2结构的指针。 cbBuf [in] 大小,以字节为单位,在pForm数组。 pcbNeeded [out] 一个值,指定复制的字节数,如果函数调用成功或所需的字节数指针,如果cbBuf太小。 返回值 如果函数成功,返回值是一个非零值。 如果函数失败,返回值是零。 备注 如果调用是远程,层次为2,返回的FORM_INFO_2 StringType值总是STRING_LANGPAIR。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib DLLSpoolss.dll Unicode和ANSI namesGetFormW(Unicode)和GetFormA(ANSI)的 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 AddForm DeleteForm OpenPrinter SetForm 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==GetForm Function The GetForm function retrieves information about a specified form. Syntax BOOL GetForm( __in HANDLE hPrinter, __in LPTSTR pFormName, __in DWORD Level, __out LPBYTE pForm, __in DWORD cbBuf, __out LPDWORD pcbNeeded ); Parameters hPrinter [in] A handle to the printer. Use the OpenPrinter or AddPrinter function to retrieve a printer handle. pFormName [in] A pointer to a null-terminated string that specifies the name of the form. To get the names of the forms supported by the printer, call the EnumForms function. Level [in] The version of the structure to which pForm points. This value must be 1 or 2. pForm [out] A pointer to an array of bytes that receives the initialized FORM_INFO_1 or FORM_INFO_2 structure. cbBuf [in] The size, in bytes, of the pForm array. pcbNeeded [out] A pointer to a value that specifies the number of bytes copied if the function succeeds or the number of bytes required if cbBuf is too small. 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 will always be STRING_LANGPAIR. Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinspool.h (include Windows.h) LibraryWinspool.lib DLLSpoolss.dll Unicode and ANSI namesGetFormW (Unicode) and GetFormA (ANSI) See Also Printing and Print Spooler Overview Printing and Print Spooler Functions AddForm DeleteForm OpenPrinter SetForm Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd144889(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。