Results 1 to 5 of 5

Thread: View **all** apps running

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    106

    View **all** apps running

    Hey everyone!

    Just curious... Is there a way to find out every single program running? Even those being hid from CTRL-ALT-DLT??? I need to close a program that I know is running, but I can't seem to stop from running (have tried every known method of deleting references to file...)

    If there is no code, does anybody know of a tool that can do this for me?

    Thanks, and I really need this because I think somebody is recording my passwordes and stuff that I type in!

    Sean Cassell

  2. #2
    Frenzied Member numtel's Avatar
    Join Date
    Apr 2000
    Location
    CA
    Posts
    1,163
    take a look at this program i made.
    Attached Files Attached Files

  3. #3
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    take a look at this program i made.
    (as Numtel smiles evily...)

  4. #4
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849
    One API Call
    VB Code:
    1. Const TH32CS_SNAPHEAPLIST = &H1
    2. Const TH32CS_SNAPPROCESS = &H2
    3. Const TH32CS_SNAPTHREAD = &H4
    4. Const TH32CS_SNAPMODULE = &H8
    5. Const TH32CS_SNAPALL = (TH32CS_SNAPHEAPLIST Or TH32CS_SNAPPROCESS Or TH32CS_SNAPTHREAD Or TH32CS_SNAPMODULE)
    6. Const TH32CS_INHERIT = &H80000000
    7. Const MAX_PATH As Integer = 260
    8. Private Type PROCESSENTRY32
    9.     dwSize As Long
    10.     cntUsage As Long
    11.     th32ProcessID As Long
    12.     th32DefaultHeapID As Long
    13.     th32ModuleID As Long
    14.     cntThreads As Long
    15.     th32ParentProcessID As Long
    16.     pcPriClassBase As Long
    17.     dwFlags As Long
    18.     szExeFile As String * MAX_PATH
    19. End Type
    20. Private Declare Function CreateToolhelp32Snapshot Lib "Kernel32" (ByVal lFlags As Long, ByVal lProcessID As Long) As Long
    21. Private Declare Function Process32First Lib "Kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
    22. Private Declare Function Process32Next Lib "Kernel32" (ByVal hSnapShot As Long, uProcess As PROCESSENTRY32) As Long
    23. Private Declare Sub CloseHandle Lib "Kernel32" (ByVal hPass As Long)
    24. Private Sub Form_Load()
    25.     Dim hSnapShot As Long, uProcess As PROCESSENTRY32
    26.     'Takes a snapshot of the processes and the heaps, modules, and threads used by the processes
    27.     hSnapShot = CreateToolhelp32Snapshot(TH32CS_SNAPALL, 0&)
    28.     'set the length of our ProcessEntry-type
    29.     uProcess.dwSize = Len(uProcess)
    30.     'Retrieve information about the first process encountered in our system snapshot
    31.     r = Process32First(hSnapShot, uProcess)
    32.     'set graphics mode to persistent
    33.     Me.AutoRedraw = True
    34.     Do While r
    35.         Me.Print Left$(uProcess.szExeFile, IIf(InStr(1, uProcess.szExeFile, Chr$(0)) > 0, InStr(1, uProcess.szExeFile, Chr$(0)) - 1, 0))
    36.         'Retrieve information about the next process recorded in our system snapshot
    37.         r = Process32Next(hSnapShot, uProcess)
    38.     Loop
    39.     'close our snapshot handle
    40.     CloseHandle hSnapShot
    41. End Sub

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

  5. #5
    Frenzied Member KayJay's Avatar
    Join Date
    Jul 2001
    Location
    Chennai
    Posts
    1,849


    well, ok, four API calls. you should get the point though

    "Brothers, you asked for it."
    ...Francisco Domingo Carlos Andres Sebastian D'Anconia

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width