Click to See Complete Forum and Search --> : Simple question on PostThreadMessage


cyberninja
March 4th, 2004, 12:48 PM
I have 2 questions:
1. Does PostThreadMessage() work crossing process boundary?
2. How to get a Window Handler (HWND) from a function who may not know the information about the caller process or window?

Thanks

cyberninja
March 4th, 2004, 01:37 PM
Yes PostThreadMessage works across processes.
However it seems that WM_COPYDATA does nto work in this case.

Sam Hobbs
March 5th, 2004, 02:07 PM
Originally posted by cyberninja
However it seems that WM_COPYDATA does nto work in this case. Yes, the WM_COPYDATA documentation is very clear that SendMessage must be used to send it. It states explicitly:do not call the PostMessage functionI think it can be assumed that in this context the PostThreadMessage function is the same as the PostMessage function. It's in the documentaion.

Andreas Masur
March 6th, 2004, 04:18 PM
[Moved thread]

cyberninja
March 9th, 2004, 04:57 PM
thanks