terminal/src/winconpty
Dustin L. Howett (MSFT) cc8faaf04f
Force the use of the static pseudoconsole functions in TConn (#3582)
This commit renames the functions in conpty.lib to Conpty* so that they
can be explicitly linked and introduces a header so they can be located.

It also updates the DEF for conpty.dll to reexport them with their
original names.

The crux of the issue here is that TerminalConnection is consuming the
_import_ symbols for the *PseudoConsole family of APIs, which simply
cannot be supplanted by a static library.

Avenues explored: * Exporting __imp_x from the static library to get all
up in kernel32's business.  * Using /ALTERNATENAME:__imp_X=StaticX. It
turns out ALTERNATENAME is only consulted when the symbol isn't found
through traditional means.

This, renaming them, is the straightest path forward.

Fixes #3553.
2019-11-15 17:02:38 -08:00
..
dll Force the use of the static pseudoconsole functions in TConn (#3582) 2019-11-15 17:02:38 -08:00
lib Make ConPTY build as both LIB and DLL. (#3565) 2019-11-14 11:22:00 -08:00
device.h Open-source the PseudoConsole family of functions in a new DLL (#2611) 2019-09-04 12:03:44 -07:00
precomp.cpp Open-source the PseudoConsole family of functions in a new DLL (#2611) 2019-09-04 12:03:44 -07:00
precomp.h Open-source the PseudoConsole family of functions in a new DLL (#2611) 2019-09-04 12:03:44 -07:00
winconpty.cpp Force the use of the static pseudoconsole functions in TConn (#3582) 2019-11-15 17:02:38 -08:00
winconpty.h Force the use of the static pseudoconsole functions in TConn (#3582) 2019-11-15 17:02:38 -08:00