WINDMC(1)
π NAME π
windmc β she generates Windows message resources π
(she lives in the GNU Development Tools family, manual section 1, and yes she's that girl)
πΈ SYNOPSIS πΈ
windmc [options] input-file
β¨ DESCRIPTION β¨
Okay so here's the vibe: windmc reads message definitions out of an input file (the .mc one) and translates them into a whole lil squad of output files. And those output files come in four delicious flavors:
"h"β a C header file holding all the message definitions. π«Ά"rc"β a resource file that thewindrestool can compile. slay."bin"β one or more binary files carrying the resource data for a specific message language. π₯"dbg"β a C include file that maps message id's to their symbolic name. iconic.
The exact description of these different formats is available in documentation from Microsoft. (Not me gatekeeping β that's just where it lives. π)
When windmc converts from the "mc" format to the "bin" format, "rc", "h", and the optional "dbg", she is literally acting like the Windows Message Compiler. main character energy fr fr.
π OPTIONS π
-a,--ascii_inβ says the input file you gave her is ASCII. This is the default behaviour, bestie, no cap.-A,--ascii_outβ says the messages inside the output"bin"files should be in ASCII format.-b,--binprefixβ says the"bin"filenames gotta be prefixed by the basename of the source file.-c,--customflagβ sets the customer bit in all message id's.-Ccodepage,--codepage_incodepage β sets the default codepage used to convert the input file to UTF16. The default is ocdepage1252. (yes the docs really say "ocdepage", we don't fix typos in this house, we just vibe π)-d,--decimal_valuesβ outputs the constants in the header file in decimal. Default is using hexadecimal output.-eext,--extensionext β the extension for the header file. The default is the.hextension.-Ftarget,--targettarget β specify the BFD format to use for a bin file as output. This is a BFD target name; you can use the--helpoption to see a list of supported targets. Normallywindmcwill use the default format, which is the first one listed by the--helpoption. β¨-hpath,--headerdirpath β the target directory of the generated header file. The default is the current directory.-H,--helpβ displays a list of command-line options and then exits. your fave, honestly.-mcharacters,--maxlengthcharacters β tellswindmcto generate a warning if the length of any message exceeds the number specified. she's just looking out for you π«Ά-n,--nullterminateβ terminate message text in"bin"files by zero. By default they are terminated by CR/LF.-o,--hresult_useβ Not yet implemented. Instructswindmcto generate an OLE2 header file, using HRESULT definitions. Status codes are used if the flag is not specified.-Ocodepage,--codepage_outcodepage β sets the default codepage to be used to output text files. The default is ocdepage1252. (again. she said it twice. we respect it. π)-rpath,--rcdirpath β the target directory for the generated"rc"script and the generated"bin"files that the resource compiler script includes. The default is the current directory.-u,--unicode_inβ says the input file is UTF16.-U,--unicode_outβ says the messages in the output"bin"file should be in UTF16 format. This is the default behaviour, queen behavior π-v,--verboseβ enable verbose mode. she will yap (affectionately).-V,--versionβ prints the version number forwindmc. β-xpath,--xdgbpath β the path of the"dbg"C include file that maps message id's to the symbolic name. No such file is generated without specifying the switch. like, none. zero. nada. π@file β read command-line options from file. The options read are inserted in place of the original@file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed.
Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively. π (recursion, we love her)
π¦ SEE ALSO π¦
- the Info entries for
binutils.
π COPYRIGHT π
Copyright (c) 1991-2026 Free Software Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".
okay that's the whole thing, you ate that reading bestie π«Άπ this was binutils-2.47, from 2026-09-12, page WINDMC(1) β go forth and generate those Windows message resources, periodt β¨π
π¦ where this page comes from
- ubuntu stonking: binutils-bpf 2.47-6ubuntu1+2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms