| 1098 | { |
| 1099 | EXCLUSIVE(); |
| 1100 | // clear variables that are not part of Global structure |
| 1101 | _files.Clear(); |
| 1102 | _fileAccess.Free(); |
| 1103 | if (_handle) |
| 1104 | { |
| 1105 | CloseHandle(_handle), _handle = nullptr; |
| 1106 | } |
| 1107 | if (_handleOverlapped) |
| 1108 | { |
| 1109 | CloseHandle(_handleOverlapped), _handleOverlapped = nullptr; |
| 1110 | } |