Results 1 to 6 of 6

Thread: Help!!!!

  1. #1

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Help!!!!

    Hi i was wondering if it is possible to shut a process down? if so could you please show me how? thanks for your time and hope you could help with my antivirus project for school:P
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  2. #2

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Re: Help!!!!

    I was also wondering if it is possible to search for a certain process to see if its in memory.
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  3. #3

  4. #4
    PowerPoster gavio's Avatar
    Join Date
    Feb 2006
    Location
    GMT+1
    Posts
    4,462

    Re: Help!!!!

    Here's a way:
    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4.     'terminates Notepad.exe
    5.     TerminateProcess ("Notepad.exe")
    6. End Sub
    7.  
    8. Private Sub TerminateProcess(app_exe As String)
    9.     Dim Process As Object
    10.         For Each Process In GetObject("winmgmts:").ExecQuery("Select Name from Win32_Process Where Name = '" & app_exe & "'")
    11.             Process.Terminate
    12.         Next
    13. End Sub

  5. #5

    Thread Starter
    Hyperactive Member g4hsean's Avatar
    Join Date
    May 2006
    Posts
    267

    Re: Help!!!!

    thanks it worked out good!
    Coding's a Breeze if you'r at ease! GOD THATS CORNY!!
    -

  6. #6

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