Re: linux to windows porting help



vamsi wrote:
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.


You're in the wrong NG asking this question. All you got here is wannabee teachers wanting to write a book, students and nobody with any real experience. <g>

These people don't know *jack* about the Windows O/S and queue processing. I suggest that you find a MS NG with someone that may know Linux and MS. You're not going to find it here. ;-)

Duane :)

.



Relevant Pages

  • Re: linux to windows porting help
    ... Presently i am working on win32 console applications. ... 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. ... 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. ... Though i was able to do it successfully for Pipes and Shared memory, ... PostThreadMessage - for Message queue between process and its ...
    (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: Maximum User Handles Per Process Is 10,000 in Windows 2000
    ... > either use PeekMessage to pump messages interleaved with whatever ... The problem is _not_ the message queue overflow. ... This program use hidden windows for message processing ...
    (microsoft.public.win32.programmer.kernel)