SetConsoleCP

  BOOL SetConsoleCP(IDCodePage)    
  UINT IDCodePage; /* Identifies the code page to set */

The SetConsoleCP function sets the code page used by the console associated with the calling process. This code page is used to translate keyboard input into the corresponding character value.

Parameters

IDCodePage

Identifies the code page to set.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

See Also

GetConsoleCP, GetConsoleOutputCP, SetConsoleOutputCP