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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Preventing others to access my process via interprocess communication

Preventing others to access my process via interprocess communication

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 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
    Marco2250
    wrote on last edited by
    #1

    Hi all. How I prevent others to access my process via interprocess communication? I know that when I want to open a process using IPC I can use OpenProcess function and inform the desired access. How I can prevent every access, i.e., no PROCESS_VM_READ access, no PROCESS_VM_WRITE acess, etc etc. And, How i can deny ipc access for all process but allow it to a specif process? Thx in advance. Best regards, Marco Alves.

    J 1 Reply Last reply
    0
    • M Marco2250

      Hi all. How I prevent others to access my process via interprocess communication? I know that when I want to open a process using IPC I can use OpenProcess function and inform the desired access. How I can prevent every access, i.e., no PROCESS_VM_READ access, no PROCESS_VM_WRITE acess, etc etc. And, How i can deny ipc access for all process but allow it to a specif process? Thx in advance. Best regards, Marco Alves.

      J Offline
      J Offline
      Jun Du
      wrote on last edited by
      #2

      First, the process access as you described is not IPC. It's usually controlled by process's security attributes. You may call SetSecurityInfo() to define security of a process. Hope this link can help. On the other hand, IPC is the communication between two processes. Thus, it's mutual. If your process does not respond to IPC, nobody can do anything to hurt it.

      Best, Jun

      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