internal WindowsConsoleStream(IntPtr handle, FileAccess access, bool useFileAPIs)
: base(access)
{
Debug.Assert(handle != IntPtr.Zero && handle != s_InvalidHandleValue, "ConsoleStream expects a valid handle!");
_handle = handle;
_isPipe = Interop.Kernel32.GetFileType(handle) == Interop.Kernel32.FileTypes.FILE_TYPE_PIPE;
_useFileAPIs = useFileAPIs;
}