#include <stdio.h>
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
#include <wincon.h>
#include <conutils.h>
#include "resource.h"
Go to the source code of this file.
◆ wmain()
IMPORTANT NOTE: This code must be kept synchronized with MODE.COM!SetConsoleCPState()
Definition at line 30 of file chcp.c.
32 UINT uOldCodePage, uNewCodePage;
60 if (uNewCodePage == 0)
#define STRING_CHCP_ERROR4
BOOL WINAPI SetConsoleOutputCP(IN UINT wCodepage)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP(VOID)
#define STRING_ERROR_INVALID_PARAM_FORMAT
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(VOID)
void ConResPuts(FILE *fp, UINT nID)
void ConResPrintf(FILE *fp, UINT nID,...)
LANGID ConSetThreadUILanguage(IN LANGID LangId OPTIONAL)
#define STRING_CHCP_ERROR1
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCP(UINT wCodePageID)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define ConStdStreamsSetCacheCodePage(InputCodePage, OutputCodePage)
#define ConInitStdStreams()