网站首页  词典首页

请输入您要查询的函数:

 

术语 deleteport
释义 DeletePort
语法:
BOOL DeletePort(
__in LPTSTR pName,
__in HWND hWnd,
__in LPTSTR pPortName
);
DeletePort功能
该DeletePort函数显示一个对话框,允许用户删除一个端口的名称。
参数
pName [in]
一个0结尾的字符串指针,指定了该端口应删除服务器的名称。如果该参数是NULL,本地端口被删除。
hWnd [in]
一个句柄,端口的父窗口,删除对话框。
pPortName [in]
一个0结尾的字符串指针,指定应删除端口的名称。
返回值
如果函数成功,返回值是一个非零值。
如果函数失败,返回值是零。
备注
应用程序可以通过调用函数的EnumPorts有效端口的名称。
该函数返回一个DeletePort如果打印机是目前连接到指定的端口错误。
该DeletePort函数的调用者必须具有SERVER_ACCESS_ADMINISTER进入到该端口是连接的服务器。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinspool.h(头文件:winuser.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode和ANSI namesDeletePortW(Unicode)和DeletePortA(ANSI)的
参见
Printing and Print Spooler Overview
Printing and Print Spooler 函数
AddPort
EnumPorts
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==DeletePort Function
The DeletePort function displays a dialog box that allows the user to delete a port name.
Syntax
BOOL DeletePort(
__in LPTSTR pName,
__in HWND hWnd,
__in LPTSTR pPortName
);
Parameters
pName [in]
A pointer to a zero-terminated string that specifies the name of the server for which the port should be deleted. If this parameter is NULL, a local port is deleted.
hWnd [in]
A handle to the parent window of the port-deletion dialog box.
pPortName [in]
A pointer to a zero-terminated string that specifies the name of the port that should be deleted.
Return Value
If the function succeeds, the return value is a nonzero value.
If the function fails, the return value is zero.
Remarks
An application can retrieve the names of valid ports by calling the EnumPorts function.
The DeletePort function returns an error if a printer is currently connected to the specified port.
The caller of the DeletePort function must have SERVER_ACCESS_ADMINISTER access to the server to which the port is connected.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinspool.h (include Windows.h)
LibraryWinspool.lib
DLLSpoolss.dll
Unicode and ANSI namesDeletePortW (Unicode) and DeletePortA (ANSI)
See Also
Printing and Print Spooler Overview
Printing and Print Spooler Functions
AddPort
EnumPorts
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183540(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:28:58