如何使用VB.net 做出程式使程式隱藏不在工作管理
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim isNotRun As Boolean
Dim m As New System.Threading.Mutex(True, "Test", isNotRun)
If isNotRun Then
MessageBox.Show("程式第一次執行")
Else
MessageBox.Show("程式己經執行了.......")
End
End If
End Sub
--------------------------------------------------------------------------
避開重複執行, 讓AP不能雙開的方法很多
像是
System.Threading.Mutex
或
System.Diagnostics.Process.GetProcessesByName()
但是
如果你的AP要在工作管理員裡不顯示的話
大多涉及到必須Hack住相關的Win32API
因為這是屬於後門或病毒的領域
----------------------------------------------------------------- |