home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / mfc / include / afxinet.inl < prev    next >
Text File  |  1998-06-16  |  2KB  |  70 lines

  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.  
  11. // Inlines for AFXINET.H
  12.  
  13. /////////////////////////////////////////////////////////////////////////////
  14. //
  15.  
  16. #ifdef _AFXINET_INLINE
  17.  
  18. _AFXINET_INLINE DWORD CInternetSession::GetContext() const
  19.     { return m_dwContext; }
  20.  
  21. _AFXINET_INLINE CString CInternetConnection::GetServerName() const
  22.     { return m_strServerName; }
  23.  
  24. _AFXINET_INLINE CInternetSession* CInternetConnection::GetSession() const
  25.     { return m_pSession; }
  26.  
  27. _AFXINET_INLINE CInternetSession::operator HINTERNET() const
  28.     { return m_hSession; }
  29.  
  30. _AFXINET_INLINE BOOL CInternetSession::SetOption(DWORD dwOption, DWORD dwValue,
  31.     DWORD dwFlags /* = 0 */)
  32.     { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  33.  
  34.  
  35. _AFXINET_INLINE CGopherLocator::operator LPCTSTR() const
  36.     { return (LPCTSTR) m_Locator; }
  37.  
  38. _AFXINET_INLINE BOOL CGopherLocator::GetLocatorType(DWORD& dwRef) const
  39.     { return GopherGetLocatorType((LPCTSTR) m_Locator, &dwRef); }
  40.  
  41. _AFXINET_INLINE CGopherLocator::CGopherLocator(const CGopherLocator& ref)
  42.     { m_Locator = ref.m_Locator; m_dwBufferLength = ref.m_dwBufferLength; }
  43.  
  44.  
  45. _AFXINET_INLINE CInternetConnection::operator HINTERNET() const
  46.     { return m_hConnection; }
  47.  
  48. _AFXINET_INLINE DWORD CInternetConnection::GetContext() const
  49.     { return m_dwContext; }
  50.  
  51. _AFXINET_INLINE BOOL CInternetConnection::SetOption(DWORD dwOption,
  52.     DWORD dwValue, DWORD dwFlags /* = 0 */)
  53.     { return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  54.  
  55.  
  56. _AFXINET_INLINE DWORD CInternetFile::GetContext() const
  57.     { return m_dwContext; }
  58.  
  59. _AFXINET_INLINE CInternetFile::operator HINTERNET() const
  60.     { return m_hFile; }
  61.  
  62. _AFXINET_INLINE BOOL CInternetFile::SetOption(DWORD dwOption, DWORD dwValue,
  63.     DWORD dwFlags /* = 0 */)
  64.     { ASSERT((dwFlags & INTERNET_FLAG_ASYNC) == 0); return SetOption(dwOption, &dwValue, sizeof(dwValue), dwFlags); }
  65.  
  66.  
  67. #endif //_AFXINET_INLINE
  68.  
  69. /////////////////////////////////////////////////////////////////////////////
  70.