Vault 7: Projects

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

Function
int FILEIO_Flush ( FILEIO_OBJECT * handle)
1.7.1.3.22 FILEIO_Close Function
Closes a file.
File
fileio_lfn.h
Syntax
int FILEIO_Close(FILEIO_OBJECT * handle);
Returns
If Success: FILEIO_RESULT_SUCCESS
If Failure: FILEIO_RESULT_FAILURE
Sets error code which can be retrieved with FILEIO_ErrorGet
FILEIO_ERROR_WRITE - Data could not be written to the device.
FILEIO_ERROR_BAD_CACHE_READ - The file's directory entry could not be cached.
Description
Closes a file. This will save the unwritten data to the file and make the memory used to allocate a file available to open other
files.
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 to close.
Function
int FILEIO_Close ( FILEIO_OBJECT * handle)
1.7.1.3.23 FILEIO_GetChar Function
Reads a character from a file.
File
fileio_lfn.h
Syntax
int FILEIO_GetChar(FILEIO_OBJECT * handle);
Returns
If Success: The character that was read (cast to an int).
If Failure: FILEIO_RESULT_FAILURE
Sets error code which can be retrieved with FILEIO_ErrorGet
FILEIO_ERROR_WRITE_ONLY - The file is not opened in read mode.
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.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
59

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh