Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.5 KiB

  1. // This is a part of the Microsoft Foundation Classes C++ library.
  2. // Copyright (C) 1992-1998 Microsoft Corporation
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Microsoft Foundation Classes Reference and related
  7. // electronic documentation provided with the library.
  8. // See these sources for detailed information regarding the
  9. // Microsoft Foundation Classes product.
  10. // Inlines for AFXINET.H
  11. /////////////////////////////////////////////////////////////////////////////
  12. //
  13. #ifdef _AFXINET_INLINE
  14. _AFXINET_INLINE DWORD_PTR CInternetSession::GetContext() const
  15. { return m_dwContext; }
  16. _AFXINET_INLINE CString CInternetConnection::GetServerName() const
  17. { return m_strServerName; }
  18. _AFXINET_INLINE CInternetSession* CInternetConnection::GetSession() const
  19. { return m_pSession; }
  20. _AFXINET_INLINE CInternetSession::operator HINTERNET() const
  21. { return m_hSession; }
  22. _AFXINET_INLINE BOOL CInternetSession::SetOption(DWORD dwOption, DWORD dwValue,
  23. DWORD dwFlags /* = 0 */)
  24. #if _MFC_VER >= 0x0600
  25. { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  26. #else
  27. { return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  28. #endif
  29. _AFXINET_INLINE CGopherLocator::operator LPCTSTR() const
  30. { return (LPCTSTR) m_Locator; }
  31. _AFXINET_INLINE BOOL CGopherLocator::GetLocatorType(DWORD& dwRef) const
  32. { return GopherGetLocatorType((LPCTSTR) m_Locator, &dwRef); }
  33. _AFXINET_INLINE CGopherLocator::CGopherLocator(const CGopherLocator& ref)
  34. { m_Locator = ref.m_Locator; m_dwBufferLength = ref.m_dwBufferLength; }
  35. _AFXINET_INLINE CInternetConnection::operator HINTERNET() const
  36. { return m_hConnection; }
  37. _AFXINET_INLINE DWORD_PTR CInternetConnection::GetContext() const
  38. { return m_dwContext; }
  39. _AFXINET_INLINE BOOL CInternetConnection::SetOption(DWORD dwOption,
  40. DWORD dwValue, DWORD dwFlags /* = 0 */)
  41. { return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  42. _AFXINET_INLINE DWORD_PTR CInternetFile::GetContext() const
  43. { return m_dwContext; }
  44. _AFXINET_INLINE CInternetFile::operator HINTERNET() const
  45. { return m_hFile; }
  46. _AFXINET_INLINE BOOL CInternetFile::SetOption(DWORD dwOption, DWORD dwValue,
  47. DWORD dwFlags /* = 0 */)
  48. #if _MFC_VER >= 0x0600
  49. { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  50. #else
  51. { return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  52. #endif
  53. #endif //_AFXINET_INLINE
  54. /////////////////////////////////////////////////////////////////////////////