PtForwardWindowTaskEvent in neutrino

bridged with qdn.public.qnx4.photon
Post Reply
Trong Nguyen

PtForwardWindowTaskEvent in neutrino

Post by Trong Nguyen » Thu Nov 20, 2003 9:34 pm

Hi all,

In photon1.14 / QNX425, I give the process ID
to notify a window event to an other module
by using PtForwardWindowTaskEvent


PhWindowEvent_t WE;
memset( &WE, 0, sizeof (WE));
WE.event_f = Ph_WM_FOCUS;
WE.event_state = Ph_WM_EVSTATE_FOCUS
PtForwardWindowTaskEvent ( PID , &WE );

-----------------------------------------------

Now In QNX, do we need to provide ConnectionID instead
of process ID ?

Thanks

Trong

Wojtek Lerch

Re: PtForwardWindowTaskEvent in neutrino

Post by Wojtek Lerch » Fri Nov 21, 2003 4:42 pm

Trong Nguyen <tnguyen@aquilamsl.com> wrote:
PtForwardWindowTaskEvent ( PID , &WE );

-----------------------------------------------

Now In QNX, do we need to provide ConnectionID instead
of process ID ?
It must be a valid connection ID on both QNX4 and QNX6; it just happens
that under QNX4, Photon uses the PID for the connection ID for *local*
processes. Even under QNX4, using the PID instead of the connection ID
is not safe unless you know that that Photon is running on the same node
as the process whose PID you have.

Post Reply

Return to “qdn.public.qnx4.photon”