Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Module
Long File Name Library API
Returns
None
Description
Obtains the short file name of an open file.
Preconditions
A drive must have been mounted by the FILEIO library and the file being specified my be open.
Parameters
Parameters Description
filePtr Pointer to an open file.
buffer A buffer to store the null-terminated short file name. Must be
large enough to contain at least 13 characters.
Function
void FILEIO_ShortFileNameGet ( FILEIO_OBJECT * filePtr, char * buffer)
1.7.1.3 Common API
Describes APIs that are common to both versions of the File I/O library.
Enumerations
Name Description
FILEIO_ATTRIBUTES Enumeration defining standard attributes used by FAT file systems
FILEIO_DRIVE_ERRORS Possible results of the FSGetDiskProperties() function.
FILEIO_ERROR_TYPE Enumeration for specific return codes
FILEIO_FILE_SYSTEM_TYPE Enumeration of macros defining possible file system types supported by
a device
FILEIO_FORMAT_MODE Enumeration for formatting modes
FILEIO_MEDIA_ERRORS Enumeration to define media error types
FILEIO_OPEN_ACCESS_MODES Enumeration for file access modes
FILEIO_RESULT Enumeration for general purpose return values
FILEIO_SEEK_BASE Enumeration defining base locations for seeking
Functions
Name Description
FILEIO_MediaDetect Determines if the given media is accessible.
FILEIO_Initialize Initialized the FILEIO library.
FILEIO_Reinitialize Reinitialized the FILEIO library.
FILEIO_Flush Saves unwritten file data to the device without closing the file.
FILEIO_Close Closes a file.
FILEIO_GetChar Reads a character from a file.
FILEIO_PutChar Writes a character to a file.
FILEIO_Read Reads data from a file.
FILEIO_Write Writes data to a file.
FILEIO_Eof Determines if the file's current read/write position is at the end of the file.
FILEIO_Seek Changes the current read/write position in the file.
FILEIO_Tell Returns the current read/write position in the file.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
42
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf