|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
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 );
A reference to a CGopherLocator object.
A pointer to a string containing the file name.
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.
Nonzero if successful; otherwise 0. To get extended error information, call the Win32 function GetLastError.
After calling FindFile to retrieve the first gopher object, you can call FindNextFile to retrieve subsequent gopher files.