Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how to kill a process

how to kill a process

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dvsr
    wrote on last edited by
    #1

    Hi, How to kill a process given a process ID Thanks and Regards, Venkat

    G H S 3 Replies Last reply
    0
    • D dvsr

      Hi, How to kill a process given a process ID Thanks and Regards, Venkat

      G Offline
      G Offline
      goodoljosh1980
      wrote on last edited by
      #2

      Look at: http://www.codeproject.com/cpp/kill_process.asp?df=100&forumid=132&exp=0&select=4095[^] That should help.

      1 Reply Last reply
      0
      • D dvsr

        Hi, How to kill a process given a process ID Thanks and Regards, Venkat

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        See How to kill a process given a name [^]


        WhiteSky


        1 Reply Last reply
        0
        • D dvsr

          Hi, How to kill a process given a process ID Thanks and Regards, Venkat

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          Killing a process should only be a last resort and can be dangerous; better to ask it to close down. That said, you can use the TerminateProcess API to kill a process given a HANDLE to the process. The OpenProcess function can be used to get a process HANDLE from its id.

          Steve

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups