| 252 | return false; |
| 253 | } |
| 254 | bool close() { |
| 255 | if (h_ == INVALID_HANDLE_VALUE) return true; |
| 256 | const bool ok = CloseHandle(h_) != 0; |
| 257 | if (!ok) { const DWORD c_ = GetLastError(); kind_ = win_kind(c_); error_ = last_error(c_); } |
| 258 | h_ = INVALID_HANDLE_VALUE; |
| 259 | return ok; |
| 260 | } |
| 261 | const std::string& error() const { return error_; } |
| 262 | bool missing() const { return missing_; } |
| 263 | SessionError kind() const { return kind_; } |
no test coverage detected