GetConsoleOutputCP function kernel32

Win32Result<int> GetConsoleOutputCP()

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() {
  final result_ = GetConsoleOutputCP_Wrapper();
  return Win32Result(value: result_.value.u32, error: result_.error);
}