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. IPC - win32

IPC - win32

Scheduled Pinned Locked Moved C / C++ / MFC
4 Posts 2 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.
  • M Offline
    M Offline
    mpapeo
    wrote on last edited by
    #1

    I want to implement Process Communication in visual C. Like if a process is running, i want to write a code which can cause that process to stop or shutdown or a code which detect that a certain process has been start and it should be stopped. Or can any one give me a good site on IPC to implement the idea above. Thanks in advance -oam

    S 1 Reply Last reply
    0
    • M mpapeo

      I want to implement Process Communication in visual C. Like if a process is running, i want to write a code which can cause that process to stop or shutdown or a code which detect that a certain process has been start and it should be stopped. Or can any one give me a good site on IPC to implement the idea above. Thanks in advance -oam

      S Offline
      S Offline
      shiraztk
      wrote on last edited by
      #2

      Hi First of all, call EnumProcess to get all the processes running in the system. Then call OpenProcess to open the running proccess. You will have got a handle the required Process by now. Set the required access right while opening the process. Now call TerminateProcess to terminate the process. Hope this would work for you Regards The Best Relligion is Science. Once you understand it, you will know God.

      M 1 Reply Last reply
      0
      • S shiraztk

        Hi First of all, call EnumProcess to get all the processes running in the system. Then call OpenProcess to open the running proccess. You will have got a handle the required Process by now. Set the required access right while opening the process. Now call TerminateProcess to terminate the process. Hope this would work for you Regards The Best Relligion is Science. Once you understand it, you will know God.

        M Offline
        M Offline
        mpapeo
        wrote on last edited by
        #3

        I understand the first paragraph of your comment, but i don't understand if the program will send a message to the running process. I wanted something that will communicate with the running process in many ways. oam

        S 1 Reply Last reply
        0
        • M mpapeo

          I understand the first paragraph of your comment, but i don't understand if the program will send a message to the running process. I wanted something that will communicate with the running process in many ways. oam

          S Offline
          S Offline
          shiraztk
          wrote on last edited by
          #4

          Hi Using of shared memory will of any use to you? Regards Shiraz The Best Relligion is Science. Once you understand it, you will know God.

          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