Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Description
Unmounts a drive from the file system and writes any pending data to the drive.
Preconditions
FILEIO_DriveMount must have been called.
Parameters
Parameters Description
driveId The character representation of the mounted drive.
Function
int FILEIO_DriveUnmount (const uint16_t driveID)
1.7.1.2.3 FILEIO_Open Function
Opens a file for access.
File
fileio_lfn.h
Syntax
int FILEIO_Open(FILEIO_OBJECT * filePtr, const uint16_t * pathName, uint16_t mode);
Module
Long File Name Library API
Returns
• If Success: FILEIO_RESULT_SUCCESS
• If Failure: FILEIO_RESULT_FAILURE
• 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_WRITE_PROTECTED - The device is write protected or this function was called in a write/create
mode when writes are disabled in configuration.
• FILEIO_ERROR_INVALID_FILENAME - The file name is invalid.
• FILEIO_ERROR_ERASE_FAIL - There was an error when trying to truncate the file.
• FILEIO_ERROR_WRITE - Cached file data could not be written to the device.
• FILEIO_ERROR_DONE - The directory entry could not be found.
• FILEIO_ERROR_BAD_SECTOR_READ - The directory entry could not be cached.
• FILEIO_ERROR_DRIVE_FULL - There are no more clusters available on this device that can be allocated to the file.
• FILEIO_ERROR_FILENAME_EXISTS - All of the possible alias values for this file are in use.
• FILEIO_ERROR_BAD_CACHE_READ - There was an error caching LFN entries.
• FILEIO_ERROR_INVALID_CLUSTER - The next cluster in the file is invalid (can occur in APPEND mode).
• FILEIO_ERROR_COULD_NOT_GET_CLUSTER - There was an error finding the cluster that contained the specified
offset (can occur in APPEND mode).
Description
Opens a file for access using a combination of modes specified by the user.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
33
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf