/thirdparty/liblastfm2/src/ws/win/IeSettings.h

http://github.com/tomahawk-player/tomahawk · C Header · 43 lines · 5 code · 2 blank · 36 comment · 0 complexity · 005c58cafbc2b8c01a24ee9527ee5a53 MD5 · raw file

  1. /*
  2. Copyright 2009 Last.fm Ltd.
  3. - Primarily authored by Max Howell, Jono Cole and Doug Mansell
  4. This file is part of liblastfm.
  5. liblastfm is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. liblastfm is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with liblastfm. If not, see <http://www.gnu.org/licenses/>.
  15. */
  16. #include <windows.h>
  17. #include <winhttp.h>
  18. /** @brief memory managing wrapper for WINHTTP_CURRENT_USER_IE_PROXY_CONFIG
  19. * @author <doug@last.fm>
  20. */
  21. struct IeSettings : WINHTTP_CURRENT_USER_IE_PROXY_CONFIG
  22. {
  23. /* IeSettings()
  24. {
  25. if (!WinHttpGetIEProxyConfigForCurrentUser(this)) {
  26. fAutoDetect = FALSE;
  27. lpszAutoConfigUrl = lpszProxy = lpszProxyBypass = 0;
  28. }
  29. }
  30. ~IeSettings()
  31. {
  32. if (lpszAutoConfigUrl) GlobalFree(lpszAutoConfigUrl);
  33. if (lpszProxy) GlobalFree(lpszProxy);
  34. if (lpszProxyBypass) GlobalFree(lpszProxyBypass);
  35. }*/
  36. };