| VB声明 | |
| Declare Function ConfigurePort Lib "winspool.drv" Alias "ConfigurePortA" (ByVal pName As String, ByVal hwnd As Long, ByVal pPortName As String) As Long | |
| 说明 | |
| 针对指定的端口,启动一个端口配置对话框 | |
| 返回值 | |
| Long,非零表示成功,零表示失败。会设置GetLastError | |
| 参数表 | |
| 参数 | 类型及说明 |
| pName | String,欲对其端口进行配置的一台服务器的名字。对于本地系统,请设为vbNullString |
| hwnd | Long,对话框父窗口的句柄 |
| pPortName | String,端口名 |