|
![]() | 作者: ljfgl [ljfgl]
![]() |
登录 |
本网吧用万象,有几个无奈可以通过CTRL+ALT+DELETE结束client.exe进程上机,因此做了这个监控器,作用是当结束了client.exe进程后自动又把它运行。这个监控器在2000上有用,在98上运行会死机,请大家帮帮我,以下是代码 Dim MaxNumberOfProcesses As Integer Private Sub Form_Load() ListKillProcess1.List_Processes = True Text1.Text = "" Text2.Text = "0" For i = 1 To ListKillProcess1.Number_Of_Processes ListKillProcess1.Get_Process_Info = i Text1.Text = ListKillProcess1.Process_Name If Text1.Text = "client.exe" Then Exit Sub Next i Shell "c:\client.exe", vbNormalFocus End Sub Private Sub Timer1_Timer() DoEvents ListKillProcess1.List_Processes = True If ListKillProcess1.Number_Of_Processes > MaxNumberOfProcesses Then ListKillProcess1.Get_Process_Info = MaxNumberOfProcesses + 1 ListKillProcess1.ID_To_Kill = ListKillProcess1.Process_ID ListKillProcess1.Kill_Process = True End If Text1.Text = "" For i = 1 To ListKillProcess1.Number_Of_Processes ListKillProcess1.Get_Process_Info = i Text1.Text = ListKillProcess1.Process_Name If Text1.Text = "client.exe" Then Exit Sub Next i On Error GoTo tt Shell "c:\client.exe", vbNormalFocus Text2.Text = Text2.Text + 1 Exit Sub tt: MsgBox Error End Sub |
地主 发表时间: 04-08-17 16:53 |
![]() | 回复: mars_bys [mars_bys] ![]() |
登录 |
我只知道这个是VB编的。不知道原因。帮你顶一下,等候高手吧。。 |
B1层 发表时间: 04-08-17 17:52 |
![]() | 回复: lxlmf [boadi] ![]() |
登录 |
应该是98里没有client.exe进程吧 |
B2层 发表时间: 04-08-18 16:33 |
![]() | 回复: ljfgl [ljfgl] ![]() |
登录 |
不是这个原因,也许是我懒的缘故,没有把client.exe的完整路径告诉大家(其实是我忘记目录名怎么拼写了),给大家造成不便.还是期望哪位朋友帮帮我,非常急! |
B3层 发表时间: 04-08-18 21:18 |
![]() | 回复: jhkdiy [jhkdiy] ![]() |
登录 |
核心的枚举进程的代码没有贴出来。看不出。 |
B4层 发表时间: 04-08-19 20:17 |
|
20CN网络安全小组版权所有
Copyright © 2000-2010 20CN Security Group. All Rights Reserved.
论坛程序编写:NetDemon
粤ICP备05087286号