Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
File
fileio.h
Syntax
uint16_t FILEIO_DirectoryGetCurrent(char * buffer, uint16_t size);
Module
Short File Name Library API
Returns
• uint16_t - The number of characters in the current working directory name. May exceed the size of the buffer. In this case,
the name will be truncated to 'size' characters, but the full length of the path name will be returned.
• Sets error code which can be retrieved with FILEIO_ErrorGet
• FILEIO_ERROR_INVALID_ARGUMENT - The arguments for the buffer or its size were invalid.
• FILEIO_ERROR_DIR_NOT_FOUND - One of the directories in your current working directory could not be found in its
parent directory.
Description
Gets the name of the current working directory and stores it in 'buffer.' The directory name will be null-terminated. If the
buffer size is insufficient to contain the whole path name, as much as possible will be copied and null-terminated.
Preconditions
A drive must be mounted.
Parameters
Parameters Description
buffer The buffer to contain the current working directory name.
size Size of the buffer (bytes).
Function
uint16_t FILEIO_DirectoryGetCurrent (char * buffer, uint16_t size)
1.7.1.1.11 FILEIO_ErrorClear Function
Clears the last error on a drive.
File
fileio.h
Syntax
void FILEIO_ErrorClear(char driveId);
Module
Short File Name Library API
Returns
void
Description
Clears the last error of the specified drive.
Preconditions
The drive must have been mounted.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
29
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf