Introduction
The MUI resource technology, available in Windows Vista and later, stores
language-specific resource files separately from the application code binary, so that
a code change does not affect the resources, and the resources of several languages
can be deployed together or separately. Microsoft describes the user interface
elements as menus, dialog boxes, help strings and other localized resources. When
built with it, the language-specific files have the extension .mui. The
file of language-neutral code, the “LN file”, is described as a Win32
PE file; the pages consulted do not say what
the format of a .mui file is. The explorer reads a file dropped here as a PE file and
shows its resource tree.
What is particular: how the files go together
- Names and folders. The language-specific files of an LN file all
share one name, formed by adding
.muito the full file name, with its extension, of the LN file: an LN fileMyfile.dllhas language-specific files namedMyfile.dll.mui. They live in subfolders of the folder that holds the LN file, and each folder name reflects the language. The LN file holds executable code and the language-neutral resources shared by all language versions. - Association. The files are tied together by resource
configuration data, including a checksum, which the build puts in an
RC Configsection of the LN file and of each language-specific file. The resource loader uses the checksum to verify that the files hold the same version of the resources, and checks the language in the language-specific file against its folder name; it does not load a resource file if the association does not hold. The main checksum is calculated from the major and minor version numbers and the case-sensitive file name, taken from the version resource; a service checksum, calculated from the localizable resources, selects the version of the language-specific file. - Tools. The MUIRCT utility builds an LN file and its language-specific files and can show the configuration data in readable form; on Windows Vista and later the resource compiler also builds files by this technology.
Not described
Unknown
- Container and layout: the page consulted does not say what kind
of file a .mui file is, nor the layout of the
RC Configdata (its type name and fields); the explorer shows it only as a raw resource. - Loading: how the system chooses the language folder at run time is not described by the page consulted.
Links
Software
Reference
- MUI Resource Management – the MUI resource technology, file naming, checksums and RC Config
- PE Format – Microsoft’s specification, including the resource section