ReactOS  0.4.15-dev-3303-g1ade494
CExplorerCommand Class Reference
Inheritance diagram for CExplorerCommand:
Collaboration diagram for CExplorerCommand:

Public Member Functions

STDMETHODIMP Initialize (IContextMenu *zipObject)
 
STDMETHODIMP GetTitle (IShellItemArray *psiItemArray, LPWSTR *ppszName)
 
STDMETHODIMP GetIcon (IShellItemArray *psiItemArray, LPWSTR *ppszIcon)
 
STDMETHODIMP GetToolTip (IShellItemArray *psiItemArray, LPWSTR *ppszInfotip)
 
STDMETHODIMP GetCanonicalName (GUID *pguidCommandName)
 
STDMETHODIMP GetState (IShellItemArray *psiItemArray, BOOL fOkToBeSlow, EXPCMDSTATE *pCmdState)
 
STDMETHODIMP Invoke (IShellItemArray *psiItemArray, IBindCtx *pbc)
 
STDMETHODIMP GetFlags (EXPCMDFLAGS *pFlags)
 
STDMETHODIMP EnumSubCommands (IEnumExplorerCommand **ppEnum)
 
- Public Member Functions inherited from ATL::CComObjectRootEx< CComMultiThreadModelNoCS >
 ~CComObjectRootEx ()
 
ULONG InternalAddRef ()
 
ULONG InternalRelease ()
 
void Lock ()
 
void Unlock ()
 
HRESULT _AtlInitialConstruct ()
 
- Public Member Functions inherited from ATL::CComObjectRootBase
 CComObjectRootBase ()
 
 ~CComObjectRootBase ()
 
void SetVoid (void *)
 
HRESULT _AtlFinalConstruct ()
 
HRESULT FinalConstruct ()
 
void InternalFinalConstructAddRef ()
 
void InternalFinalConstructRelease ()
 
void FinalRelease ()
 

Private Attributes

CComPtr< IContextMenum_pZipObject
 

Additional Inherited Members

- Static Public Member Functions inherited from ATL::CComObjectRootBase
static void WINAPI ObjectMain (bool)
 
static const struct _ATL_CATMAP_ENTRYGetCategoryMap ()
 
static HRESULT WINAPI InternalQueryInterface (void *pThis, const _ATL_INTMAP_ENTRY *pEntries, REFIID iid, void **ppvObject)
 
- Public Attributes inherited from ATL::CComObjectRootBase
LONG m_dwRef
 

Detailed Description

Definition at line 10 of file CExplorerCommand.cpp.

Member Function Documentation

◆ EnumSubCommands()

STDMETHODIMP CExplorerCommand::EnumSubCommands ( IEnumExplorerCommand **  ppEnum)
inline

Definition at line 63 of file CExplorerCommand.cpp.

64  {
65  DbgPrint("%s\n", __FUNCTION__);
66  return E_NOTIMPL;
67  }
#define DbgPrint
Definition: hal.h:12
#define E_NOTIMPL
Definition: ddrawi.h:99
#define __FUNCTION__
Definition: types.h:112

◆ GetCanonicalName()

STDMETHODIMP CExplorerCommand::GetCanonicalName ( GUID pguidCommandName)
inline

Definition at line 41 of file CExplorerCommand.cpp.

42  {
43  *pguidCommandName = CLSID_ZipFolderExtractAllCommand;
44  return S_OK;
45  }
EXTERN_C const GUID CLSID_ZipFolderExtractAllCommand
Definition: precomp.h:35
#define S_OK
Definition: intsafe.h:52

◆ GetFlags()

STDMETHODIMP CExplorerCommand::GetFlags ( EXPCMDFLAGS *  pFlags)
inline

Definition at line 58 of file CExplorerCommand.cpp.

59  {
60  *pFlags = ECF_DEFAULT;
61  return S_OK;
62  }
#define S_OK
Definition: intsafe.h:52

◆ GetIcon()

STDMETHODIMP CExplorerCommand::GetIcon ( IShellItemArray *  psiItemArray,
LPWSTR ppszIcon 
)
inline

Definition at line 31 of file CExplorerCommand.cpp.

32  {
33  CStringW IconName = L"zipfldr.dll,-1";
34  return SHStrDup(IconName, ppszIcon);
35  }
#define SHStrDup
Definition: shlwapi.h:1537
static const WCHAR L[]
Definition: oid.c:1250

◆ GetState()

STDMETHODIMP CExplorerCommand::GetState ( IShellItemArray *  psiItemArray,
BOOL  fOkToBeSlow,
EXPCMDSTATE *  pCmdState 
)
inline

Definition at line 46 of file CExplorerCommand.cpp.

47  {
48  *pCmdState = ECS_ENABLED;
49  return S_OK;
50  }
#define S_OK
Definition: intsafe.h:52

◆ GetTitle()

STDMETHODIMP CExplorerCommand::GetTitle ( IShellItemArray *  psiItemArray,
LPWSTR ppszName 
)
inline

Definition at line 26 of file CExplorerCommand.cpp.

27  {
29  return SHStrDup(Title, ppszName);
30  }
#define IDS_MENUITEM
Definition: resource.h:70
SIGDN PWSTR * ppszName
Definition: shobjidl.idl:593
static const WCHAR Title[]
Definition: oid.c:1259
#define SHStrDup
Definition: shlwapi.h:1537
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

◆ GetToolTip()

STDMETHODIMP CExplorerCommand::GetToolTip ( IShellItemArray *  psiItemArray,
LPWSTR ppszInfotip 
)
inline

Definition at line 36 of file CExplorerCommand.cpp.

37  {
39  return SHStrDup(HelpText, ppszInfotip);
40  }
#define IDS_HELPTEXT
Definition: resource.h:71
#define SHStrDup
Definition: shlwapi.h:1537
#define MAKEINTRESOURCEW(i)
Definition: winuser.h:582

◆ Initialize()

STDMETHODIMP CExplorerCommand::Initialize ( IContextMenu zipObject)
inline

Definition at line 19 of file CExplorerCommand.cpp.

20  {
21  m_pZipObject = zipObject;
22  return S_OK;
23  }
CComPtr< IContextMenu > m_pZipObject
#define S_OK
Definition: intsafe.h:52

◆ Invoke()

STDMETHODIMP CExplorerCommand::Invoke ( IShellItemArray *  psiItemArray,
IBindCtx pbc 
)
inline

Definition at line 51 of file CExplorerCommand.cpp.

52  {
53  CMINVOKECOMMANDINFO cm = { sizeof(cm), 0 };
54  cm.lpVerb = EXTRACT_VERBA;
55  cm.nShow = SW_SHOW;
56  return m_pZipObject->InvokeCommand(&cm);
57  }
#define SW_SHOW
Definition: winuser.h:769
CComPtr< IContextMenu > m_pZipObject
#define EXTRACT_VERBA
Definition: precomp.h:26

Member Data Documentation

◆ m_pZipObject


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