Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Function
int FILEIO_Rename (const uint16_t * oldPathname,
const uint16_t * newFilename)
1.7.1.2.6 FILEIO_Find Function
Searches for a file in the current working directory.
File
fileio_lfn.h
Syntax
int FILEIO_Find(const uint16_t * fileName, unsigned int attr, FILEIO_SEARCH_RECORD *
record, bool newSearch);
Module
Long File Name Library API
Returns
If Success: FILEIO_RESULT_SUCCESS
If Failure: FILEIO_RESULT_FAILURE
Returns file information in the record parameter.
Sets error code which can be retrieved with FILEIO_ErrorGet Note that if the path cannot be resolved, the error will be
returned for the current working directory.
FILEIO_ERROR_INVALID_ARGUMENT - The path could not be resolved.
FILEIO_ERROR_INVALID_FILENAME - The file name is invalid.
FILEIO_ERROR_BAD_CACHE_READ - There was an error searching directory entries.
FILEIO_ERROR_DONE - File not found.
Description
Searches for a file in the current working directory.
Preconditions
A drive must have been mounted by the FILEIO library.
Parameters
Parameters Description
fileName The file's name. May contain limited partial string search
elements. '?' can be used as a single-character wild-card
and '*' can be used as a multiple-character wild card (only at
the end of the file's name or extension).
attr Inclusive OR of all of the attributes (FILEIO_ATTRIBUTES
structure members) that a found file may have.
record Structure containing parameters about the found file. Also
contains private information used for additional searches for
files that match the given criteria in the same directory.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
36

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh