1 |
205 |
julius |
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05)
|
2 |
|
|
.\"
|
3 |
|
|
.\" Standard preamble:
|
4 |
|
|
.\" ========================================================================
|
5 |
|
|
.de Sh \" Subsection heading
|
6 |
|
|
.br
|
7 |
|
|
.if t .Sp
|
8 |
|
|
.ne 5
|
9 |
|
|
.PP
|
10 |
|
|
\fB\\$1\fR
|
11 |
|
|
.PP
|
12 |
|
|
..
|
13 |
|
|
.de Sp \" Vertical space (when we can't use .PP)
|
14 |
|
|
.if t .sp .5v
|
15 |
|
|
.if n .sp
|
16 |
|
|
..
|
17 |
|
|
.de Vb \" Begin verbatim text
|
18 |
|
|
.ft CW
|
19 |
|
|
.nf
|
20 |
|
|
.ne \\$1
|
21 |
|
|
..
|
22 |
|
|
.de Ve \" End verbatim text
|
23 |
|
|
.ft R
|
24 |
|
|
.fi
|
25 |
|
|
..
|
26 |
|
|
.\" Set up some character translations and predefined strings. \*(-- will
|
27 |
|
|
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
|
28 |
|
|
.\" double quote, and \*(R" will give a right double quote. \*(C+ will
|
29 |
|
|
.\" give a nicer C++. Capital omega is used to do unbreakable dashes and
|
30 |
|
|
.\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
|
31 |
|
|
.\" nothing in troff, for use with C<>.
|
32 |
|
|
.tr \(*W-
|
33 |
|
|
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
|
34 |
|
|
.ie n \{\
|
35 |
|
|
. ds -- \(*W-
|
36 |
|
|
. ds PI pi
|
37 |
|
|
. if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
|
38 |
|
|
. if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
|
39 |
|
|
. ds L" ""
|
40 |
|
|
. ds R" ""
|
41 |
|
|
. ds C` ""
|
42 |
|
|
. ds C' ""
|
43 |
|
|
'br\}
|
44 |
|
|
.el\{\
|
45 |
|
|
. ds -- \|\(em\|
|
46 |
|
|
. ds PI \(*p
|
47 |
|
|
. ds L" ``
|
48 |
|
|
. ds R" ''
|
49 |
|
|
'br\}
|
50 |
|
|
.\"
|
51 |
|
|
.\" Escape single quotes in literal strings from groff's Unicode transform.
|
52 |
|
|
.ie \n(.g .ds Aq \(aq
|
53 |
|
|
.el .ds Aq '
|
54 |
|
|
.\"
|
55 |
|
|
.\" If the F register is turned on, we'll generate index entries on stderr for
|
56 |
|
|
.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
|
57 |
|
|
.\" entries marked with X<> in POD. Of course, you'll have to process the
|
58 |
|
|
.\" output yourself in some meaningful fashion.
|
59 |
|
|
.ie \nF \{\
|
60 |
|
|
. de IX
|
61 |
|
|
. tm Index:\\$1\t\\n%\t"\\$2"
|
62 |
|
|
..
|
63 |
|
|
. nr % 0
|
64 |
|
|
. rr F
|
65 |
|
|
.\}
|
66 |
|
|
.el \{\
|
67 |
|
|
. de IX
|
68 |
|
|
..
|
69 |
|
|
.\}
|
70 |
|
|
.\"
|
71 |
|
|
.\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
|
72 |
|
|
.\" Fear. Run. Save yourself. No user-serviceable parts.
|
73 |
|
|
. \" fudge factors for nroff and troff
|
74 |
|
|
.if n \{\
|
75 |
|
|
. ds #H 0
|
76 |
|
|
. ds #V .8m
|
77 |
|
|
. ds #F .3m
|
78 |
|
|
. ds #[ \f1
|
79 |
|
|
. ds #] \fP
|
80 |
|
|
.\}
|
81 |
|
|
.if t \{\
|
82 |
|
|
. ds #H ((1u-(\\\\n(.fu%2u))*.13m)
|
83 |
|
|
. ds #V .6m
|
84 |
|
|
. ds #F 0
|
85 |
|
|
. ds #[ \&
|
86 |
|
|
. ds #] \&
|
87 |
|
|
.\}
|
88 |
|
|
. \" simple accents for nroff and troff
|
89 |
|
|
.if n \{\
|
90 |
|
|
. ds ' \&
|
91 |
|
|
. ds ` \&
|
92 |
|
|
. ds ^ \&
|
93 |
|
|
. ds , \&
|
94 |
|
|
. ds ~ ~
|
95 |
|
|
. ds /
|
96 |
|
|
.\}
|
97 |
|
|
.if t \{\
|
98 |
|
|
. ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
|
99 |
|
|
. ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
|
100 |
|
|
. ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
|
101 |
|
|
. ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
|
102 |
|
|
. ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
|
103 |
|
|
. ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
|
104 |
|
|
.\}
|
105 |
|
|
. \" troff and (daisy-wheel) nroff accents
|
106 |
|
|
.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
|
107 |
|
|
.ds 8 \h'\*(#H'\(*b\h'-\*(#H'
|
108 |
|
|
.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
|
109 |
|
|
.ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
|
110 |
|
|
.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
|
111 |
|
|
.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
|
112 |
|
|
.ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
|
113 |
|
|
.ds ae a\h'-(\w'a'u*4/10)'e
|
114 |
|
|
.ds Ae A\h'-(\w'A'u*4/10)'E
|
115 |
|
|
. \" corrections for vroff
|
116 |
|
|
.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
|
117 |
|
|
.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
|
118 |
|
|
. \" for low resolution devices (crt and lpr)
|
119 |
|
|
.if \n(.H>23 .if \n(.V>19 \
|
120 |
|
|
\{\
|
121 |
|
|
. ds : e
|
122 |
|
|
. ds 8 ss
|
123 |
|
|
. ds o a
|
124 |
|
|
. ds d- d\h'-1'\(ga
|
125 |
|
|
. ds D- D\h'-1'\(hy
|
126 |
|
|
. ds th \o'bp'
|
127 |
|
|
. ds Th \o'LP'
|
128 |
|
|
. ds ae ae
|
129 |
|
|
. ds Ae AE
|
130 |
|
|
.\}
|
131 |
|
|
.rm #[ #] #H #V #F C
|
132 |
|
|
.\" ========================================================================
|
133 |
|
|
.\"
|
134 |
|
|
.IX Title "WINDMC 1"
|
135 |
|
|
.TH WINDMC 1 "2009-10-16" "binutils-2.20" "GNU Development Tools"
|
136 |
|
|
.\" For nroff, turn off justification. Always turn off hyphenation; it makes
|
137 |
|
|
.\" way too many mistakes in technical documents.
|
138 |
|
|
.if n .ad l
|
139 |
|
|
.nh
|
140 |
|
|
.SH "NAME"
|
141 |
|
|
windmc \- generates Windows message resources.
|
142 |
|
|
.SH "SYNOPSIS"
|
143 |
|
|
.IX Header "SYNOPSIS"
|
144 |
|
|
.SH "DESCRIPTION"
|
145 |
|
|
.IX Header "DESCRIPTION"
|
146 |
|
|
\&\fBwindmc\fR reads message definitions from an input file (.mc) and
|
147 |
|
|
translate them into a set of output files. The output files may be of
|
148 |
|
|
four kinds:
|
149 |
|
|
.ie n .IP """h""" 4
|
150 |
|
|
.el .IP "\f(CWh\fR" 4
|
151 |
|
|
.IX Item "h"
|
152 |
|
|
A C header file containing the message definitions.
|
153 |
|
|
.ie n .IP """rc""" 4
|
154 |
|
|
.el .IP "\f(CWrc\fR" 4
|
155 |
|
|
.IX Item "rc"
|
156 |
|
|
A resource file compilable by the \fBwindres\fR tool.
|
157 |
|
|
.ie n .IP """bin""" 4
|
158 |
|
|
.el .IP "\f(CWbin\fR" 4
|
159 |
|
|
.IX Item "bin"
|
160 |
|
|
One or more binary files containing the resource data for a specific
|
161 |
|
|
message language.
|
162 |
|
|
.ie n .IP """dbg""" 4
|
163 |
|
|
.el .IP "\f(CWdbg\fR" 4
|
164 |
|
|
.IX Item "dbg"
|
165 |
|
|
A C include file that maps message id's to their symbolic name.
|
166 |
|
|
.PP
|
167 |
|
|
The exact description of these different formats is available in
|
168 |
|
|
documentation from Microsoft.
|
169 |
|
|
.PP
|
170 |
|
|
When \fBwindmc\fR converts from the \f(CW\*(C`mc\*(C'\fR format to the \f(CW\*(C`bin\*(C'\fR
|
171 |
|
|
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
|
172 |
|
|
Windows Message Compiler.
|
173 |
|
|
.SH "OPTIONS"
|
174 |
|
|
.IX Header "OPTIONS"
|
175 |
|
|
.IP "\fB\-a\fR" 4
|
176 |
|
|
.IX Item "-a"
|
177 |
|
|
.PD 0
|
178 |
|
|
.IP "\fB\-\-ascii_in\fR" 4
|
179 |
|
|
.IX Item "--ascii_in"
|
180 |
|
|
.PD
|
181 |
|
|
Specifies that the input file specified is \s-1ANSI\s0. This is the default
|
182 |
|
|
behaviour.
|
183 |
|
|
.IP "\fB\-A\fR" 4
|
184 |
|
|
.IX Item "-A"
|
185 |
|
|
.PD 0
|
186 |
|
|
.IP "\fB\-\-ascii_out\fR" 4
|
187 |
|
|
.IX Item "--ascii_out"
|
188 |
|
|
.PD
|
189 |
|
|
Specifies that messages in the output \f(CW\*(C`bin\*(C'\fR files should be in \s-1ANSI\s0
|
190 |
|
|
format.
|
191 |
|
|
.IP "\fB\-b\fR" 4
|
192 |
|
|
.IX Item "-b"
|
193 |
|
|
.PD 0
|
194 |
|
|
.IP "\fB\-\-binprefix\fR" 4
|
195 |
|
|
.IX Item "--binprefix"
|
196 |
|
|
.PD
|
197 |
|
|
Specifies that \f(CW\*(C`bin\*(C'\fR filenames should have to be prefixed by the
|
198 |
|
|
basename of the source file.
|
199 |
|
|
.IP "\fB\-c\fR" 4
|
200 |
|
|
.IX Item "-c"
|
201 |
|
|
.PD 0
|
202 |
|
|
.IP "\fB\-\-customflag\fR" 4
|
203 |
|
|
.IX Item "--customflag"
|
204 |
|
|
.PD
|
205 |
|
|
Sets the customer bit in all message id's.
|
206 |
|
|
.IP "\fB\-C\fR \fIcodepage\fR" 4
|
207 |
|
|
.IX Item "-C codepage"
|
208 |
|
|
.PD 0
|
209 |
|
|
.IP "\fB\-\-codepage_in\fR \fIcodepage\fR" 4
|
210 |
|
|
.IX Item "--codepage_in codepage"
|
211 |
|
|
.PD
|
212 |
|
|
Sets the default codepage to be used to convert input file to \s-1UTF16\s0. The
|
213 |
|
|
default is ocdepage 1252.
|
214 |
|
|
.IP "\fB\-d\fR" 4
|
215 |
|
|
.IX Item "-d"
|
216 |
|
|
.PD 0
|
217 |
|
|
.IP "\fB\-\-decimal_values\fR" 4
|
218 |
|
|
.IX Item "--decimal_values"
|
219 |
|
|
.PD
|
220 |
|
|
Outputs the constants in the header file in decimal. Default is using
|
221 |
|
|
hexadecimal output.
|
222 |
|
|
.IP "\fB\-e\fR \fIext\fR" 4
|
223 |
|
|
.IX Item "-e ext"
|
224 |
|
|
.PD 0
|
225 |
|
|
.IP "\fB\-\-extension\fR \fIext\fR" 4
|
226 |
|
|
.IX Item "--extension ext"
|
227 |
|
|
.PD
|
228 |
|
|
The extension for the header file. The default is .h extension.
|
229 |
|
|
.IP "\fB\-F\fR \fItarget\fR" 4
|
230 |
|
|
.IX Item "-F target"
|
231 |
|
|
.PD 0
|
232 |
|
|
.IP "\fB\-\-target\fR \fItarget\fR" 4
|
233 |
|
|
.IX Item "--target target"
|
234 |
|
|
.PD
|
235 |
|
|
Specify the \s-1BFD\s0 format to use for a bin file as output. This
|
236 |
|
|
is a \s-1BFD\s0 target name; you can use the \fB\-\-help\fR option to see a list
|
237 |
|
|
of supported targets. Normally \fBwindmc\fR will use the default
|
238 |
|
|
format, which is the first one listed by the \fB\-\-help\fR option.
|
239 |
|
|
.IP "\fB\-h\fR \fIpath\fR" 4
|
240 |
|
|
.IX Item "-h path"
|
241 |
|
|
.PD 0
|
242 |
|
|
.IP "\fB\-\-headerdir\fR \fIpath\fR" 4
|
243 |
|
|
.IX Item "--headerdir path"
|
244 |
|
|
.PD
|
245 |
|
|
The target directory of the generated header file. The default is the
|
246 |
|
|
current directory.
|
247 |
|
|
.IP "\fB\-H\fR" 4
|
248 |
|
|
.IX Item "-H"
|
249 |
|
|
.PD 0
|
250 |
|
|
.IP "\fB\-\-help\fR" 4
|
251 |
|
|
.IX Item "--help"
|
252 |
|
|
.PD
|
253 |
|
|
Displays a list of command line options and then exits.
|
254 |
|
|
.IP "\fB\-m\fR \fIcharacters\fR" 4
|
255 |
|
|
.IX Item "-m characters"
|
256 |
|
|
.PD 0
|
257 |
|
|
.IP "\fB\-\-maxlength\fR \fIcharacters\fR" 4
|
258 |
|
|
.IX Item "--maxlength characters"
|
259 |
|
|
.PD
|
260 |
|
|
Instructs \fBwindmc\fR to generate a warning if the length
|
261 |
|
|
of any message exceeds the number specified.
|
262 |
|
|
.IP "\fB\-n\fR" 4
|
263 |
|
|
.IX Item "-n"
|
264 |
|
|
.PD 0
|
265 |
|
|
.IP "\fB\-\-nullterminate\fR" 4
|
266 |
|
|
.IX Item "--nullterminate"
|
267 |
|
|
.PD
|
268 |
|
|
Terminate message text in \f(CW\*(C`bin\*(C'\fR files by zero. By default they are
|
269 |
|
|
terminated by \s-1CR/LF\s0.
|
270 |
|
|
.IP "\fB\-o\fR" 4
|
271 |
|
|
.IX Item "-o"
|
272 |
|
|
.PD 0
|
273 |
|
|
.IP "\fB\-\-hresult_use\fR" 4
|
274 |
|
|
.IX Item "--hresult_use"
|
275 |
|
|
.PD
|
276 |
|
|
Not yet implemented. Instructs \f(CW\*(C`windmc\*(C'\fR to generate an \s-1OLE2\s0 header
|
277 |
|
|
file, using \s-1HRESULT\s0 definitions. Status codes are used if the flag is not
|
278 |
|
|
specified.
|
279 |
|
|
.IP "\fB\-O\fR \fIcodepage\fR" 4
|
280 |
|
|
.IX Item "-O codepage"
|
281 |
|
|
.PD 0
|
282 |
|
|
.IP "\fB\-\-codepage_out\fR \fIcodepage\fR" 4
|
283 |
|
|
.IX Item "--codepage_out codepage"
|
284 |
|
|
.PD
|
285 |
|
|
Sets the default codepage to be used to output text files. The default
|
286 |
|
|
is ocdepage 1252.
|
287 |
|
|
.IP "\fB\-r\fR \fIpath\fR" 4
|
288 |
|
|
.IX Item "-r path"
|
289 |
|
|
.PD 0
|
290 |
|
|
.IP "\fB\-\-rcdir\fR \fIpath\fR" 4
|
291 |
|
|
.IX Item "--rcdir path"
|
292 |
|
|
.PD
|
293 |
|
|
The target directory for the generated \f(CW\*(C`rc\*(C'\fR script and the generated
|
294 |
|
|
\&\f(CW\*(C`bin\*(C'\fR files that the resource compiler script includes. The default
|
295 |
|
|
is the current directory.
|
296 |
|
|
.IP "\fB\-u\fR" 4
|
297 |
|
|
.IX Item "-u"
|
298 |
|
|
.PD 0
|
299 |
|
|
.IP "\fB\-\-unicode_in\fR" 4
|
300 |
|
|
.IX Item "--unicode_in"
|
301 |
|
|
.PD
|
302 |
|
|
Specifies that the input file is \s-1UTF16\s0.
|
303 |
|
|
.IP "\fB\-U\fR" 4
|
304 |
|
|
.IX Item "-U"
|
305 |
|
|
.PD 0
|
306 |
|
|
.IP "\fB\-\-unicode_out\fR" 4
|
307 |
|
|
.IX Item "--unicode_out"
|
308 |
|
|
.PD
|
309 |
|
|
Specifies that messages in the output \f(CW\*(C`bin\*(C'\fR file should be in \s-1UTF16\s0
|
310 |
|
|
format. This is the default behaviour.
|
311 |
|
|
.IP "\fB\-v\fR" 4
|
312 |
|
|
.IX Item "-v"
|
313 |
|
|
.PD 0
|
314 |
|
|
.IP "\fB\-\-verbose\fR" 4
|
315 |
|
|
.IX Item "--verbose"
|
316 |
|
|
.PD
|
317 |
|
|
Enable verbose mode.
|
318 |
|
|
.IP "\fB\-V\fR" 4
|
319 |
|
|
.IX Item "-V"
|
320 |
|
|
.PD 0
|
321 |
|
|
.IP "\fB\-\-version\fR" 4
|
322 |
|
|
.IX Item "--version"
|
323 |
|
|
.PD
|
324 |
|
|
Prints the version number for \fBwindmc\fR.
|
325 |
|
|
.IP "\fB\-x\fR \fIpath\fR" 4
|
326 |
|
|
.IX Item "-x path"
|
327 |
|
|
.PD 0
|
328 |
|
|
.IP "\fB\-\-xdgb\fR \fIpath\fR" 4
|
329 |
|
|
.IX Item "--xdgb path"
|
330 |
|
|
.PD
|
331 |
|
|
The path of the \f(CW\*(C`dbg\*(C'\fR C include file that maps message id's to the
|
332 |
|
|
symbolic name. No such file is generated without specifying the switch.
|
333 |
|
|
.IP "\fB@\fR\fIfile\fR" 4
|
334 |
|
|
.IX Item "@file"
|
335 |
|
|
Read command-line options from \fIfile\fR. The options read are
|
336 |
|
|
inserted in place of the original @\fIfile\fR option. If \fIfile\fR
|
337 |
|
|
does not exist, or cannot be read, then the option will be treated
|
338 |
|
|
literally, and not removed.
|
339 |
|
|
.Sp
|
340 |
|
|
Options in \fIfile\fR are separated by whitespace. A whitespace
|
341 |
|
|
character may be included in an option by surrounding the entire
|
342 |
|
|
option in either single or double quotes. Any character (including a
|
343 |
|
|
backslash) may be included by prefixing the character to be included
|
344 |
|
|
with a backslash. The \fIfile\fR may itself contain additional
|
345 |
|
|
@\fIfile\fR options; any such options will be processed recursively.
|
346 |
|
|
.SH "SEE ALSO"
|
347 |
|
|
.IX Header "SEE ALSO"
|
348 |
|
|
the Info entries for \fIbinutils\fR.
|
349 |
|
|
.SH "COPYRIGHT"
|
350 |
|
|
.IX Header "COPYRIGHT"
|
351 |
|
|
Copyright (c) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
352 |
|
|
2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
|
353 |
|
|
.PP
|
354 |
|
|
Permission is granted to copy, distribute and/or modify this document
|
355 |
|
|
under the terms of the \s-1GNU\s0 Free Documentation License, Version 1.3
|
356 |
|
|
or any later version published by the Free Software Foundation;
|
357 |
|
|
with no Invariant Sections, with no Front-Cover Texts, and with no
|
358 |
|
|
Back-Cover Texts. A copy of the license is included in the
|
359 |
|
|
section entitled \*(L"\s-1GNU\s0 Free Documentation License\*(R".
|