#include "precomp.h"
#include <shellapi.h>
#include <shlwapi.h>
#include <shlwapi_undoc.h>
#include <shlobj_undoc.h>
#include <shlguid_undoc.h>
#include <atlstr.h>
#include <strsafe.h>
Go to the source code of this file.
◆ _ATL_NO_EXCEPTIONS
◆ IContextMenu_Invoke()
Definition at line 27 of file utils.cpp.
32{
33 CMINVOKECOMMANDINFO
info;
38
40
41 if (!pContextMenu)
43
45
51
53 {
55 if (hMenu)
56 {
57 pContextMenu->QueryContextMenu(hMenu, 0, 1,
MAXSHORT,
uFlags | CMF_DEFAULTONLY);
59 if (iDefItem != -1)
61 }
62 }
63
64 if (iDefItem != -1 ||
info.lpVerb)
65 {
67 info.fMask |= CMIC_MASK_FLAG_NO_UI;
69 }
70
71
72
73 if (hMenu)
75
77
79}
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
HMENU WINAPI CreatePopupMenu(void)
UINT WINAPI GetMenuDefaultItem(_In_ HMENU hMenu, _In_ UINT fByPos, _In_ UINT gmdiFlags)
#define IS_INTRESOURCE(i)
HCURSOR WINAPI SetCursor(_In_opt_ HCURSOR)
HCURSOR WINAPI LoadCursorW(_In_opt_ HINSTANCE, _In_ LPCWSTR)
#define MAKEINTRESOURCEA(i)
BOOL WINAPI DestroyMenu(_In_ HMENU)
◆ WINE_DEFAULT_DEBUG_CHANNEL()
WINE_DEFAULT_DEBUG_CHANNEL |
( |
shell |
| ) |
|