| 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 | { |
nothing calls this directly
no outgoing calls
no test coverage detected