From: Troy Rollo [mailto:wine@troy.rollo.name]
These are complications rather than impenetrable barriers. Wine->Wine (and Winelib App->Wine) calls would not need to go through the thunks. Many of the issues involved have already been dealt with for 16<->32 thunking and cross-process COM calls.
It's not ideal, but it should be possible.
It's an intriguing idea, but I can't see how it could work for even slightly complex cases. Take the COM calls. When the COM object is constructed, you have absolutely no idea whether its methods are going to be called from a Wine or from a PE environment. The difference with thunking and cross-process COM calls is that in those cases the caller knows he's doing something special. Not so for in-proc COM calls, it's just a function call.
Gé van Geldorp.