Hi,
the documentation is vaguely telling about the various interprocess
synchronisation mechanisms in windows ce.
Do we have any mechanisms other than the following
1) Memory mapped files
using api's like createfilemap
2) Message Queuing
it again have 2 flavours
a) using sendmessage and getmessage
b) WM_COPYDATA
3) Mailslots
i have read the complete documentation about the above two and a lot
of articles also.
i heard that we have various other mechanisms from the article
http://support.microsoft.com/kb/q95900/ which just mentions
about named pipes ,OLE,windows socket,RPC,NETBIOS,DDE.
can anyone tell me how the above mechanisms can be used or any
articles describing about them.
It would be really appreciated if any fruitful reply comes.


Thanking you,

with regards
Sonu Thomas

Re: interprocess communciation by Anthony

Anthony
Mon Jun 27 04:51:39 CDT 2005

most commonly used (in my opinion) are :
- mutex : used to synchronize 2 threads/process
- critical section : lighter than mutex but can only be used for 2 threads
of the same process
- message queue : synchronization and information exchange between 2
processes /threads
- mapfile : allow exchanging lots of data netween 2 processes
- events : synchronization between 2 processes/threads. Widely used at
application level

This is not exhaustive

Hope this helps

--
----------------------------------------------------------------
Anthony Pellerin
ADENEO (ADESET)
Windows Embedded Consultant
<apellerin AT adeneo DOT adetelgroup DOT com>
http://www.adeneo.adetelgroup.com
Tél : +33 (0)4.72.18.57.77
Fax : +33 (0)4.72.18.57.78
----------------------------------------------------------------


"sonu" <sonuthomas@gmail.com> wrote in message
news:1119865208.157737.33180@f14g2000cwb.googlegroups.com...
> Hi,
> the documentation is vaguely telling about the various interprocess
> synchronisation mechanisms in windows ce.
> Do we have any mechanisms other than the following
> 1) Memory mapped files
> using api's like createfilemap
> 2) Message Queuing
> it again have 2 flavours
> a) using sendmessage and getmessage
> b) WM_COPYDATA
> 3) Mailslots
> i have read the complete documentation about the above two and a lot
> of articles also.
> i heard that we have various other mechanisms from the article
> http://support.microsoft.com/kb/q95900/ which just mentions
> about named pipes ,OLE,windows socket,RPC,NETBIOS,DDE.
> can anyone tell me how the above mechanisms can be used or any
> articles describing about them.
> It would be really appreciated if any fruitful reply comes.
>
>
> Thanking you,
>
> with regards
> Sonu Thomas
>



Re: interprocess communciation by John

John
Mon Jun 27 11:22:30 CDT 2005

The document in the link below is for desktop Windows. WinCE does not have
named pipes or mailslots. I don't think it has DDE either but I'm not sure.

DCOM (RPC) is only available on some WinCE images since it's an optional
component, and it's an expensive component (+500KB) at that so I would avoid
it if at all possible.

CE has a light-weight message queuing mechanism that is unique to it --
check out CreateMsgQueue and related APIs.

If you are doing something with a traditional client-server approach (even
if client & server are running on the same machine), then you may consider
writing a service DLL for services.exe. Check out
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnce50/html/implement_network_service.asp?frame=true.

--
John Spaith
Software Design Engineer, Windows CE
Microsoft Corporation

Check out the new CE Networking Team Blog at http://blogs.msdn.com/cenet/.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2003 Microsoft Corporation. All rights
reserved.

"sonu" <sonuthomas@gmail.com> wrote in message
news:1119865208.157737.33180@f14g2000cwb.googlegroups.com...
> Hi,
> the documentation is vaguely telling about the various interprocess
> synchronisation mechanisms in windows ce.
> Do we have any mechanisms other than the following
> 1) Memory mapped files
> using api's like createfilemap
> 2) Message Queuing
> it again have 2 flavours
> a) using sendmessage and getmessage
> b) WM_COPYDATA
> 3) Mailslots
> i have read the complete documentation about the above two and a lot
> of articles also.
> i heard that we have various other mechanisms from the article
> http://support.microsoft.com/kb/q95900/ which just mentions
> about named pipes ,OLE,windows socket,RPC,NETBIOS,DDE.
> can anyone tell me how the above mechanisms can be used or any
> articles describing about them.
> It would be really appreciated if any fruitful reply comes.
>
>
> Thanking you,
>
> with regards
> Sonu Thomas
>