WINDMC(1)
π WINDMC(1) β GNU Development Tools
okay so bestie, welcome to the windmc page β this is the gen-z tour of a very niche binutils tool and honestly it's giving main character energy for Windows message resources. β¨
πΈ NAME πΈ
windmc β the thing that generates Windows message resources. that's the whole vibe. π
π¦ SYNOPSIS π¦
windmc [options] input-file
literally that's it. options, then your input file. slay.
β¨ DESCRIPTION β¨
so windmc reads message definitions from an input file (.mc, iykyk) and translates them into a whole little family of output files. and when we say family we mean four kinds, bestie:
hβ a C header file holding the message definitions. πrcβ a resource file that's compilable by thewindrestool. π οΈbinβ one or more binary files containing the resource data for a specific message language. π₯dbgβ a C include file that maps message ids to their symbolic name. πΊοΈ
the exact description of these different formats lives in documentation from Microsoft (not us, we're just the messenger π«Ά).
when windmc converts from the mc format to the bin format, rc, h, and optional dbg, it is acting like the Windows Message Compiler. yes, that's the whole job. no cap.
π OPTIONS π
one bullet per flag, no skipping, we don't do that here. π
-a,--ascii_inβ says your input file is ASCII. this is the default behaviour, so it's kind of the "no thoughts head empty" option. π-A,--ascii_outβ says the messages in the outputbinfiles should be in ASCII format.-b,--binprefixβ saysbinfilenames should have to be prefixed by the basename of the source file. cute little name tag. π·οΈ-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 codepage1252(the page literally spells itocdepage 1252and we're keeping that typo, it's iconic π).-d,--decimal_valuesβ outputs the constants in the header file in decimal. default is hexadecimal output, so this is your "actually I want it the other way" button.-eext,--extensionext β the extension for the header file. default is the.hextension.-Ftarget,--targettarget β specifies 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. normallywindmcuses the default format, which is the first one listed by--help. π―-hpath,--headerdirpath β the target directory of the generated header file. default is the current directory.-H,--helpβ displays a list of command-line options and then dips. π-mcharacters,--maxlengthcharacters β tellswindmcto generate a warning if the length of any message exceeds the number you specified. a little vibe check on your message lengths. β οΈ-n,--nullterminateβ terminates message text inbinfiles with zero. by default they're terminated by CR/LF instead.-o,--hresult_useβ not yet implemented, bestie. 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 used to output text files. the default is codepage1252.-rpath,--rcdirpath β the target directory for the generatedrcscript and the generatedbinfiles that the resource compiler script includes. default is the current directory.-u,--unicode_inβ says your input file is UTF16.-U,--unicode_outβ says the messages in the outputbinfile should be in UTF16 format. this is the default behaviour. π-v,--verboseβ enable verbose mode. she talks more. π£οΈ-V,--versionβ prints the version number forwindmc.-xpath,--xdgbpath β the path of thedbgC include file that maps message id's to the symbolic name. no such file is generated without specifying this switch β so if you want the map, you gotta ask for the map. πΊοΈ@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. π
π SEE ALSO π
the Info entries for binutils. go read 'em, they're right there. π
π 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 page, you ate that. this was binutils-2.47, dated 2026-07-30, and it's a WINDMC(1) moment β periodt. π
β¨
π¦ where this page comes from
- arch rolling: avr-binutils 2.47-1 Β· GPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms