CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2001
    Location
    Israel
    Posts
    94

    Find and Kill process

    how do I do it?

    FatMan


  2. #2
    Join Date
    Apr 2000
    Posts
    737

    Re: Find and Kill process

    there is a function call GetAllProcessID in vbSystem of the activeX DLL at http://vblib.virtualave.net, the function return every single process in the system, together with valuable info, like the executable file name, process ID, etc.

    you can then search tru the array to find the process that u want to kill. after getting process, just pass it the process ID to TerminateProcess API

    HTH



  3. #3
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Find and Kill process

    Have a look at answers at:
    http://codeguru.earthweb.com/cgi-bin...&sb=&category=

    Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

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

Featured