网站首页  词典首页

请输入您要查询的函数:

 

术语 configureport
释义 ConfigurePort
语法:
BOOL ConfigurePort(
__in LPTSTR pName,
__in HWND hWnd,
__in LPTSTR pPortName
);
ConfigurePort功能
该ConfigurePort函数显示一个指定的服务器上的端口的端口配置对话框。
参数
pName [in]
指向一个以NULL结尾的字符串,指定的服务器的指定端口存在的名称。如果该参数为NULL,则端口是本地的。
hWnd [in]
句柄端口的父窗口,配置对话框。
pPortName [in]
指向一个以NULL结尾的字符串,指定端口的名称进行配置。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
在调用ConfigurePort功能,应用程序应该调用EnumPorts函数来确定有效的端口名称。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesConfigurePortW(Unicode)和ConfigurePortA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
EnumPorts
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==ConfigurePort Function
The ConfigurePort function displays the port-configuration dialog box for a port on the specified server.
Syntax
BOOL ConfigurePort(
__in LPTSTR pName,
__in HWND hWnd,
__in LPTSTR pPortName
);
Parameters
pName [in]
Pointer to a null-terminated string that specifies the name of the server on which the specified port exists. If this parameter is NULL, the port is local.
hWnd [in]
Handle to the parent window of the port-configuration dialog box.
pPortName [in]
Pointer to a null-terminated string that specifies the name of the port to be configured.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
Before calling the ConfigurePort function, an application should call the EnumPorts function to determine valid port names.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesConfigurePortW (Unicode) and ConfigurePortA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
EnumPorts
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183472(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:24:02