1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
4 
5 using System;
6 using System.Runtime.InteropServices;
7 
8 internal partial class Interop
9 {
10     internal partial class Kernel32
11     {
12         // Declaration for C# representation of Win32 COMSTAT structure associated with
13         // a file handle to a serial communications resource.  SerialStream's
14         // InBufferBytes and OutBufferBytes directly expose cbInQue and cbOutQue to reading, respectively.
15         //
16         // https://msdn.microsoft.com/en-us/library/windows/desktop/aa363200.aspx
17         internal struct COMSTAT
18         {
19             public uint Flags;
20             public uint cbInQue;
21             public uint cbOutQue;
22         }
23     }
24 }