FindClose

  BOOL FindClose(hFindFile)    
  HANDLE hFindFile; /* file search handle */

The FindClose function closes the specified search handle. The FindFirstFile and FindNextFile functions use the search handle to locate files with names that match a given name.

Parameters

hFindFile

Identifies the search handle. This handle must have been previously opened by the FindFirstFile function.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred. Use the GetLastError function to obtain extended error information.

Comments

Once this function has been called, the handle specified by the hFindFile parameter may not be used in a subsequent call to either the FindNextFile or FindClose functions.

See Also

FindFirstFile, FindNextFile