WinINet Functions


InternetFindNextFile Function

Continues a file search started as a result of a previous call to FtpFindFirstFile.

Windows XP and Windows Server 2003 R2 and earlier:  Or continues a file search as a result of a previous call to GopherFindFirstFile.

Syntax

C++
BOOL InternetFindNextFile(
  __in   HINTERNET hFind,
  __out  LPVOID lpvFindData
);

Parameters

hFind [in]

Handle returned from either FtpFindFirstFile or InternetOpenUrl (directories only).

Windows XP and Windows Server 2003 R2 and earlier:  Also a handle returned from GopherFindFirstFile.
lpvFindData [out]

Pointer to the buffer that receives information about the file or directory. The format of the information placed in the buffer depends on the protocol in use. The FTP protocol returns a WIN32_FIND_DATA structure.

Windows XP and Windows Server 2003 R2 and earlier:  The Gopher protocol returns a GOPHER_FIND_DATA structure.

Return Value

Returns TRUE if the function succeeds, or FALSE otherwise. To get extended error information, call GetLastError. If the function finds no matching files, GetLastError returns ERROR_NO_MORE_FILES.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
VersionInternet Explorer 3.0 or later
HeaderWininet.h
LibraryWininet.lib
DLLWininet.dll
Unicode and ANSI namesInternetFindNextFileW (Unicode) and InternetFindNextFileA (ANSI)

See Also

Enabling Internet Functionality
WinINet Functions

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Page view tracker