From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:WIM" |
|---|
| claim | "The WIM file header is 208 bytes: magic MSWIM (or WLPWM for wimlib's pipable variant), header size, version, flags, chunk size, GUID, part number and count, image count, four resource headers (blob table, XML, boot metadata, integrity) and a boot index, packed." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "WIM versions 0x10D00 and 0xE00" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "wim_header_disk" |
|---|
| size | "208" |
|---|
| endianness | "little" |
|---|
| fields | | offset | "0x0" |
|---|
| size | 8 |
|---|
| type | "uint8_t[8]" |
|---|
| name | "magic" |
|---|
| notes | "4D 53 57 49 4D 00 00 00 (MSWIM); wimlib pipable WIMs use 57 4C 50 57 4D 00 00 00 (WLPWM)" |
|---|
|
| offset | "0x8" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "hdr_size" |
|---|
| notes | "208" |
|---|
|
| offset | "0xC" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "wim_version" |
|---|
| notes | "0x10D00 default, 0xE00 solid/LZMS" |
|---|
|
| offset | "0x10" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "wim_flags" |
|---|
| bits | |
|
|
| bit | "6" |
|---|
| name | "WRITE_IN_PROGRESS" |
|---|
|
|
| bit | "17" |
|---|
| name | "COMPRESS_XPRESS" |
|---|
|
| bit | "18" |
|---|
| name | "COMPRESS_LZX" |
|---|
|
| bit | "19" |
|---|
| name | "COMPRESS_LZMS" |
|---|
| notes | "only valid with version 0xE00" |
|---|
|
| bit | "21" |
|---|
| name | "COMPRESS_XPRESS_2" |
|---|
|
|
|---|
|
| offset | "0x14" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "chunk_size" |
|---|
| notes | "0 if uncompressed" |
|---|
|
| offset | "0x18" |
|---|
| size | 16 |
|---|
| type | "uint8_t[16]" |
|---|
| name | "guid" |
|---|
|
| offset | "0x28" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "part_number" |
|---|
|
| offset | "0x2A" |
|---|
| size | 2 |
|---|
| type | "uint16_t" |
|---|
| name | "total_parts" |
|---|
|
| offset | "0x2C" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "image_count" |
|---|
|
| offset | "0x30" |
|---|
| size | 24 |
|---|
| type | "uint8_t[24]" |
|---|
| name | "blob_table_reshdr" |
|---|
|
| offset | "0x48" |
|---|
| size | 24 |
|---|
| type | "uint8_t[24]" |
|---|
| name | "xml_data_reshdr" |
|---|
|
| offset | "0x60" |
|---|
| size | 24 |
|---|
| type | "uint8_t[24]" |
|---|
| name | "boot_metadata_reshdr" |
|---|
|
| offset | "0x78" |
|---|
| size | 4 |
|---|
| type | "uint32_t" |
|---|
| name | "boot_idx" |
|---|
|
| offset | "0x7C" |
|---|
| size | 24 |
|---|
| type | "uint8_t[24]" |
|---|
| name | "integrity_table_reshdr" |
|---|
|
| offset | "0x94" |
|---|
| size | 60 |
|---|
| type | "uint8_t[60]" |
|---|
| name | "unused" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "struct wim_header_disk with its +offset comments; version and flag defines" |
|---|
| repo | "https://github.com/ebiggers/wimlib" |
|---|
| commit | "cd5e231c348c255ae5088873b5a66ee0eb96fa07" |
|---|
| path | "include/wimlib/header.h" |
|---|
| lines | "12-199" |
|---|
|
| type | "source" |
|---|
| detail | "WIM_MAGIC and PWM_MAGIC defines, WIM_HDR_FLAG_* values (0x20000, 0x40000, 0x80000 for the three compression flags, 0x200000 XPRESS_2)" |
|---|
| repo | "https://github.com/ebiggers/wimlib" |
|---|
| commit | "cd5e231c348c255ae5088873b5a66ee0eb96fa07" |
|---|
| path | "include/wimlib/header.h" |
|---|
| lines | "27-60, 138-186" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "WIM header" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T01:30:08.599Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:47:15.190Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read include/wimlib/header.h at the cited commit: WIM_HEADER_DISK_SIZE 208, WIM_VERSION_DEFAULT 0x10d00, WIM_VERSION_SOLID 0xe00, flag values (COMPRESSION 0x2, READONLY 0x4, SPANNED 0x8, WRITE_IN_PROGRESS 0x40, RP_FIX 0x80, XPRESS 0x20000, LZX 0x40000, LZMS 0x80000, XPRESS_2 0x200000); resource header 24 bytes, offsets sum to 208 with 60 unused. Matches." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T08:02:22.408Z" |
|---|
| summary | "magic has a second value: wimlib writes and accepts PWM_MAGIC 'WLPWM' for its pipable WIMs; also names the reserved/other flag bits" |
|---|
| changed | | "claim" |
| "data" |
| "evidence" |
|
|---|
|
|
|---|