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

uint8_t maxLUN : 1;
} bits;
} validityFlags;
uint16_t sectorSize;
uint8_t maxLUN;
} FILEIO_MEDIA_INFORMATION;
Members
Members Description
FILEIO_MEDIA_ERRORS errorCode; The status of the intialization FILEIO_MEDIA_ERRORS
Flags
uint8_t sectorSize : 1; The sector size parameter is valid.
uint8_t maxLUN : 1; The max LUN parameter is valid.
uint16_t sectorSize; The sector size of the target device.
uint8_t maxLUN; The maximum Logical Unit Number of the device.
Description
Media information flags. The driver's MediaInitialize function will return a pointer to one of these structures.
1.7.1.3.13 FILEIO_OBJECT Structure
Contains file information and is used to indicate which file to access.
File
fileio_lfn.h
Syntax
typedef struct {
uint32_t baseClusterDir;
uint32_t currentClusterDir;
uint32_t firstCluster;
uint32_t currentCluster;
uint32_t size;
uint32_t absoluteOffset;
void * disk;
uint16_t * lfnPtr;
uint16_t lfnLen;
uint16_t currentSector;
uint16_t currentOffset;
uint16_t entry;
uint16_t attributes;
uint16_t time;
uint16_t date;
uint8_t timeMs;
char name[FILEIO_FILE_NAME_LENGTH_8P3_NO_RADIX];
struct {
unsigned writeEnabled : 1;
unsigned readEnabled : 1;
} flags;
} FILEIO_OBJECT;
Members
Members Description
uint32_t baseClusterDir; The base cluster of the file's directory
uint32_t currentClusterDir; The current cluster of the file's directory
uint32_t firstCluster; The first cluster of the file
uint32_t currentCluster; The current cluster of the file
uint32_t size; The size of the file
uint32_t absoluteOffset; The absolute offset in the file
void * disk; Pointer to a device structure
uint16_t * lfnPtr; Pointer to a LFN buffer
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
54

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