GetConsoleOutputCP function kernel32
Retrieves the output code page used by the console associated with the calling process.
To learn more, see learn.microsoft.com/windows/console/getconsoleoutputcp.
Implementation
Win32Result<int> GetConsoleOutputCP() {
resolveGetLastError();
final result_ = _GetConsoleOutputCP();
return .new(value: result_, error: GetLastError());
}