PtForwardWindowTaskEvent in neutrino

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

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.