int findClose(int *searchHandle)
Returns 0 if the function failed, or non-zero if the function succeeded.
Closes a file search handle opened with findFirstFile.
Internally, findClose is a simple wrapper around the built-in Windows [Win32 FindClose API] function.
%ffp OnFilterStart: { int Handle, Attribute; // Search for 8bf files in the filterInstallDir snprintf(str1, 255, "%s\\*.8bf", filterInstallDir); // Optionally, search the C: root instead //strcpy(str1,"C:\\"); Handle = findFirstFile (str1, str9, &Attribute); if (Attribute != FILE_ATTRIBUTE_DIRECTORY) Info ("%s - %d",str9, Attribute); if (Handle != INVALID_HANDLE_VALUE){ while (findNextFile(Handle, str9, &Attribute) != 0) { if (Attribute != FILE_ATTRIBUTE_DIRECTORY) Info ("%s - %d",str9, Attribute); } } findClose(Handle); return false; }