ReactOS 0.4.15-dev-7934-g1dc8d80
CEnumExplorerCommand Class Reference
Inheritance diagram for CEnumExplorerCommand:
Collaboration diagram for CEnumExplorerCommand:

Public Member Functions

 CEnumExplorerCommand ()
 
STDMETHODIMP Initialize (IContextMenu *zipObject)
 
STDMETHODIMP Next (ULONG celt, IExplorerCommand **pUICommand, ULONG *pceltFetched)
 
STDMETHODIMP Skip (ULONG celt)
 
STDMETHODIMP Reset ()
 
STDMETHODIMP Clone (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

bool m_bFirst
 
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 79 of file CExplorerCommand.cpp.

Constructor & Destructor Documentation

◆ CEnumExplorerCommand()

CEnumExplorerCommand::CEnumExplorerCommand ( )
inline

Definition at line 89 of file CExplorerCommand.cpp.

90 :m_bFirst(true)
91 {
92 }

Member Function Documentation

◆ Clone()

STDMETHODIMP CEnumExplorerCommand::Clone ( IEnumExplorerCommand **  ppenum)
inline

Definition at line 136 of file CExplorerCommand.cpp.

137 {
138 return E_NOTIMPL;
139 }
#define E_NOTIMPL
Definition: ddrawi.h:99

◆ Initialize()

STDMETHODIMP CEnumExplorerCommand::Initialize ( IContextMenu zipObject)
inline

Definition at line 94 of file CExplorerCommand.cpp.

95 {
96 m_pZipObject = zipObject;
97 return S_OK;
98 }
CComPtr< IContextMenu > m_pZipObject
#define S_OK
Definition: intsafe.h:52

◆ Next()

STDMETHODIMP CEnumExplorerCommand::Next ( ULONG  celt,
IExplorerCommand **  pUICommand,
ULONG pceltFetched 
)
inline

Definition at line 101 of file CExplorerCommand.cpp.

102 {
103 if (!pUICommand)
104 return E_POINTER;
105
106 if (pceltFetched)
107 *pceltFetched = 0;
108 if (m_bFirst && celt)
109 {
110 m_bFirst = false;
111 celt--;
112 HRESULT hr = ShellObjectCreatorInit<CExplorerCommand>(m_pZipObject, IID_PPV_ARG(IExplorerCommand, pUICommand));
113 if (SUCCEEDED(hr))
114 {
115 if (pceltFetched)
116 *pceltFetched = 1;
117 }
118 return hr;
119 }
120 return S_FALSE;
121 }
#define SUCCEEDED(hr)
Definition: intsafe.h:50
HRESULT hr
Definition: shlfolder.c:183
#define S_FALSE
Definition: winerror.h:2357
#define E_POINTER
Definition: winerror.h:2365
#define IID_PPV_ARG(Itype, ppType)

◆ Reset()

STDMETHODIMP CEnumExplorerCommand::Reset ( )
inline

Definition at line 131 of file CExplorerCommand.cpp.

132 {
133 m_bFirst = true;
134 return S_OK;
135 }

◆ Skip()

STDMETHODIMP CEnumExplorerCommand::Skip ( ULONG  celt)
inline

Definition at line 122 of file CExplorerCommand.cpp.

123 {
124 if (m_bFirst)
125 {
126 m_bFirst = false;
127 return S_OK;
128 }
129 return S_FALSE;
130 }

Member Data Documentation

◆ m_bFirst

bool CEnumExplorerCommand::m_bFirst
private

Definition at line 84 of file CExplorerCommand.cpp.

◆ m_pZipObject

CComPtr<IContextMenu> CEnumExplorerCommand::m_pZipObject
private

Definition at line 85 of file CExplorerCommand.cpp.


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