module1.bas

来自「一个比较简单美观的魔域登陆器源码」· BAS 代码 · 共 28 行

BAS
28 行
字号
Attribute VB_Name = "Module1"
Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long

Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long

Public Function stillrun(ByVal ProgramID) As Boolean

     Dim lHprogram As Long

     Dim lReturn As Long

     lHprogram = OpenProcess(0, False, ProgramID)

     If Not lHprogram = 0 Then

        stillrun = True

     Else

        stillrun = False

     End If

     CloseHandle lHprogram

End Function

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?