int wFindFirst( const unsigned short int * fileName, unsigned int attr, SearchRec * rec );
Initial search function for the 'fileName' in UTF16 format on PIC24/PIC32/dsPIC devices. The wFindFirst function will search for a file based on parameters passed in by the user. This function will use the FILEfind function to parse through the current working directory searching for entries that match the specified parameters. If a file is found, its parameters are copied into the SearchRec structure, as are the initial parameters passed in by the user and the position of the file entry in the current working directory.If the return value of the function is 0 then "utf16LFNfoundLength" indicates whether the file found was long file name or short file name(8P3 format). The "utf16LFNfoundLength" is non-zero for long file name and is zero for 8P3 format."utf16LFNfound" points to the address of long file name if found during the operation.
None
Parameters |
Description |
fileName |
The name to search for
|
attr |
The attributes that a found file may have
|
rec |
pointer to a structure to put the file information in |
Return Values |
Description |
0 |
File was found |
-1 |
No file matching the specified criteria was found |
Call FindFirst or FindFirstpgm before calling FindNext