Re: linux to windows porting help



Hi,
Thanks all for the valuable suggestions.
Presently i am working on win32 console applications. My primary task
is to port all the IPC communication through Pipes, Message queues, and
shared memory from linux to windows.

Though i was able to do it successfully for Pipes and Shared memory, i
could not find a proper win32 API to implement Message queue
communication between two different process(one process is created from
other using CreateProcess, and these two processes must talk with each
other using MQ).

I found the following functions so far, which didnt help,

1. PostThreadMessage - for Message queue between process and its
thread.
2. SendMessage, PostMessage - uses the destination window handle as an
argument. but since i am working on win32 console application ... I
donn have any windows handle so unable to use these functions...

Are there any win32 API functions, where we can send messages to Queue
of a process using queue id like msgsnd() in linux???

Thanks n Advance,
vamsi.

.



Relevant Pages

  • Re: linux to windows porting help
    ... Presently i am working on win32 console applications. ... Though i was able to do it successfully for Pipes and Shared memory, ... PostThreadMessage - for Message queue between process and its ... donn have any windows handle so unable to use these functions... ...
    (comp.programming)
  • Re: linux to windows porting help
    ... Presently i am working on win32 console applications. ... communication between two different process(one process is created from ... PostThreadMessage - for Message queue between process and its ... but judging by the general direction of your query it may be that what you're searching for is MSMQ. ...
    (comp.programming)
  • Re: kernel mode driver and application communication
    ... as with anything else (files aren't safe! ... named mutex created by each potential user of the shared memory to serialize ... performant, unless I miss my guess, than a message queue. ... application, and do CreateMsgQueue, WriteMsgQueue from the driver? ...
    (microsoft.public.windowsce.embedded)
  • Re: Solaris2.6 Shared memory problem.
    ... > Message Queue facility not in system. ... > Shared Memory facility not in system. ... What you're seeing there is ipcs reporting that the shared memory (also ... forceload: sys/shmsys ...
    (comp.unix.solaris)
  • Re: IPC question
    ... disadvantages of pipe, message queue, and shared memory? ... A pipe is great if your problem fits a 'continuous stream of bytes' ... Shared memory requires the most complexity to ...
    (comp.unix.programmer)