Cleans up the Storage and the Find. Returns the specified EXIT_code. EXIT_code when cleaning up was successful HANDLE of the Storage HANDLE of the Find EXIT_FAILURE code when cleaning up encountered a problem. Else the specified exitCode is returned.
| 132 | /// <param name="hFind">HANDLE of the Find</param> |
| 133 | /// <returns>EXIT_FAILURE code when cleaning up encountered a problem. Else the specified exitCode is returned.</returns> |
| 134 | static int CleanUp(int exitCode, HANDLE hStorage, HANDLE hFind) noexcept { |
| 135 | bool result = CleanUpFind(hFind); |
| 136 | result = CleanUpStorage(hStorage) || result; |
| 137 | return !result ? EXIT_FAILURE : exitCode; |
| 138 | } |
| 139 | |
| 140 | /// <summary> |
| 141 | /// |
no test coverage detected