Share via


CGopherFile::CGopherFile

This member function is called to construct a CGopherFile object.

CGopherFile( 
   HINTERNET hFile, 
   CGopherLocator& refLocator, 
   CGopherConnection* pConnection  
); 
CGopherFile( 
   HINTERNET hFile, 
   HINTERNET hSession, 
   LPCTSTR pstrLocator, 
   DWORD dwLocLen, 
   DWORD_PTR dwContext  
);

Parameters

  • hFile
    A handle to an HINTERNET file.

  • refLocator
    A reference to a CGopherLocator object.

  • pConnection
    A pointer to a CGopherConnection object.

  • hSession
    A handle to the current Internet session.

  • pstrLocator
    A pointer to a string used to locate the gopher server. See Gopher Sessions for more information about gopher locators.

  • dwLocLen
    A DWORD containing the number of bytes in pstrLocator.

  • dwContext
    A pointer to the context identifier of the file being opened.

Remarks

You need a CGopherFile object to read from a file during a gopher Internet session.

You never create a CGopherFile object directly. Instead, call CGopherConnection::OpenFile to open a file on a gopher server.

Requirements

Header: afxinet.h

See Also

Reference

CGopherFile Class

Hierarchy Chart

CInternetFile Class

CGopherLocator Class

CGopherFileFind Class

CGopherConnection Class