Thread: TerminateProcess

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    56

    TerminateProcess

    Hello, I am a little scetchy on the use of Terminate process. Dont worry, the use will not be illegal, however I need it to kill a specific process. My understanding of the MSDN library can only take me so far. This is what I know..

    Code:
    HANDLE hProcess = openProcess("I want my specifc process to go here", blah, blah);
    TerminateProcess(hProcess, 0);
    What goes in the space where it says "I want specific process"? I am looking everywhere but all I get is some stuff on SYNCRONIZE WINDOW or something like that. I don't understand tht concept. Any help is appreciated.

  2. #2
    Registered Luser cwr's Avatar
    Join Date
    Jul 2005
    Location
    Sydney, Australia
    Posts
    869
    This should be moved to the Windows Programming section, it has little to do with the C language.

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    Check out...

    Terminate Process

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TerminateProcess help
    By (TNT) in forum Windows Programming
    Replies: 2
    Last Post: 02-25-2005, 11:09 AM
  2. How to stop a aplication
    By eletron in forum C++ Programming
    Replies: 3
    Last Post: 09-19-2004, 07:10 PM
  3. Better Version of TerminateProcess
    By golfinguy4 in forum Windows Programming
    Replies: 3
    Last Post: 02-17-2003, 02:34 AM
  4. Need a little help with TerminateProcess..
    By Velius in forum C++ Programming
    Replies: 0
    Last Post: 11-30-2001, 12:02 AM
  5. TerminateProcess fails with success
    By Steve Marchetti in forum Windows Programming
    Replies: 0
    Last Post: 11-14-2001, 02:17 PM