Fog Creek Software
g
Discussion Board




interprocess communications in Windows?

Is there any good book or website about interprocess communication in Windows?

I know there are many ways to do IPC: sockets, pipes, named pipes, mapped files, mailslots, SendMessage/PostMessage, etc.

What I need is a systematic and complete description of those - with advantages, disadvantages, how to use, code examples, etc.

Is there any book or web site detailing all the ways you can do IPC in Windows?

Thank you!

George M.
Friday, February 27, 2004

>I know there are many ways to do IPC: sockets, pipes, named pipes, mapped files, mailslots, SendMessage/PostMessage, etc.

You forgot station wagons.

Li-fan Chen
Friday, February 27, 2004

ISBN: 0201703106

Li-fan Chen
Friday, February 27, 2004

Two questions:

1. In/with what language?

2. have you checked the MSDN?

Andrew Burton
Friday, February 27, 2004

> MSDN?

*lol* *weep*

Li-fan Chen
Friday, February 27, 2004

IPC introductory page in MSDN contains a good description of each mechanism and what is good for.

Jordan
Friday, February 27, 2004

Would MSMQ be useful for this as well?  The IPC page at MSDN didn't mention this one.

Wayne
Friday, February 27, 2004

0201703106 =

Win32 System Programming: A Windows(R) 2000 Application Developer's Guide (2nd Edition)
by Johnson M. Hart

http://www.amazon.com/exec/obidos/tg/detail/-/0201703106/

Fred
Saturday, February 28, 2004

The fastest way to do IPC in windows was to send a windows message with shared memory handle in lvalue.
(actually you can keep a pool of shared memory handles and reuse them)

I did a check some way back - and this info was in no book.
- i don't think that IPC on wndows changed since 98 ;-)

Since windows 2000:
If both processes are on different desktops (like one process in NT service), then you have to bother about using the same thread desktop.

Michael Moser
Saturday, February 28, 2004

The MSDN page about IPC is:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipc/base/interprocess_communications.asp

It is quite good and detailed.

MX
Tuesday, March 2, 2004

*  Recent Topics

*  Fog Creek Home