| 50 | } |
| 51 | |
| 52 | bool CookieManager::IsAdvancedCookiesApi() { |
| 53 | FARPROC address = NULL; |
| 54 | HMODULE wininet_handle = ::GetModuleHandle(L"wininet"); |
| 55 | if (wininet_handle) { |
| 56 | address = ::GetProcAddress(wininet_handle, "InternetGetCookieEx2"); |
| 57 | } |
| 58 | return address != NULL; |
| 59 | } |
| 60 | |
| 61 | int CookieManager::SetCookie(const std::string& url, |
| 62 | const BrowserCookie& cookie) { |