# GetConsoleCp

```csharp
[DllImport("Kernel32.dll")][return: MarshalAs(UnmanagedType.U2)]
public static extern ushort GetConsoleCP(
);
```

Microsoft documentation: [Link](https://docs.microsoft.com/en-us/windows/console/getconsolecp)
