# Vault 7: Projects

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

### Protego

# MLA -- File I/O Library

- 1
- 2
…
- 24
- 25
- 26
- 27
- 28
…
- 82
- 83

Preconditions
The file's drive must be mounted and the file/path specified by oldPathname must exist.
Parameters
Parameters Description
oldPathName The path/name of the file to rename.
newFileName The new name of the file.
Function
int FILEIO_Rename (const char * oldPathname, const char * newFilename)
1.7.1.1.6 FILEIO_Find Function
Searches for a file in the current working directory.
File
fileio.h
Syntax
int FILEIO_Find(const char * fileName, unsigned int attr, FILEIO_SEARCH_RECORD * record,
bool newSearch);
Module
Short 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.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
26

- 1
- 2
…
- 24
- 25
- 26
- 27
- 28
…
- 82
- 83