ReactOS 0.4.17-dev-116-ga4b6fe9
HwndCaptureMock Struct Reference
Inheritance diagram for HwndCaptureMock:
Collaboration diagram for HwndCaptureMock:

Public Member Functions

STDMETHODIMP InvokeCommand (LPCMINVOKECOMMANDINFO pici) override
 
- Public Member Functions inherited from MockContextMenu
 STDMETHODIMP_ (ULONG) AddRef() override
 
 STDMETHODIMP_ (ULONG) Release() override
 
STDMETHODIMP QueryInterface (REFIID, void **) override
 
STDMETHODIMP QueryContextMenu (HMENU hmenu, UINT, UINT idCmdFirst, UINT, UINT uFlags) override
 
STDMETHODIMP InvokeCommand (LPCMINVOKECOMMANDINFO pici) override
 
STDMETHODIMP GetCommandString (UINT_PTR, UINT, UINT *, CHAR *, UINT) override
 
- Public Member Functions inherited from IContextMenu
HRESULT QueryContextMenu ([in] HMENU hmenu, [in] UINT indexMenu, [in] UINT idCmdFirst, [in] UINT idCmdLast, [in] UINT uFlags)
 
HRESULT InvokeCommand ([in] LPCMINVOKECOMMANDINFO lpici)
 
HRESULT GetCommandString ([in] UINT_PTR idCmd, [in] UINT uType, [out] UINT *pwReserved, [out, size_is(cchMax)] LPSTR pszName, [in] UINT cchMax)
 
- Public Member Functions inherited from IUnknown
HRESULT QueryInterface ([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
 
ULONG AddRef ()
 
ULONG Release ()
 

Public Attributes

HWND capturedHwnd = NULL
 
- Public Attributes inherited from MockContextMenu
HRESULT queryResult = S_OK
 
HRESULT invokeResult = S_OK
 
UINT defaultItemId = (UINT)-1
 
INT queryCalled = 0
 
INT invokeCalled = 0
 
DWORD lastQueryFlags = 0
 
CHAR lastVerb [MAX_PATH] = {}
 
WCHAR lastVerbW [MAX_PATH] = {}
 
DWORD lastFMask = 0
 
BOOL lastHadUnicode = FALSE
 

Additional Inherited Members

- Public Types inherited from IContextMenu
typedef IContextMenuLPCONTEXTMENU
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFO CMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMINVOKECOMMANDINFOLPCMINVOKECOMMANDINFO
 
typedef struct IContextMenu::tagCMInvokeCommandInfoEx CMINVOKECOMMANDINFOEX
 
typedef struct IContextMenu::tagCMInvokeCommandInfoExLPCMINVOKECOMMANDINFOEX
 
- Public Types inherited from IUnknown
typedef IUnknownLPUNKNOWN
 
- Static Public Attributes inherited from IContextMenu
static const WCHAR CMDSTR_NEWFOLDERW [] = {'N','e','w','F','o','l','d','e','r',0}
 
static const WCHAR CMDSTR_VIEWLISTW [] = {'V','i','e','w','L','i','s','t',0}
 
static const WCHAR CMDSTR_VIEWDETAILSW [] = {'V','i','e','w','D','e','t','a','i','l','s',0}
 

Detailed Description

Definition at line 266 of file SHInvokeCommandsOnContextMenu.cpp.

Member Function Documentation

◆ InvokeCommand()

STDMETHODIMP HwndCaptureMock::InvokeCommand ( LPCMINVOKECOMMANDINFO  pici)
inlineoverride

Implements IContextMenu.

Definition at line 269 of file SHInvokeCommandsOnContextMenu.cpp.

270 {
271 capturedHwnd = pici->hwnd;
272 return S_OK;
273 }
#define S_OK
Definition: intsafe.h:52

Member Data Documentation

◆ capturedHwnd

HWND HwndCaptureMock::capturedHwnd = NULL

The documentation for this struct was generated from the following file: