Inter-Process Communication in Windows

This is a discussion on Inter-Process Communication in Windows within the C++ Programming forums, part of the General Programming Boards category; What facilities are there for IPC under windows using c++? I can use pipes, named pipes and shared memory for ...

  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,831
    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,789
    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, 03:44 AM
  2. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 06: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

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