[PATCH] conhost: Delay-load gdi32 and user32.

Jacek Caban jacek at codeweavers.com
Tue Feb 16 13:44:21 CST 2021


Hi Zebediah,

On 13.02.2021 00:23, Zebediah Figura wrote:
> Both do some nontrivial work on DLL initialization, and conhost may quite
> likely never need to display UI.


See bug 38640. We probably want to create a message window for Unix 
consoles.


> Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
> ---
> Actually gdi32 initialization is quite cheap now, at least on my machine,
> though user32 still takes over 100 ms. In truth the annoyance for me was not
> so much startup time as pollution of +server logs.


Note that when you create a new console, client does not wait for that 
initialization, so it doesn't block client application (unless it does 
any ioctl that needs conhost).


Thanks,

Jacek




More information about the wine-devel mailing list