VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Lists all processes and info about them.

VB Code Central  (1 Submission)   Windows System Services   VB 6.0   Unknown Difficulty   Thu 18th March 2004   Mon 8th February 2021

Lists all processes and info about them.

API Declarations


Private Const MAX_PATH As Integer = 260

Private Type PROCESSENTRY32
dwSize As Long
cntUsage As Long
th32ProcessID As Long
th32DefaultHeapID As Long
th32ModuleID As Long
cntThreads As Long
th32ParentProcessID As Long
pcPriClassBase As Long
dwFlags As Long
szExeFile As String * MAX_PATH
End Type

Private Declare Function CreateToolhelpSnapshot Lib "kernel32" Alias "CreateToolhelp32Snapshot" (ByVal lFlags As Long, ByVal lProcessID As Long) As Long
Private Declare Function ProcessFirst Lib "kernel32" Alias "Process32First" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Function ProcessNext Lib "kernel32" Alias "Process32Next" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
Private Declare Sub CloseHandle Lib "kernel32" (ByVal hPass As Long)

Dim ListOfActiveProcess() As PROCESSENTRY32


Rate Lists all processes and info about them. (1(1 Vote))
Lists all processes and info about them..bas

Lists all processes and info about them. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters