| 37 | return handle_; |
| 38 | } |
| 39 | void Handle::Clear() |
| 40 | { |
| 41 | if (*this) { |
| 42 | if (!CloseHandle(std::exchange(handle_, nullptr))) { |
| 43 | throw Except<HrError>("Failed closing handle in Handle wrapper"); |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | Handle Handle::Clone() const |
| 48 | { |
| 49 | if (*this) { |
no outgoing calls