Go to the source code of this file.
◆ main()
Definition at line 61 of file main.c.
63{
68 CHAR BuildOptions[16] = {0};
69
70
72 {
74 break;
75
78 else
79 Option = 0;
80
81
82 switch (Option)
83 {
84
85 case 'A':
86 case 'a':
88 break;
89
90
91 case 'U':
92 case 'u':
94 break;
95
96
97 case 'V':
98 case 'v':
100 break;
101
102
103 case 'N':
104 case 'n':
106 break;
107
108
109 case 'K':
110 case 'k':
112 break;
113
114
115 case 'W':
116 case 'w':
118 break;
119
120
121 case 'I':
122 case 'i':
124 break;
125
126
127 case 'X':
128 case 'x':
130 break;
131
132
133 case 'M':
134 case 'm':
136 break;
137
138
139 case 'O':
140 case 'o':
142 break;
143
144
145 case 'S':
146 case 's':
148 break;
149
150 default:
151
153 break;
154 }
155 }
156
157
159
160
162 {
163
164 printf(
"\nKbdTool v%d.%02d - convert keyboard text file to C file or a keyboard layout DLL\n\n",
166 }
167
168
170
171
172 OpenFlags = "rb";
174
175
178 {
179
182 }
183
184
186 {
187
189 {
190
191 strcpy(BuildOptions,
"source files");
192 }
193 else
194 {
195
197 {
198
199 case 0:
200 strcpy(BuildOptions,
"i386/x86");
201 break;
202 case 1:
203 strcpy(BuildOptions,
"ia64");
204 break;
205 case 2:
206 strcpy(BuildOptions,
"amd64/x64");
207 break;
208 case 3:
209 strcpy(BuildOptions,
"wow64");
210 break;
211 default:
212 strcpy(BuildOptions,
"unknown purpose");
213 break;
214 }
215 }
216
217
218 printf(
"Compiling layout information from '%s' for %s.\n",
gpszFileName, BuildOptions);
219 }
220
221
223
224
226
227
228 if (FailureCode == 0)
229 {
230
231 if (!
NoLogo)
printf(
"All tasks completed successfully.\n");
232 }
233 else
234 {
235
236 printf(
"\n %13d\n", FailureCode);
237 }
238
239
241}
char * strcpy(char *DstString, const char *SrcString)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ _CRTIMP FILE *__cdecl fopen(_In_z_ const char *_Filename, _In_z_ const char *_Mode)
_In_ NDIS_ERROR_CODE ErrorCode
◆ PrintUsage()
Definition at line 30 of file main.c.
31{
32
33 printf(
"\nKbdTool v%d.%02d - convert keyboard text file to C file or a keyboard layout DLL\n\n",
35
36
37 printf(
"Usage: KbdTool [-v] [-n] [-w] [-k] [-n] [-u|a] [-i|x|m|o|s] FILE\n\n");
38 printf(
"\t[-?] display this message\n");
39 printf(
"\t[-n] no logo or normal build information displayed\n\n");
40 printf(
"\t[-a] Uses non-Unicode source files (default)\n");
41 printf(
"\t[-u] Uses Unicode source files\n\n");
42 printf(
"\t[-v] Verbose diagnostics (and warnings, with -w)\n");
43 printf(
"\t[-w] display extended Warnings\n\n");
44 printf(
"\t[-x] Builds for x86 (default)\n");
45 printf(
"\t[-i] Builds for IA64\n");
46 printf(
"\t[-m] Builds for AMD64\n");
47 printf(
"\t[-o] Builds for WOW64\n");
48 printf(
"\t[-s] Generate Source files (no build)\n\n");
49 printf(
"\tFILE The source keyboard file (required)\n\n");
50
51
52 printf(
"\t-u/-a are mutually exclusive; kbdutool will use the last one if you specify more than one.\n");
53 printf(
"\t-i/-x/-m/-o-s will exhibit the same behavior when than one of them is specified.\n\n");
54
55
57 printf(
"should not be here");
58}
◆ BuildType
◆ FallbackDriver
◆ gfpInput
◆ gpszFileName
◆ gSubVersion
◆ gVersion
◆ NoLogo
◆ SanityCheck
◆ SourceOnly
◆ UnicodeFile
◆ Verbose