Add conpty dynamic loading restrictions docs

This commit is contained in:
sterlingjensen 2019-12-14 23:21:54 -06:00 committed by Christian Duerr
parent 08a1225748
commit 8a83340661
3 changed files with 9 additions and 2 deletions

View File

@ -43,7 +43,7 @@ dirs = "2.0.2"
x11-dl = "2"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.7", features = ["impl-default", "winuser", "synchapi", "roerrorapi", "winerror", "wincon", "wincontypes"]}
winapi = { version = "0.3.7", features = ["impl-default", "wincon"]}
[target.'cfg(windows)'.build-dependencies]
embed-resource = "1.3"

View File

@ -35,7 +35,10 @@ winpty = { path = "../winpty" }
mio-named-pipes = "0.1"
miow = "0.3"
dunce = "1.0"
winapi = { version = "0.3.7", features = ["impl-default", "winuser", "synchapi", "roerrorapi", "winerror", "wincon", "wincontypes"]}
winapi = { version = "0.3.7", features = [
"impl-default", "basetsd", "libloaderapi", "minwindef", "ntdef", "processthreadsapi", "winbase",
"wincon", "wincontypes", "winerror", "winnt", "winuser",
]}
widestring = "0.4"
mio-anonymous-pipes = "0.1"

View File

@ -40,6 +40,10 @@ use crate::term::SizeInfo;
use crate::tty::windows::child::ChildExitWatcher;
use crate::tty::windows::Pty;
// TODO: Replace with winapi's implementation. This cannot be
// done until a safety net is in place for versions of Windows
// that do not support the ConPTY api, as such versions will
// pass unit testing - but fail to actually function.
/// Dynamically-loaded Pseudoconsole API from kernel32.dll
///
/// The field names are deliberately PascalCase as this matches