tir, 08.07.2003 kl. 13.57 skrev Kelly Leahy:
That's what I was thinking, but I found an article from 1994 claiming that ole would be shortly moving to the DCE RPC protocol instead of using window messages (and so they did).
I guess they didn't purge window messages entirely.
Actually, it looks like they didn't: http://www.microsoft.com/msj/0596/activex0596.aspx
so it seems window messages are still used for RPC when no networking is involved.
This looks like the part that should be most interesting to us... (below) I didn't see anything to indicate that RPC uses messages (If i'm reading your comments correctly, it sounds like you think it does?). However, in order to avoid the blocking RPC system call, the thread enters a message loop and makes the RPC system call on another worker thread (when a call is made within the channel implementation). If this pool of threads and worker-made-call functionality is not currently implemented in the standard IRpcChannelBuffer implementation in WINELIB, then we probably need to implement it somehow.
I've implemented this, I just haven't submitted my work in this area because there's a lot of other ugliness around my interthread work which I *still* haven't got around to clean up (perhaps I better do it soon). Should I maybe send it in as-is anyway if I still can't get around to it?