1 .\" Automatically generated by Pod::Man 4.14 (Pod::Simple 3.42)
4 .\" ========================================================================
5 .de Sp \" Vertical space (when we can't use .PP)
9 .de Vb \" Begin verbatim text
14 .de Ve \" End verbatim text
18 .\" Set up some character translations and predefined strings. \*(-- will
19 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
20 .\" double quote, and \*(R" will give a right double quote. \*(C+ will
21 .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
22 .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
23 .\" nothing in troff, for use with C<>.
25 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
29 . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
30 . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
45 .\" Escape single quotes in literal strings from groff's Unicode transform.
49 .\" If the F register is >0, we'll generate index entries on stderr for
50 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
51 .\" entries marked with X<> in POD. Of course, you'll have to process the
52 .\" output yourself in some meaningful fashion.
54 .\" Avoid warning from groff about undefined register 'F'.
58 .if \n(.g .if rF .nr rF 1
59 .if (\n(rF:(\n(.g==0)) \{\
62 . tm Index:\\$1\t\\n%\t"\\$2"
72 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
73 .\" Fear. Run. Save yourself. No user-serviceable parts.
74 . \" fudge factors for nroff and troff
83 . ds #H ((1u-(\\\\n(.fu%2u))*.13m)
89 . \" simple accents for nroff and troff
99 . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
100 . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
101 . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
102 . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
103 . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
104 . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
106 . \" troff and (daisy-wheel) nroff accents
107 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
108 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
109 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
110 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
111 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
112 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
113 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
114 .ds ae a\h'-(\w'a'u*4/10)'e
115 .ds Ae A\h'-(\w'A'u*4/10)'E
116 . \" corrections for vroff
117 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
118 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
119 . \" for low resolution devices (crt and lpr)
120 .if \n(.H>23 .if \n(.V>19 \
133 .\" ========================================================================
136 .TH WINDMC 1 "2022-02-09" "binutils-2.38" "GNU Development Tools"
137 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
138 .\" way too many mistakes in technical documents.
142 windmc \- generates Windows message resources
144 .IX Header "SYNOPSIS"
145 windmc [options] input-file
147 .IX Header "DESCRIPTION"
148 \&\fBwindmc\fR reads message definitions from an input file (.mc) and
149 translate them into a set of output files. The output files may be of
152 .el .IP "\f(CWh\fR" 4
154 A C header file containing the message definitions.
156 .el .IP "\f(CWrc\fR" 4
158 A resource file compilable by the \fBwindres\fR tool.
159 .ie n .IP """bin""" 4
160 .el .IP "\f(CWbin\fR" 4
162 One or more binary files containing the resource data for a specific
164 .ie n .IP """dbg""" 4
165 .el .IP "\f(CWdbg\fR" 4
167 A C include file that maps message id's to their symbolic name.
169 The exact description of these different formats is available in
170 documentation from Microsoft.
172 When \fBwindmc\fR converts from the \f(CW\*(C`mc\*(C'\fR format to the \f(CW\*(C`bin\*(C'\fR
173 format, \f(CW\*(C`rc\*(C'\fR, \f(CW\*(C`h\*(C'\fR, and optional \f(CW\*(C`dbg\*(C'\fR it is acting like the
174 Windows Message Compiler.
180 .IP "\fB\-\-ascii_in\fR" 4
181 .IX Item "--ascii_in"
183 Specifies that the input file specified is \s-1ASCII.\s0 This is the default
188 .IP "\fB\-\-ascii_out\fR" 4
189 .IX Item "--ascii_out"
191 Specifies that messages in the output \f(CW\*(C`bin\*(C'\fR files should be in \s-1ASCII\s0
196 .IP "\fB\-\-binprefix\fR" 4
197 .IX Item "--binprefix"
199 Specifies that \f(CW\*(C`bin\*(C'\fR filenames should have to be prefixed by the
200 basename of the source file.
204 .IP "\fB\-\-customflag\fR" 4
205 .IX Item "--customflag"
207 Sets the customer bit in all message id's.
208 .IP "\fB\-C\fR \fIcodepage\fR" 4
209 .IX Item "-C codepage"
211 .IP "\fB\-\-codepage_in\fR \fIcodepage\fR" 4
212 .IX Item "--codepage_in codepage"
214 Sets the default codepage to be used to convert input file to \s-1UTF16.\s0 The
215 default is ocdepage 1252.
219 .IP "\fB\-\-decimal_values\fR" 4
220 .IX Item "--decimal_values"
222 Outputs the constants in the header file in decimal. Default is using
224 .IP "\fB\-e\fR \fIext\fR" 4
227 .IP "\fB\-\-extension\fR \fIext\fR" 4
228 .IX Item "--extension ext"
230 The extension for the header file. The default is .h extension.
231 .IP "\fB\-F\fR \fItarget\fR" 4
234 .IP "\fB\-\-target\fR \fItarget\fR" 4
235 .IX Item "--target target"
237 Specify the \s-1BFD\s0 format to use for a bin file as output. This
238 is a \s-1BFD\s0 target name; you can use the \fB\-\-help\fR option to see a list
239 of supported targets. Normally \fBwindmc\fR will use the default
240 format, which is the first one listed by the \fB\-\-help\fR option.
241 .IP "\fB\-h\fR \fIpath\fR" 4
244 .IP "\fB\-\-headerdir\fR \fIpath\fR" 4
245 .IX Item "--headerdir path"
247 The target directory of the generated header file. The default is the
252 .IP "\fB\-\-help\fR" 4
255 Displays a list of command-line options and then exits.
256 .IP "\fB\-m\fR \fIcharacters\fR" 4
257 .IX Item "-m characters"
259 .IP "\fB\-\-maxlength\fR \fIcharacters\fR" 4
260 .IX Item "--maxlength characters"
262 Instructs \fBwindmc\fR to generate a warning if the length
263 of any message exceeds the number specified.
267 .IP "\fB\-\-nullterminate\fR" 4
268 .IX Item "--nullterminate"
270 Terminate message text in \f(CW\*(C`bin\*(C'\fR files by zero. By default they are
271 terminated by \s-1CR/LF.\s0
275 .IP "\fB\-\-hresult_use\fR" 4
276 .IX Item "--hresult_use"
278 Not yet implemented. Instructs \f(CW\*(C`windmc\*(C'\fR to generate an \s-1OLE2\s0 header
279 file, using \s-1HRESULT\s0 definitions. Status codes are used if the flag is not
281 .IP "\fB\-O\fR \fIcodepage\fR" 4
282 .IX Item "-O codepage"
284 .IP "\fB\-\-codepage_out\fR \fIcodepage\fR" 4
285 .IX Item "--codepage_out codepage"
287 Sets the default codepage to be used to output text files. The default
289 .IP "\fB\-r\fR \fIpath\fR" 4
292 .IP "\fB\-\-rcdir\fR \fIpath\fR" 4
293 .IX Item "--rcdir path"
295 The target directory for the generated \f(CW\*(C`rc\*(C'\fR script and the generated
296 \&\f(CW\*(C`bin\*(C'\fR files that the resource compiler script includes. The default
297 is the current directory.
301 .IP "\fB\-\-unicode_in\fR" 4
302 .IX Item "--unicode_in"
304 Specifies that the input file is \s-1UTF16.\s0
308 .IP "\fB\-\-unicode_out\fR" 4
309 .IX Item "--unicode_out"
311 Specifies that messages in the output \f(CW\*(C`bin\*(C'\fR file should be in \s-1UTF16\s0
312 format. This is the default behaviour.
316 .IP "\fB\-\-verbose\fR" 4
323 .IP "\fB\-\-version\fR" 4
326 Prints the version number for \fBwindmc\fR.
327 .IP "\fB\-x\fR \fIpath\fR" 4
330 .IP "\fB\-\-xdgb\fR \fIpath\fR" 4
331 .IX Item "--xdgb path"
333 The path of the \f(CW\*(C`dbg\*(C'\fR C include file that maps message id's to the
334 symbolic name. No such file is generated without specifying the switch.
335 .IP "\fB@\fR\fIfile\fR" 4
337 Read command-line options from \fIfile\fR. The options read are
338 inserted in place of the original @\fIfile\fR option. If \fIfile\fR
339 does not exist, or cannot be read, then the option will be treated
340 literally, and not removed.
342 Options in \fIfile\fR are separated by whitespace. A whitespace
343 character may be included in an option by surrounding the entire
344 option in either single or double quotes. Any character (including a
345 backslash) may be included by prefixing the character to be included
346 with a backslash. The \fIfile\fR may itself contain additional
347 @\fIfile\fR options; any such options will be processed recursively.
349 .IX Header "SEE ALSO"
350 the Info entries for \fIbinutils\fR.
352 .IX Header "COPYRIGHT"
353 Copyright (c) 1991\-2022 Free Software Foundation, Inc.
355 Permission is granted to copy, distribute and/or modify this document
356 under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
357 or any later version published by the Free Software Foundation;
358 with no Invariant Sections, with no Front-Cover Texts, and with no
359 Back-Cover Texts. A copy of the license is included in the
360 section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".