Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
it was not.
Sets error code which can be retrieved with FILEIO_ErrorGet:
• FILEIO_ERROR_READ_ONLY - The file was not opened in write mode.
• FILEIO_ERROR_WRITE_PROTECTED - The media is write-protected.
• FILEIO_ERROR_BAD_SECTOR_READ - There was an error reading the FAT to determine the next cluster in the file, or
an error reading the file data.
• FILEIO_ERROR_INVALID_CLUSTER - The next cluster in the file is invalid.
• FILEIO_ERROR_WRITE - Cached data could not be written to the device.
• FILEIO_ERROR_BAD_SECTOR_READ - File data could not be cached.
• FILEIO_ERROR_DRIVE_FULL - There are no more clusters on the media that can be allocated to the file.
Description
Writes data from 'buffer' to a file.
Preconditions
The drive containing the file must be mounted and the file handle must represent a valid, opened file.
Parameters
Parameters Description
buffer The buffer that contains the data to write.
size The size of data objects to write, in bytes
count The number of data objects to write
handle The handle of the file.
Function
size_t FILEIO_Write (void * buffer, size_t size, size_t count,
FILEIO_OBJECT * handle)
1.7.1.3.27 FILEIO_Eof Function
Determines if the file's current read/write position is at the end of the file.
File
fileio_lfn.h
Syntax
bool FILEIO_Eof(FILEIO_OBJECT * handle);
Returns
• If EOF: true
• If Not EOF: false
Description
Determines if the file's current read/write position is at the end of the file.
Preconditions
The drive containing the file must be mounted and the file handle must represent a valid, opened file.
Parameters
Parameters Description
handle The handle of the file.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
62
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf