1
Fork 0

Windows: Make stdin pipes synchronous

Stdin pipes do not need to be used asynchronously within the standard library.
This commit is contained in:
Chris Denton 2022-04-26 15:58:21 +01:00
parent b89b056742
commit 949b978ec9
No known key found for this signature in database
GPG key ID: 713472F2F45627DE
3 changed files with 85 additions and 31 deletions

View file

@ -1022,6 +1022,12 @@ extern "system" {
bWaitAll: BOOL,
dwMilliseconds: DWORD,
) -> DWORD;
pub fn CreatePipe(
hReadPipe: *mut HANDLE,
hWritePipe: *mut HANDLE,
lpPipeAttributes: *const SECURITY_ATTRIBUTES,
nSize: DWORD,
) -> BOOL;
pub fn CreateNamedPipeW(
lpName: LPCWSTR,
dwOpenMode: DWORD,