MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / Next

Function Next

FastCopyShellExtension/dllmain.cpp:123–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122 #pragma region IEnumExplorerCommand
123 HRESULT Next(ULONG celt, IExplorerCommand** pUICommand, ULONG* pceltFetched) override
124 {
125 //MessageBox(NULL, L"Next called", L"", 0);
126 ULONG Fetched = 0;
127
128 for (
129 ULONG i = 0;
130 (i < celt) &&
131 (this->current != this->ptrs.cend());
132 ++i)
133 {
134 current->CopyTo(&pUICommand[0]);
135 ++current;
136 ++Fetched;
137 }
138
139 if (pceltFetched)
140 {
141 *pceltFetched = Fetched;
142 }
143
144 return (Fetched == celt) ? S_OK : S_FALSE;
145 }
146
147 HRESULT Skip(ULONG)
148 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected