From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "struct" |
|---|
| subject | "Format:Windows menu resource (RT MENU)" |
|---|
| claim | "RT_MENU starts with u16 version (0 classic, 1 MENUEX) and u16 offset to skip. Classic items: u16 flags (MF_POPUP 0x10 has no id and is followed by children, MF_END 0x80 ends the list), u16 id unless popup, UTF-16 text. MENUEX items: u32 type, u32 state, u32 id, u16 resinfo (bit0 popup, 0x80 end), WORD-aligned UTF-16 text, DWORD align, and a u32 help id before a popup's children." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Windows RT_MENU resources" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "MENUEX_TEMPLATE_ITEM" |
|---|
| size_min | 18 |
|---|
| fields | | offset | 0 |
|---|
| name | "fType" |
|---|
| type | "u32" |
|---|
|
| offset | 4 |
|---|
| name | "fState" |
|---|
| type | "u32" |
|---|
|
| offset | 8 |
|---|
| name | "wID" |
|---|
| type | "u32" |
|---|
|
| offset | 12 |
|---|
| name | "resInfo" |
|---|
| type | "u16" |
|---|
|
|
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "MENU_ParseResource, MENUEX_ParseResource and LoadMenuIndirectW (version 0 or 1, offset word)" |
|---|
| repo | "https://github.com/wine-mirror/wine" |
|---|
| commit | "7298a818b79446bae153b8d5aa27235ab3703bf9" |
|---|
| path | "dlls/user32/menu.c" |
|---|
| lines | "70-170, 575-610" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Menu item layouts" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T16:08:04.270Z" |
|---|
| verifications | |
|---|