4 #define PH_EMENU_DISABLED 0x1
5 #define PH_EMENU_CHECKED 0x2
6 #define PH_EMENU_HIGHLIGHT 0x4
7 #define PH_EMENU_MENUBARBREAK 0x8
8 #define PH_EMENU_MENUBREAK 0x10
9 #define PH_EMENU_DEFAULT 0x20
10 #define PH_EMENU_MOUSESELECT 0x40
11 #define PH_EMENU_RADIOCHECK 0x80
13 #define PH_EMENU_SEPARATECHECKSPACE 0x100000
14 #define PH_EMENU_SEPARATOR 0x200000
16 #define PH_EMENU_TEXT_OWNED 0x80000000
17 #define PH_EMENU_BITMAP_OWNED 0x40000000
21 typedef VOID (NTAPI *PPH_EMENU_ITEM_DELETE_FUNCTION)(
54 _In_ PPH_EMENU_ITEM
Item
57 #define PH_EMENU_FIND_DESCEND 0x1
58 #define PH_EMENU_FIND_STARTSWITH 0x2
59 #define PH_EMENU_FIND_LITERAL 0x4
63 _In_ PPH_EMENU_ITEM
Item,
70 _In_ PPH_EMENU_ITEM
Item,
74 _Out_opt_ PPH_EMENU_ITEM *FoundParent,
75 _Out_opt_ PULONG FoundIndex
80 _In_ PPH_EMENU_ITEM
Parent,
81 _In_ PPH_EMENU_ITEM
Item
86 _Inout_ PPH_EMENU_ITEM
Parent,
87 _Inout_ PPH_EMENU_ITEM
Item,
93 _Inout_opt_ PPH_EMENU_ITEM
Parent,
94 _In_opt_ PPH_EMENU_ITEM
Item,
100 _Inout_ PPH_EMENU_ITEM
Parent
113 #define PH_EMENU_CONVERT_ID 0x1
121 _Out_ PPH_EMENU_DATA Data
125 _Inout_ PPH_EMENU_DATA Data
129 _In_ PPH_EMENU_ITEM Menu,
131 _Inout_opt_ PPH_EMENU_DATA Data
135 _In_ HMENU MenuHandle,
136 _In_ PPH_EMENU_ITEM Menu,
138 _Inout_opt_ PPH_EMENU_DATA Data
142 _Inout_ PPH_EMENU_ITEM MenuItem,
143 _In_ HMENU MenuHandle
148 _Inout_ PPH_EMENU_ITEM MenuItem,
149 _In_ HINSTANCE InstanceHandle,
151 _In_ ULONG SubMenuIndex
154 #define PH_EMENU_SHOW_SEND_COMMAND 0x1
155 #define PH_EMENU_SHOW_LEFTRIGHT 0x2
160 _In_ HWND WindowHandle,
171 _Inout_ PPH_EMENU_ITEM
Item,
178 _Inout_ PPH_EMENU_ITEM
Item,
188 _In_ PPH_EMENU_ITEM
Item,
193 #define PH_EMENU_MODIFY_TEXT 0x1
194 #define PH_EMENU_MODIFY_BITMAP 0x2
198 _Inout_ PPH_EMENU_ITEM
Item,
199 _In_ ULONG ModifyFlags,
200 _In_ ULONG OwnedFlags,
202 _In_opt_ HBITMAP Bitmap