#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.
31{
32 UINT uOldCodePage, uNewCodePage;
33
34
36
37
39 {
41 return 0;
42 }
43
45 {
46
48 return 0;
49 }
50
52 {
53
55 return 1;
56 }
57
59
60 if (uNewCodePage == 0)
61 {
63 return 1;
64 }
65
70
71
72
73
75
76
77
78
79
81 {
83 {
84
85
88
89
91 return 0;
92 }
93 else
94 {
95
97 }
98 }
99
100
102 return 1;
103}
#define STRING_ERROR_INVALID_PARAM_FORMAT
#define STRING_CHCP_ERROR4
#define STRING_CHCP_ERROR1
#define ConInitStdStreams()
void ConResPrintf(FILE *fp, UINT nID,...)
void ConResPuts(FILE *fp, UINT nID)
BOOL WINAPI SetConsoleOutputCP(IN UINT wCodepage)
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP(VOID)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCP(UINT wCodePageID)
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP(VOID)
_Check_return_ _CRTIMP int __cdecl _wtoi(_In_z_ const wchar_t *_Str)
_Check_return_ _CRTIMP int __cdecl wcscmp(_In_z_ const wchar_t *_Str1, _In_z_ const wchar_t *_Str2)
#define ConStdStreamsSetCacheCodePage(InputCodePage, OutputCodePage)
LANGID ConSetThreadUILanguage(IN LANGID LangId OPTIONAL)