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???

Console applications in MS Windows have the ability to access all
Windows objects including hwnds, dcs, windows, dialog boxes etc. There
is really very little difference between a console app and a windowed
app except that the latter doesn't have a console. Note that an app
can only post messages to other apps on the same "desktop".

Ask the question on comp.os.ms-windows.programmer.win32 and someone
will probably tell you exactly which calls to use for your application.

If you already have a working Windows program I see no reason to
migrate it to .NET, it doesn't solve any problems.

.



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. ... 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 ... donn have any windows handle so unable to use these functions... ...
    (comp.programming)
  • Re: CreateProcessAsUser - Process starts then exits
    ... Windows XP Media Center ... public Int32 dwX; ... public IntPtr lpReserved2; ... parent's console. ...
    (microsoft.public.win32.programmer.kernel)