Thread: Inter-Process Communication in Windows

  1. #1
    JBravo
    Guest

    Inter-Process Communication in Windows

    What facilities are there for IPC under windows using c++?
    I can use pipes, named pipes and shared memory for IPC in UNIX.
    Can I implement these under windows? & Do yee know any links to tutorials on these?
    Thanks,
    Donal

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829
    You can use all of these techniques in Win32, each has it's uses, and which to use depends on your application, the amount of IPC, and the required performance. MSDN has examples of all of these.

    The easiest way of IPC on a Win32 box is to get the handle of the co-operating tasks main window, (various methods available), and simply use the SendMessage() API function with that handle. I usually find that is enough.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Some methods;

    CreateMailslot() - Makes a mailslot that lots of processes can use to send to a server

    CreatePipe() - Makes an anonymous 2 way pipe to communicate with

    CreateNamedPipe() - As above, but with a specific pipe

    Shared Memory using Dlls - Each process loads a dll with a special section that is set to Read, Write and Share.........I think this is the basis that is used for DDE...Each process can then alter the data and it will be reflected in each process

  4. #4
    JBravo
    Guest
    Thanks for the info.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Script errors - bool unrecognized and struct issues
    By ulillillia in forum Windows Programming
    Replies: 10
    Last Post: 12-18-2006, 04:44 AM
  2. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  3. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM
  4. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM