# Vault 7: Projects

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

### Protego

# MLA -- File I/O Library

- 1
- 2
…
- 55
- 56
- 57
- 58
- 59
…
- 82
- 83

FILEIO_SEEK_END Change the position in the file to an offset relative to the end
of the file.
Description
Enumeration defining base locations for seeking
1.7.1.3.18 FILEIO_MediaDetect Function
Determines if the given media is accessible.
File
fileio_lfn.h
Syntax
bool FILEIO_MediaDetect(const FILEIO_DRIVE_CONFIG * driveConfig, void * mediaParameters);
Returns
• If media is available : true
• If media is not available : false
Description
This function determines if a specified media device is available for further access.
Preconditions
FILEIO_Initialize must have been called. The driveConfig struct must have been initialized with the media-specific
parameters and the FILEIO_DRIVER_MediaDetect function.
Parameters
Parameters Description
driveConfig Constant structure containing function pointers that the
library will use to access the drive.
mediaParameters Pointer to the media-specific parameter structure
Function
bool FILEIO_MediaDetect (const FILEIO_DRIVE_CONFIG * driveConfig,
void * mediaParameters)
1.7.1.3.19 FILEIO_Initialize Function
Initialized the FILEIO library.
File
fileio_lfn.h
Syntax
int FILEIO_Initialize();
Returns
• If Success: FILEIO_RESULT_SUCCESS
• If Failure: FILEIO_RESULT_FAILURE
Description
Initializes the structures used by the FILEIO library.
Preconditions
None.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
57

- 1
- 2
…
- 55
- 56
- 57
- 58
- 59
…
- 82
- 83