ReactOS 0.4.15-dev-7924-g5949c20
CExplorerCommand Class Reference
Inheritance diagram for CExplorerCommand:
Collaboration diagram for CExplorerCommand:

Public Member Functions

STDMETHODIMP Initialize (IContextMenu *zipObject)
 
STDMETHODIMP GetTitle (IShellItemArray *psiItemArray, PWSTR *ppszName)
 
STDMETHODIMP GetIcon (IShellItemArray *psiItemArray, PWSTR *ppszIcon)
 
STDMETHODIMP GetToolTip (IShellItemArray *psiItemArray, PWSTR *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 E_NOTIMPL
Definition: ddrawi.h:99
#define __FUNCTION__
Definition: types.h:116
#define DbgPrint
Definition: hal.h:12

◆ 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:34
#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 }

◆ GetIcon()

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

Definition at line 31 of file CExplorerCommand.cpp.

32 {
33 CStringW IconName = L"zipfldr.dll,-1";
34 return SHStrDup(IconName, ppszIcon);
35 }
LPCTSTR IconName
Definition: desktop.c:53
#define L(x)
Definition: ntvdm.h:50
#define SHStrDup
Definition: shlwapi.h:1537

◆ 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 }

◆ GetTitle()

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

Definition at line 26 of file CExplorerCommand.cpp.

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

◆ GetToolTip()

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

Definition at line 36 of file CExplorerCommand.cpp.

37 {
39 return SHStrDup(HelpText, ppszInfotip);
40 }
#define IDS_HELPTEXT
Definition: resource.h:74

◆ 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

◆ 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 EXTRACT_VERBA
Definition: precomp.h:25
#define SW_SHOW
Definition: winuser.h:775

Member Data Documentation

◆ m_pZipObject


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