sharing event objects across processes

This is a discussion on sharing event objects across processes within the Windows Programming forums, part of the Platform Specific Boards category; im currently learning how to share objects across processes.. eg. using the same named event for different programs.. in this ...

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    6

    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
    CSharpener vart's Avatar
    Join Date
    Oct 2006
    Location
    Rishon LeZion, Israel
    Posts
    6,424
    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.
    The first 90% of a project takes 90% of the time,
    the last 10% takes the other 90% of the time.

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, 02: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21