网站首页  词典首页

请输入您要查询的函数:

 

术语 setform
释义 SetForm
语法:
BOOL SetForm(
__in HANDLE hPrinter,
__in LPTSTR pFormName,
__in DWORD Level,
__in LPTSTR pForm
);
SetForm函数
该SetForm函数设置指定打印机的形式出现的信息。
参数
hPrinter [in]
句柄,供该表单中的信息设置打印机。使用OpenPrinter或添加打印机函数检索打印机处理。
pFormName [in]
一个指向 null 结尾的字符串指针,指定名称的形式而形式的信息设置。
Level [in]
结构的版本的pForm点。此值必须是1或2。
pForm [in]
一个 FORM_INFO_1或FORM_INFO_2结构的指针。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
SetForm可以要求对现有FORM_INFO_2多次,每次调用增加额外的对pDisplayName和wLangId价值。形式的所有语言版本将得到大小及在最近呼吁SetForm FORM_INFO_2 ImageableArea值。
如果调用是远程的级别为2,该FORM_INFO_2 StringType值不能STRING_MUIDLL。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesSetFormW(Unicode)和SetFormA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
GetForm
OpenPrinter
FORM_INFO_1
FORM_INFO_2
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetForm Function
The SetForm function sets the form information for the specified printer.
Syntax
BOOL SetForm(
__in HANDLE hPrinter,
__in LPTSTR pFormName,
__in DWORD Level,
__in LPTSTR pForm
);
Parameters
hPrinter [in]
A handle to the printer for which the form information is set. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
pFormName [in]
A pointer to a null-terminated string that specifies the form name for which the form information is set.
Level [in]
The version 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
SetForm can be called multiple times for an existing FORM_INFO_2, each call adding additional pairs of pDisplayName and wLangId values. All languages versions of the form will get the Size and ImageableArea values of the FORM_INFO_2 in the most recent call to SetForm.
If the caller is remote and the Level is 2, the StringType value of the FORM_INFO_2 cannot be STRING_MUIDLL.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesSetFormW (Unicode) and SetFormA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
GetForm
OpenPrinter
FORM_INFO_1
FORM_INFO_2
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162976(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:15:50