WINDMC(1)
π NAME π
okay so bestie, meet windmc from the GNU Development Tools lineup β she generates Windows message resources. that's the whole gig. slay.
β¨ SYNOPSIS β¨
windmc [options] input-file
π DESCRIPTION π
so windmc reads message definitions out of an input file (the .mc file, iykyk) and translates them into a whole lil set of output files. and there are four kinds of output files, periodt:
- "h" β a C header file that contains the message definitions.
- "rc" β a resource file that's compilable by the
windrestool. - "bin" β one or more binary files holding the resource data for a specific message language.
- "dbg" β a C include file that maps message id's to their symbolic name.
the exact description of these different formats lives in documentation from Microsoft, bestie, not here. π
when windmc converts from the mc format to the bin format, rc, h, and the optional dbg, she's acting like the Windows Message Compiler. main character behavior honestly. π
π OPTIONS π
-a,--ascii_inβ says the input file you gave her is ASCII. this is the default behavior, no cap. β¨-A,--ascii_outβ says the messages in the outputbinfiles should be in ASCII format.-b,--binprefixβ says thebinfilenames gotta be prefixed by the basename of the source file.-c,--customflagβ sets the customer bit in all message id's. very demure.-C codepage,--codepage_in codepageβ sets the default codepage used to convert the input file to UTF16. the default is ocdepage1252. (yes the manpage literally says "ocdepage" β we don't make the rules π)-d,--decimal_valuesβ outputs the constants in the header file in decimal. default is hexadecimal output.-e ext,--extension extβ the extension for the header file. default is the.hextension.-F target,--target targetβ 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. normally windmc uses the default format, which is the first one listed by the--helpoption. π¦-h path,--headerdir pathβ the target directory of the generated header file. default is the current directory.-H,--helpβ displays a list of command-line options and then exits. bye bestie π«Ά-m characters,--maxlength charactersβ tells windmc to generate a warning if the length of any message exceeds the number you specified. she's watching π-n,--nullterminateβ terminate message text inbinfiles by zero. by default they're terminated by CR/LF.-o,--hresult_useβ not yet implemented, bestie, don't get your hopes up. instructswindmcto generate an OLE2 header file, using HRESULT definitions. status codes are used if the flag isn't specified.-O codepage,--codepage_out codepageβ sets the default codepage used to output text files. the default is ocdepage1252. (again with the ocdepage, iconic honestly π)-r path,--rcdir pathβ the target directory for the generatedrcscript and the generatedbinfiles that the resource compiler script includes. default is the current directory.-u,--unicode_inβ says the input file is UTF16.-U,--unicode_outβ says the messages in the outputbinfile should be in UTF16 format. this is the default behavior. β-v,--verboseβ enable verbose mode. she will yap (affectionately).-V,--versionβ prints the version number for windmc.-x path,--xdgb pathβ the path of thedbgC include file that maps message id's to the symbolic name. no such file is generated without specifying the switch. no switch, no file, periodt.@fileβ read command-line options from file. the options read are inserted in place of the original@fileoption. if file doesn't exist, or can't be read, then the option gets treated literally, and is 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
@fileoptions; any such options will be processed recursively. it's giving nesting doll energy πͺ
- 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
π SEE ALSO π
the Info entries for binutils. go read them bestie, they're right there. π
π COPYRIGHT π
Copyright (c) 1991-2025 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 π β¨ this came from binutils-2.44, dated 2025-03-28 β go forth and compile, bestie, mwah ππ¦π
π¦ where this page comes from
- debian trixie: binutils-mingw-w64-i686 2.44-3+12+b1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms