34 while (*p1 && *p2 && *p1 == *p2) { p1++; p2++; }
45 IEnumOLEVERB_AddRef(iface);
68 ok(fetched ==
NULL,
"got %p\n", fetched);
76 verbs->grfAttribs = OLEVERBATTRIB_ONCONTAINERMENU;
77 if (fetched) *fetched = 1;
86 ok(0,
"unexpected call\n");
92 ok(0,
"unexpected call\n");
98 ok(0,
"unexpected call\n");
118 IOleObject_AddRef(iface);
138 ok(0,
"unexpected call\n");
144 ok(0,
"unexpected call\n");
149 LPCOLESTR containerObj)
151 ok(0,
"unexpected call\n");
157 ok(0,
"unexpected call\n");
163 ok(0,
"unexpected call\n");
170 ok(0,
"unexpected call\n");
177 ok(0,
"unexpected call\n");
183 ok(0,
"unexpected call\n");
190 ok(0,
"unexpected call\n");
207 ok(0,
"unexpected call\n");
213 ok(0,
"unexpected call\n");
219 ok(0,
"unexpected call\n");
227 ok(formoftype == USERCLASSTYPE_SHORT,
"got %d\n", formoftype);
235 ok(0,
"unexpected call\n");
241 ok(0,
"unexpected call\n");
247 ok(0,
"unexpected call\n");
253 ok(0,
"unexpected call\n");
259 ok(0,
"unexpected call\n");
265 ok(0,
"unexpected call\n");
271 ok(0,
"unexpected call\n");
306 static const WCHAR cadabraW[] = {
'c',
'a',
'd',
'a',
'b',
'r',
'a',0};
307 HMENU hMenu, verbmenu;
316 verbmenu = (
HMENU)0xdeadbeef;
319 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
348 verbmenu = (
HMENU)0xdeadbeef;
352 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
360 verbmenu = (
HMENU)0xdeadbeef;
363 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
379 verbmenu = (
HMENU)0xdeadbeef;
382 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
387 info.dwTypeData = buffW;
398 verbmenu = (
HMENU)0xdeadbeef;
402 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
408 info.dwTypeData = buffW;
415 ok(
info.fState == 0,
"got state 0x%08x\n",
info.fState);
432 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
440 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
449 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
459 info.dwTypeData = buffW;
471 ok(verbmenu ==
NULL,
"got %p\n", verbmenu);
477 info.dwTypeData = buffW;
int WINAPI lstrcmpW(LPCWSTR str1, LPCWSTR str2)
GLuint GLuint GLsizei count
GLsizei GLenum GLboolean sink
LPVOID WINAPI CoTaskMemAlloc(SIZE_T size)
static const WCHAR testW[]
static IActiveScriptSite * site
static HRESULT WINAPI oleobject_SetMoniker(IOleObject *iface, DWORD whichmoniker, IMoniker *mk)
static HRESULT WINAPI oleobject_GetUserClassID(IOleObject *iface, CLSID *clsid)
static HRESULT WINAPI oleobject_DoVerb(IOleObject *iface, LONG verb, MSG *msg, IOleClientSite *activesite, LONG index, HWND hwndParent, LPCRECT rect)
static HRESULT WINAPI oleobject_GetExtent(IOleObject *iface, DWORD aspect, SIZEL *size)
static HRESULT WINAPI oleobject_Close(IOleObject *iface, DWORD saveopt)
static HRESULT WINAPI oleobject_Advise(IOleObject *iface, IAdviseSink *sink, DWORD *connection)
static HRESULT WINAPI oleobject_GetUserType(IOleObject *iface, DWORD formoftype, LPOLESTR *usertype)
static HRESULT WINAPI oleobject_Unadvise(IOleObject *iface, DWORD connection)
static ULONG WINAPI oleobject_AddRef(IOleObject *iface)
static BOOL g_enumverbsfail
static ULONG WINAPI enumverbs_AddRef(IEnumOLEVERB *iface)
static IOleObjectVtbl oleobjectvtbl
static ULONG WINAPI oleobject_Release(IOleObject *iface)
static HRESULT WINAPI oleobject_SetHostNames(IOleObject *iface, LPCOLESTR containerapp, LPCOLESTR containerObj)
static HRESULT WINAPI oleobject_SetClientSite(IOleObject *iface, IOleClientSite *site)
static HRESULT WINAPI oleobject_GetClientSite(IOleObject *iface, IOleClientSite **site)
static HRESULT WINAPI oleobject_GetMoniker(IOleObject *iface, DWORD assign, DWORD whichmoniker, IMoniker **mk)
static void test_OleUIAddVerbMenu(void)
static HRESULT WINAPI oleobject_QueryInterface(IOleObject *iface, REFIID riid, void **ppv)
static ULONG WINAPI enumverbs_Release(IEnumOLEVERB *iface)
static HRESULT WINAPI enumverbs_Reset(IEnumOLEVERB *iface)
static HRESULT WINAPI oleobject_EnumAdvise(IOleObject *iface, IEnumSTATDATA **enumadvise)
static IEnumOLEVERB enumverbs
static HRESULT WINAPI enumverbs_Next(IEnumOLEVERB *iface, ULONG count, OLEVERB *verbs, ULONG *fetched)
static HRESULT WINAPI oleobject_EnumVerbs(IOleObject *iface, IEnumOLEVERB **enumverb)
static const WCHAR verbW[]
static HRESULT WINAPI oleobject_GetMiscStatus(IOleObject *iface, DWORD aspect, DWORD *status)
static HRESULT WINAPI oleobject_GetClipboardData(IOleObject *iface, DWORD reserved, IDataObject **dataobject)
static HRESULT WINAPI enumverbs_QueryInterface(IEnumOLEVERB *iface, REFIID riid, void **ppv)
static HRESULT WINAPI oleobject_SetColorScheme(IOleObject *iface, LOGPALETTE *pal)
static HRESULT WINAPI enumverbs_Skip(IEnumOLEVERB *iface, ULONG count)
static HRESULT WINAPI oleobject_Update(IOleObject *iface)
static HRESULT WINAPI oleobject_SetExtent(IOleObject *iface, DWORD aspect, SIZEL *size)
static HRESULT WINAPI enumverbs_Clone(IEnumOLEVERB *iface, IEnumOLEVERB **ppenum)
static IEnumOLEVERBVtbl enumverbsvtbl
static HRESULT WINAPI oleobject_InitFromData(IOleObject *iface, IDataObject *dataobject, BOOL creation, DWORD reserved)
static HRESULT WINAPI oleobject_IsUpToDate(IOleObject *iface)
static IOleObject oleobject
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
const GUID IID_IOleObject
const GUID IID_IEnumOLEVERB
BOOL WINAPI OleUIAddVerbMenuW(IOleObject *object, LPCWSTR shorttype, HMENU hMenu, UINT uPos, UINT idmin, UINT idmax, BOOL addConvert, UINT idConvert, HMENU *ret_submenu)
#define IsEqualIID(riid1, riid2)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
HMENU WINAPI CreatePopupMenu(void)
int WINAPI GetMenuItemCount(_In_opt_ HMENU)
int WINAPI GetMenuStringW(_In_ HMENU hMenu, _In_ UINT uIDItem, _Out_writes_opt_(cchMax) LPWSTR lpString, _In_ int cchMax, _In_ UINT flags)
BOOL WINAPI SetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)
BOOL WINAPI DestroyMenu(_In_ HMENU)
BOOL WINAPI GetMenuItemInfoW(_In_ HMENU, _In_ UINT, _In_ BOOL, _Inout_ LPMENUITEMINFOW)
BOOL WINAPI InsertMenuItemW(_In_ HMENU, _In_ UINT, _In_ BOOL, _In_ LPCMENUITEMINFOW)