术语 | addport |
释义 | AddPort 语法: BOOL AddPort( __in LPTSTR pName, __in HWND hWnd, __in LPTSTR pMonitorName ); AddPort功能 该AddPort函数将端口的名称所支持的端口的列表。该AddPort功能是出口的端口监视器。 参数 pName [in] 一个0结尾的字符串指针,指定到该端口是连接的服务器的名称。如果该参数为NULL,则端口是本地的。 hWnd [in] 句柄到AddPort对话框的父窗口。 pMonitorName [in] 一个0结尾的字符串指针,指定与端口有关的监视器。 返回值 如果函数成功,返回值是一个非零值。 如果函数失败,返回值是零。 备注 该AddPort功能的网络浏览,查找现有的端口,并显示为用户对话框。该AddPort职能应验证端口名称由用户输入调用EnumPorts,以确保没有重复的名称存在。 该AddPort函数的调用者必须具有SERVER_ACCESS_ADMINISTER进入到该端口是连接的服务器。 要添加,而不显示一个对话框一个端口,调用XcvData函数代替AddPort。欲了解更多有关XcvData信息,请参阅Microsoft Windows驱动程序开发工具包(DDK)。 要求: 最低支持:client-Windows 2000专业版 最低支持server-Windows 2000服务器 HeaderWinspool.h(头文件:winuser.h) LibraryWinspool.lib Unicode和ANSI namesAddPortW(Unicode)和AddPortA(ANSI)的 参见 Printing and Print Spooler Overview Printing and Print Spooler 函数 DeletePort EnumPorts SetPort 如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com) 生成日期:2009年7月11日 ==英文原文==AddPort Function The AddPort function adds the name of a port to the list of supported ports. The AddPort function is exported by the port monitor. Syntax BOOL AddPort( __in LPTSTR pName, __in HWND hWnd, __in LPTSTR pMonitorName ); Parameters pName [in] A pointer to a zero-terminated string that specifies the name of the server to which the port is connected. If this parameter is NULL, the port is local. hWnd [in] A handle to the parent window of the AddPort dialog box. pMonitorName [in] A pointer to a zero-terminated string that specifies the monitor associated with the port. Return Value If the function succeeds, the return value is a nonzero value. If the function fails, the return value is zero. Remarks The AddPort function browses the network to find existing ports, and displays a dialog box for the user. The AddPort function should validate the port name entered by the user by calling EnumPorts to ensure that no duplicate names exist. The caller of the AddPort function must have SERVER_ACCESS_ADMINISTER access to the server to which the port is connected. To add a port without displaying a dialog box, call the XcvData function instead of AddPort. For more information about XcvData, see the Microsoft Windows Driver Development Kit (DDK). Requirements Minimum supported clientWindows 2000 Professional Minimum supported serverWindows 2000 Server HeaderWinspool.h (include Windows.h) LibraryWinspool.lib Unicode and ANSI namesAddPortW (Unicode) and AddPortA (ANSI) See Also Printing and Print Spooler Overview Printing and Print Spooler Functions DeletePort EnumPorts SetPort Send comments about this topic to Microsoft Build date: 7/11/2009 ==原始网址==http://msdn.microsoft.com/en-us/library/dd183342(VS.85).aspx\n |
随便看 |
|
windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。