At Sunday 21/1/2007 07:56, jbd wrote:
But since you're already using messages, maybe the easiest way is
making the target application broadcast a message telling I'm ready
now, and when the caller sees it, it knows it can post the message.
Use RegisterWindowMessage on both applications,
jbd schreef:
I create a process via the CreateProcess function, and i wait using
WaitForInputIdle to be sure that the process is in ready state, it works
well (ie: the process is launched). I send a message via PostMessage and
i'd like to know if the command had been correctly processed, and i
At Saturday 20/1/2007 21:35, jbd wrote:
Check also whether WaitForInputIdle returns 0, and not WAIT_TIMEOUT
(meaning that the process is not ready yet)
That's why i'm doing. Moreover, i'm using INFINITE as a timeout.
ret = win32event.WaitForInputIdle(handle, win32event.INFINITE)
if ret !=
At Saturday 20/1/2007 21:35, jbd wrote:
I create a process via the CreateProcess function, and i wait using
WaitForInputIdle to be sure that the process is in ready state, it works
well (ie: the process is launched).
Check also whether WaitForInputIdle returns 0, and not WAIT_TIMEOUT