Re: IPC mechanisms supported in Windows CE



What you want is CreateFileMapping( NULL, ..., NAME ), MapViewOfFile(). Do
the same in two programs (same name), and they will be pointing to the same
memory.

Paul T.

"Andy" <Andy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:A052C6C8-23C9-49C1-BC6A-F8300409DF17@xxxxxxxxxxxxxxxx
> Thanks Paul, Daniel and John for your valuable replies.
>
> I was thinking more of using shared memory or message queues for the same.
> The application is not that big and data transfer is also moderate.
>
> I'd like to ask one thing:
> For shared memory, what's the equivalent of OpenFileMapping() in Windows
> CE,
> or are there any alternative methods for Shared memory?
> If anyone can give an example, I'll be really grateful.
>
> Ciao,
> Andy.
>
> "John Spaith [MS]" wrote:
>
>> You have good timing -- I coincidentally did a blog today about IPC from
>> a
>> native perspective.
>> http://blogs.msdn.com/cenet/archive/2005/07/13/438424.aspx
>>
>> --
>> 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.
>>
>> "Daniel Moth" <dmoth74@xxxxxxxxxxx> wrote in message
>> news:u93Sx4xhFHA.3544@xxxxxxxxxxxxxxxxxxxxxxx
>> > ... in addition to Paul's comments, for all the WinCE IPC mechanisms
>> > (from
>> > a netcf perspective, but the list applies regardless of dev
>> > environment)
>> > see this:
>> > http://www.danielmoth.com/Blog/2004/09/ipc-with-cf-on-ce-part-1.html
>> >
>> > Cheers
>> > Daniel
>> > --
>> > http://www.danielmoth.com/Blog/
>> >
>> >
>> > "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT
>> > com>
>> > wrote in message news:eRXUpovhFHA.1244@xxxxxxxxxxxxxxxxxxxxxxx
>> >> "Packets" or just raw byte data? Where is the data going? Not back
>> >> to
>> >> NDIS, right?
>> >>
>> >> No, there are no pipes in Windows CE.
>> >>
>> >> You might use a shared memory area and some sort of notification
>> >> scheme
>> >> to notify the consumer of the data that more data has been added.
>> >> You'd
>> >> use CreateFileMapping() and the like for this.
>> >>
>> >> You might just use sockets, too, if you want to. You could create a
>> >> listening socket in your consumer which will only accept connections
>> >> from
>> >> the local IP address (bind() and accept() would have specific
>> >> configurations), then connect to the local socket with your producer
>> >> and
>> >> drop the data there.
>> >>
>> >> Most of the other interprocess communications things send a single
>> >> value,
>> >> usually a state, between processes. Named events, for example, can be
>> >> shared between processes, as can mutexes.
>> >>
>> >> Paul T.
>> >>
>> >> "Andy" <Andy@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> >> news:2058FE6C-6806-4F60-BDCD-D91FEBF9F08B@xxxxxxxxxxxxxxxx
>> >>> Hi,
>> >>> Can somebody please tell me what IPC mechanisms can I use to pass
>> >>> data
>> >>> between processes on the same device in Windows CE?
>> >>> The data to be passed is in form of TCP/IP packets. I'm new to
>> >>> Windows
>> >>> CE
>> >>> programming.
>> >>> I just want to know the pros and cons of various IPC mechanisms.
>> >>> Also, I
>> >>> have heard that there is no support for anonymous or named pipes in
>> >>> CE.
>> >>> So
>> >>> I'm confused.
>> >>>
>> >>> Any help will be appreciated.
>> >>> Ciao,
>> >>> Andy.
>> >>
>> >>
>> >
>>
>>
>>


.



Relevant Pages


Quantcast