# 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
…
- 51
- 52
- 53
- 54
- 55
…
- 82
- 83

Description
Enumeration of macros defining possible file system types supported by a device
1.7.1.3.10 FILEIO_FORMAT_MODE Enumeration
File
fileio_lfn.h
Syntax
typedef enum {
FILEIO_FORMAT_ERASE = 0,
FILEIO_FORMAT_BOOT_SECTOR
} FILEIO_FORMAT_MODE;
Members
Members Description
FILEIO_FORMAT_ERASE = 0 Erases the contents of the partition
FILEIO_FORMAT_BOOT_SECTOR Creates a boot sector based on user-specified information
and erases any existing information
Description
Enumeration for formatting modes
1.7.1.3.11 FILEIO_MEDIA_ERRORS Enumeration
File
fileio_lfn.h
Syntax
typedef enum {
MEDIA_NO_ERROR,
MEDIA_DEVICE_NOT_PRESENT,
MEDIA_CANNOT_INITIALIZE
} FILEIO_MEDIA_ERRORS;
Members
Members Description
MEDIA_NO_ERROR No errors
MEDIA_DEVICE_NOT_PRESENT The requested device is not present
MEDIA_CANNOT_INITIALIZE Cannot initialize media
Description
Enumeration to define media error types
1.7.1.3.12 FILEIO_MEDIA_INFORMATION Structure
File
fileio_lfn.h
Syntax
typedef struct {
FILEIO_MEDIA_ERRORS errorCode;
union {
uint8_t value;
struct {
uint8_t sectorSize : 1;
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
53

- 1
- 2
…
- 51
- 52
- 53
- 54
- 55
…
- 82
- 83