afxinet.inl 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 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. { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  25. _AFXINET_INLINE CGopherLocator::operator LPCTSTR() const
  26. { return (LPCTSTR) m_Locator; }
  27. _AFXINET_INLINE BOOL CGopherLocator::GetLocatorType(DWORD& dwRef) const
  28. { return GopherGetLocatorType((LPCTSTR) m_Locator, &dwRef); }
  29. _AFXINET_INLINE CGopherLocator::CGopherLocator(const CGopherLocator& ref)
  30. { m_Locator = ref.m_Locator; m_dwBufferLength = ref.m_dwBufferLength; }
  31. _AFXINET_INLINE CInternetConnection::operator HINTERNET() const
  32. { return m_hConnection; }
  33. _AFXINET_INLINE DWORD CInternetConnection::GetContext() const
  34. { return m_dwContext; }
  35. _AFXINET_INLINE BOOL CInternetConnection::SetOption(DWORD dwOption,
  36. DWORD dwValue, DWORD dwFlags /* = 0 */)
  37. { return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  38. _AFXINET_INLINE DWORD CInternetFile::GetContext() const
  39. { return m_dwContext; }
  40. _AFXINET_INLINE CInternetFile::operator HINTERNET() const
  41. { return m_hFile; }
  42. _AFXINET_INLINE BOOL CInternetFile::SetOption(DWORD dwOption, DWORD dwValue,
  43. DWORD dwFlags /* = 0 */)
  44. { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  45. #endif //_AFXINET_INLINE
  46. /////////////////////////////////////////////////////////////////////////////