Thread: sharing event objects across processes

  1. #1
    Registered User
    Join Date
    Sep 2006

    sharing event objects across processes

    im currently learning how to share objects across processes.. eg. using
    the same named event for different programs..

    in this note, how can i know which program signaled a program..

    say progX , progV, progW have the ability to signal progY.. once
    progY is signaled..
    I would like to find out who signaled progY in the first place.

    i tried looking in msdn but i cannot find a useful return handle to the object
    that signaled the event.. is there a way to find out which program signaled
    the event?

  2. #2
    Hurry Slowly vart's Avatar
    Join Date
    Oct 2006
    Rishon LeZion, Israel
    You can create event per program: evProgX, evProgV, evProgW
    each prog will signal its own event

    in the process that waits for this you will use WaitForMultipleObject given it the array of handles...
    When some event occurs you will know exactly who was initiator of it.
    All problems in computer science can be solved by another level of indirection,
    except for the problem of too many layers of indirection.
    David J. Wheeler

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sharing a Memory Space between two Processes
    By akm3 in forum C Programming
    Replies: 1
    Last Post: 04-02-2009, 02:06 AM
  2. Lame null append cause buffer to crash
    By cmoo in forum C Programming
    Replies: 8
    Last Post: 12-29-2008, 03:27 AM
  3. Sharing Memory among Processes
    By doom in forum C# Programming
    Replies: 4
    Last Post: 10-04-2005, 06:51 PM
  4. Trouble sharing files between processes.
    By Yasir_Malik in forum Linux Programming
    Replies: 8
    Last Post: 09-16-2003, 02:08 PM