[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.U2)] public static extern ushort GetConsoleCP( );
Microsoft documentation: Link
Last updated 1 year ago