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. i have a simple question on terminating processes

i have a simple question on terminating processes

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionc++json
4 Posts 3 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.
  • R Offline
    R Offline
    Ryan McDermott
    wrote on last edited by
    #1

    Hello, seems i have a problem on terminating processes by name. I need visual C, not c++ code to terminate processes. Does anybody have this? I wonder if it's even possible because i wrote some c++ code that terminates processes by name using szName but when i did a conversion to C gave me a lot of errors. If anybody has visual C code to terminate process, PLEASE HELP ME! Oh by the way i am looking for this api: TerminateProcess(...) -Ryan M.

    P 1 Reply Last reply
    0
    • R Ryan McDermott

      Hello, seems i have a problem on terminating processes by name. I need visual C, not c++ code to terminate processes. Does anybody have this? I wonder if it's even possible because i wrote some c++ code that terminates processes by name using szName but when i did a conversion to C gave me a lot of errors. If anybody has visual C code to terminate process, PLEASE HELP ME! Oh by the way i am looking for this api: TerminateProcess(...) -Ryan M.

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      TerminateProcess(...) are you looking for this api ?


      God is Real, unless declared Integer.

      S 1 Reply Last reply
      0
      • P Prakash Nadar

        TerminateProcess(...) are you looking for this api ?


        God is Real, unless declared Integer.

        S Offline
        S Offline
        SiddharthAtw
        wrote on last edited by
        #3

        Hi! But what Jeff Richter says, TerminateProcess() doesn't give a clean exit. Instead TerminateThread() or ExitProcess() can be used. TerminateProcess() is brutal.

        P 1 Reply Last reply
        0
        • S SiddharthAtw

          Hi! But what Jeff Richter says, TerminateProcess() doesn't give a clean exit. Instead TerminateThread() or ExitProcess() can be used. TerminateProcess() is brutal.

          P Offline
          P Offline
          Prakash Nadar
          wrote on last edited by
          #4

          may be, or may be not, the poster was looking for TerminateProcess and thats the answer for him. :-) and he acknowledged it.


          God is Real, unless declared Integer.

          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