网站首页  词典首页

请输入您要查询的函数:

 

术语 advanceddocumentproperties
释义 AdvancedDocumentProperties
语法:
LONG AdvancedDocumentProperties(
__in HWND hWnd,
__in HANDLE hPrinter,
__in LPTSTR pDeviceName,
__out PDEVMODE pDevModeOutput,
__in PDEVMODE pDevModeInput
);
AdvancedDocumentProperties功能
该AdvancedDocumentProperties函数显示一个打印机配置为指定的打印机对话框,允许用户配置的打印机。
此函数是一个DocumentProperties函数的特殊情况。有关详细信息,请参见备注部分。
参数
hWnd [in]
一个句柄,打印机的父窗口,配置对话框。
hPrinter [in]
句柄到打印机对象。使用OpenPrinter或添加打印机函数检索打印机处理。
pDeviceName [in]
一个指向 null 结尾的字符串指针指定的,有关的打印机配置对话框应显示设备名称。
pDevModeOutput [out]
一个DEVMODE结构的指针,其中包含了配置由用户指定的数据。
pDevModeInput [in]
一个DEVMODE结构,它包含的配置用来初始化打印机的控制,配置对话框数据的指针。
返回值
如果这些参数DocumentProperties函数是成功的,AdvancedDocumentProperties返回值为1。否则,返回值是零。
备注
此功能只能显示打印机配置对话框,以便用户可以进行配置。欲了解更多的控制,使用DocumentProperties。此函数的输入参数直接传递给DocumentProperties和fMode值设置为DM_IN_BUFFER | DM_IN_PROMPT | DM_OUT_BUFFER。与DocumentProperties,这个函数只返回1或0。因此,您无法确定设置pDevMode为零的DEVMODE的所需大小。
应用程序可以获取名称指向的pDeviceName参数通过调用GetPrinter函数,然后进行研究,考虑PRINTER_INFO_2结构pPrinterName成员。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
Unicode和ANSI namesAdvancedDocumentPropertiesW(Unicode)和AdvancedDocumentPropertiesA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
添加打印机
的DEVMODE
DocumentProperties
GetPrinter
OpenPrinter
PRINTER_INFO_2
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==AdvancedDocumentProperties Function
The AdvancedDocumentProperties function displays a printer-configuration dialog box for the specified printer, allowing the user to configure that printer.
This function is a special case of the DocumentProperties function. For more details, see the Remarks section.
Syntax
LONG AdvancedDocumentProperties(
__in HWND hWnd,
__in HANDLE hPrinter,
__in LPTSTR pDeviceName,
__out PDEVMODE pDevModeOutput,
__in PDEVMODE pDevModeInput
);
Parameters
hWnd [in]
A handle to the parent window of the printer-configuration dialog box.
hPrinter [in]
A handle to a printer object. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
pDeviceName [in]
A pointer to a null-terminated string specifying the name of the device for which a printer-configuration dialog box should be displayed.
pDevModeOutput [out]
A pointer to a DEVMODE structure that will contain the configuration data specified by the user.
pDevModeInput [in]
A pointer to a DEVMODE structure that contains the configuration data used to initialize the controls of the printer-configuration dialog box.
Return Value
If the DocumentProperties function with these parameters is successful, the return value of AdvancedDocumentProperties is 1. Otherwise, the return value is zero.
Remarks
This function can only display the printer-configuration dialog box so a user can configure it. For more control, use DocumentProperties. The input parameters for this function are passed directly to DocumentProperties and the fMode value is set to DM_IN_BUFFER | DM_IN_PROMPT | DM_OUT_BUFFER. Unlike DocumentProperties, this function only returns 1 or 0. Thus, you cannot determine the required size of DEVMODE by setting pDevMode to zero.
An application can obtain the name pointed to by the pDeviceName parameter by calling the GetPrinter function and then examining the pPrinterName member of the PRINTER_INFO_2 structure.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
Unicode and ANSI namesAdvancedDocumentPropertiesW (Unicode) and AdvancedDocumentPropertiesA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AddPrinter
DEVMODE
DocumentProperties
GetPrinter
OpenPrinter
PRINTER_INFO_2
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183350(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 11:26:05