标题:VB
只看楼主
leziyi
Rank: 1
等 级:新手上路
帖 子:52
专家分:0
注 册:2016-10-30
结帖率:85.71%
 问题点数:0 回复次数:0 
VB
Private Sub 删除连接_Click()

Dim tcpt As MIB_TCPTABLE
Dim l As Long
Dim i As Long
Dim RemA As String, RemP As String, LocP As String

i = Right(FrmMain.ListView1.SelectedItem.Key, Len(FrmMain.ListView1.SelectedItem.Key) - 1) + 1            '错误:无效的调用过程或参数

RemA = FrmMain.ListView1.ListItems(i)
RemP = FrmMain.ListView1.ListItems(i).SubItems(1)
LocP = FrmMain.ListView1.ListItems(i).SubItems(2)

l = Len(MIB_TCPTABLE)
GetTcpTable tcpt, l, 0

tcpt.table(i - 1).dwState = 12
SetTcpEntry tcpt.table(i - 1)
DoEvents
WriteLog RemA, RemP, LocP, "拦截连接"

End Sub
搜索更多相关主题的帖子: VB Dim table String Key 
2018-12-16 13:01



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-492048-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.252668 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved