home     download     screen shots     bugs     mailing list     example output     generated MFC docs     help     tools and utilities


 Overview   Project   Class   Tree   Index 
MFC Class Library
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

MFC
Class CInternetFile

CObject
   |
   +--CFile
         |
         +--CStdioFile
               |
               +--CInternetFile

   in AFXINET.H
Direct Known Subclasses:
CGopherFile, CHttpFile

class CInternetFile
extends CStdioFile

Internet File Access Wrapper


Field Summary
protected BOOL m_bReadMode
          
protected DWORD m_dwContext
          
protected HINTERNET m_hConnection
          
protected HINTERNET m_hFile
          
protected UINT m_nReadBufferBytes
          
protected UINT m_nReadBufferPos
          
protected UINT m_nReadBufferSize
          
protected UINT m_nWriteBufferPos
          
protected UINT m_nWriteBufferSize
          
protected LPBYTE m_pbReadBuffer
          
protected LPBYTE m_pbWriteBuffer
          
protected CString m_strServerName
          
   
Fields inherited from class CStdioFile
classCStdioFile, m_pStream
   
Fields inherited from class CFile
classCFile, m_hFile, m_bCloseOnDelete, m_strFileName
   
Fields inherited from class CObject
classCObject
 
Constructor Summary
protected  CInternetFile( HINTERNET hFile, HINTERNET hSession, LPCTSTR pstrFileName, LPCTSTR pstrServer, DWORD dwContext, BOOL bReadMode )
          
protected  CInternetFile( HINTERNET hFile, LPCTSTR pstrFileName, CInternetConnection* pConnection, BOOL bReadMode )
          
  virtual ~CInternetFile()
          
 
Method Summary
 virtual void Abort()
          
 virtual void Close()
          
 CFile* Duplicate() const
          
 virtual void Flush()
          
 DWORD GetContext() const
          
 virtual DWORD GetLength() const
          
 operator HINTERNET() const
          
 void LockRange( DWORD dwPos, DWORD dwCount )
          
 BOOL QueryOption( DWORD dwOption, LPVOID lpBuffer, LPDWORD lpdwBufLen ) const
          
 BOOL QueryOption( DWORD dwOption, CString& refString ) const
          
 BOOL QueryOption( DWORD dwOption, DWORD& dwValue ) const
          
 virtual UINT Read( void* lpBuf, UINT nCount )
          
 virtual BOOL ReadString( CString& rString )
          
 virtual LPTSTR ReadString( LPTSTR pstr, UINT nMax )
          
 virtual LONG Seek( LONG lOffset, UINT nFrom )
          
 virtual void SetLength( DWORD dwNewLen )
          
 BOOL SetOption( DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength, DWORD dwFlags = 0 )
          
 BOOL SetOption( DWORD dwOption, DWORD dwValue, DWORD dwFlags = 0 )
          
 BOOL SetReadBufferSize( UINT nReadSize )
          
 BOOL SetWriteBufferSize( UINT nWriteSize )
          
 void UnlockRange( DWORD dwPos, DWORD dwCount )
          
 virtual void Write( const void* lpBuf, UINT nCount )
          
 virtual void WriteString( LPCTSTR pstr )
          
   
Methods inherited from class CStdioFile
GetRuntimeClass, WriteString, ReadString, ReadString, GetPosition, Open, Read, Write, Seek, Abort, Flush, Close, Duplicate, LockRange, UnlockRange
   
Methods inherited from class CFile
GetRuntimeClass, HFILE, GetPosition, GetStatus, GetFileName, GetFileTitle, GetFilePath, SetFilePath, Open, Rename, Remove, GetStatus, SetStatus, SeekToEnd, SeekToBegin, ReadHuge, WriteHuge, Duplicate, Seek, SetLength, GetLength, Read, Write, LockRange, UnlockRange, Abort, Flush, Close, GetBufferPtr
   
Methods inherited from class CObject
GetRuntimeClass, new, new, delete, IsSerializable, IsKindOf, Serialize
 

Field Detail

m_bReadMode

protected BOOL m_bReadMode;

m_dwContext

protected DWORD m_dwContext;

m_hConnection

protected HINTERNET m_hConnection;

m_hFile

protected HINTERNET m_hFile;

m_nReadBufferBytes

protected UINT m_nReadBufferBytes;

m_nReadBufferPos

protected UINT m_nReadBufferPos;

m_nReadBufferSize

protected UINT m_nReadBufferSize;

m_nWriteBufferPos

protected UINT m_nWriteBufferPos;

m_nWriteBufferSize

protected UINT m_nWriteBufferSize;

m_pbReadBuffer

protected LPBYTE m_pbReadBuffer;

m_pbWriteBuffer

protected LPBYTE m_pbWriteBuffer;

m_strServerName

protected CString m_strServerName;


Constructor Detail

CInternetFile

protected CInternetFile( HINTERNET hFile, HINTERNET hSession, LPCTSTR pstrFileName, LPCTSTR pstrServer, DWORD dwContext, BOOL bReadMode );

CInternetFile

protected CInternetFile( HINTERNET hFile, LPCTSTR pstrFileName, CInternetConnection* pConnection, BOOL bReadMode );

~CInternetFile

public virtual ~CInternetFile();


Method Detail

Abort

public virtual void Abort();

Close

public virtual void Close();

Duplicate

public CFile* Duplicate() const;

Flush

public virtual void Flush();

GetContext

public DWORD GetContext() const;

GetLength

public virtual DWORD GetLength() const;

HINTERNET

public operator HINTERNET() const;

LockRange

public void LockRange( DWORD dwPos, DWORD dwCount );

QueryOption

public BOOL QueryOption( DWORD dwOption, LPVOID lpBuffer, LPDWORD lpdwBufLen ) const;

QueryOption

public BOOL QueryOption( DWORD dwOption, CString& refString ) const;

QueryOption

public BOOL QueryOption( DWORD dwOption, DWORD& dwValue ) const;

Read

public virtual UINT Read( void* lpBuf, UINT nCount );

ReadString

public virtual BOOL ReadString( CString& rString );

ReadString

public virtual LPTSTR ReadString( LPTSTR pstr, UINT nMax );

Seek

public virtual LONG Seek( LONG lOffset, UINT nFrom );

SetLength

public virtual void SetLength( DWORD dwNewLen );

SetOption

public BOOL SetOption( DWORD dwOption, LPVOID lpBuffer, DWORD dwBufferLength, DWORD dwFlags = 0 );

SetOption

public BOOL SetOption( DWORD dwOption, DWORD dwValue, DWORD dwFlags = 0 );

SetReadBufferSize

public BOOL SetReadBufferSize( UINT nReadSize );

SetWriteBufferSize

public BOOL SetWriteBufferSize( UINT nWriteSize );

UnlockRange

public void UnlockRange( DWORD dwPos, DWORD dwCount );

Write

public virtual void Write( const void* lpBuf, UINT nCount );

WriteString

public virtual void WriteString( LPCTSTR pstr );

 Overview   Project   Class   Tree   Index 
MFC Class Library
CppDoc v2.3.1
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD