Setupcomm

[DllImport("Kernel32.dll", SetLastError = true)][return: MarshalAs(UnmanagedType.Bool)]
public static extern bool SetupComm(IntPtr hFile,
   uint dwInQueue,
   uint dwOutQueue
);

Microsoft documentation: Link

Last updated