CGopherFileFind::FindFile

Call this member function to find a gopher file.

virtual BOOL FindFile( 
   CGopherLocator& refLocator, 
   LPCTSTR pstrString, 
   DWORD dwFlags = INTERNET_FLAG_RELOAD  
); 
virtual BOOL FindFile( 
   LPCTSTR pstrString, 
   DWORD dwFlags = INTERNET_FLAG_RELOAD  
);

Parameters

  • refLocator
    A reference to a CGopherLocator object.

  • pstrString
    A pointer to a string containing the file name.

  • dwFlags
    The flags describing how to handle this session. The valid flags are:

    • INTERNET_FLAG_RELOAD   Get the data from the remote server even if it is locally cached.

    • INTERNET_FLAG_DONT_CACHE   Do not cache the data, either locally or in any gateways.

    • INTERNET_FLAG_SECURE   Request secure transactions on the wire with Secure Sockets Layer or PCT. This flag is applicable to HTTP requests only.

    • INTERNET_FLAG_USE_EXISTING   If possible, reuse the existing connections to the server for new FindFile requests, instead of creating a new session for each request.

Return Value

Nonzero if successful; otherwise 0. To get extended error information, call the Win32 function GetLastError.

Remarks

After calling FindFile to retrieve the first gopher object, you can call FindNextFile to retrieve subsequent gopher files.

Requirements

Header: afxinet.h

See Also

Reference

CGopherFileFind Class

Hierarchy Chart

CFileFind::FindFile

Other Resources

CGopherFileFind Members