About wineserver and winsock

Erich E. Hoover erich.e.hoover at gmail.com
Tue May 27 11:29:55 CDT 2014


On Mon, May 26, 2014 at 3:23 PM, Chris Robinson <chris.kcat at gmail.com> wrote:
> On 05/26/2014 09:31 AM, Damjan Jovanovic wrote:
>>
>> That wouldn't always work: in theory, DuplicateHandle() could transmit
>> the socket to another process, which wouldn't have the same ws2_32
>> thread.
>
>
> I don't know much about winsock and wineserver and such, but would it be
> possible for a handle to track whether it's been duplicated from/to another
> process and only involve wineserver when it has been?

You actually need to use WSADuplicateSocket[A|W] on sockets, so it's
conceivable that we could keep a record of which handles have been
duplicated for other processes.

Best,
Erich



More information about the wine-devel mailing list