23 phandles[0] = phandles[1] = -1;
30 security_attributes.
nLength =
sizeof(security_attributes);
36 HANDLE read_handle, write_handle;
37 if (!
CreatePipe(&read_handle, &write_handle, &security_attributes,
psize))
45 if (crt_read_handle == -1)
68 if (crt_write_handle == -1)
98 _osfile(crt_read_handle) &= ~FTEXT;
99 _osfile(crt_write_handle) &= ~FTEXT;
111 phandles[0] = crt_read_handle;
112 phandles[1] = crt_write_handle;
void __cdecl __acrt_errno_map_os_error(unsigned long)
int __cdecl _alloc_osfhnd(void)
int __cdecl __acrt_lowio_set_os_handle(int, intptr_t)
void __cdecl __acrt_lowio_unlock_fh(_In_ int _FileHandle)
_CRTIMP errno_t __cdecl _get_fmode(_Out_ int *_PMode)
#define _VALIDATE_CLEAR_OSSERR_RETURN(expr, errorcode, retexpr)
BOOL WINAPI CreatePipe(PHANDLE hReadPipe, PHANDLE hWritePipe, LPSECURITY_ATTRIBUTES lpPipeAttributes, DWORD nSize)
_Must_inspect_result_ _Out_ LPSIZE psize
int __cdecl _pipe(int *const phandles, unsigned const psize, int const textmode)
LPVOID lpSecurityDescriptor
DWORD WINAPI GetLastError(void)