| 101 | GlobalHandle::GlobalHandle() = default; |
| 102 | |
| 103 | GlobalHandle::GlobalHandle(const wchar_t *agent, DWORD access_type, const wchar_t *proxy_string, const wchar_t *proxy_bypass, DWORD flags) { |
| 104 | m_handle = InternetOpen(agent, access_type, proxy_string, proxy_bypass, flags); |
| 105 | if (!m_handle.get()) |
| 106 | throw_if_error(); |
| 107 | } |
| 108 | |
| 109 | GlobalHandle::~GlobalHandle() { |
| 110 | if (m_handle.get()) |
nothing calls this directly
no test coverage detected