Vault 7: Projects

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

Syntax
long FILEIO_Tell(FILEIO_OBJECT * handle);
Description
Returns the current read/write position in the file.
Offset of the current read/write position from the beginning of the file, in bytes.
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.
Function
long FILEIO_Tell ( FILEIO_OBJECT * handle)
1.7.1.3.30 FILEIO_DrivePropertiesGet Function
Allows user to get the drive properties (size of drive, free space, etc)
File
fileio.h
Syntax
void FILEIO_DrivePropertiesGet(FILEIO_DRIVE_PROPERTIES* properties, char driveId);
Side Effects
Can cause errors if called when files are open. Close all files before calling this function.
Calling this function without setting the new_request member on the first call can result in undefined behavior and results.
Calling this function after a result is returned other than FILEIO_GET_PROPERTIES_STILL_WORKING can result in
undefined behavior and results.
Description
This function returns the information about the mounted drive. The results member of the properties object passed into the
function is populated with the information about the drive.
Before starting a new request, the new_request member of the properties input parameter should be set to true. This will
initiate a new search request.
This function will return before the search is complete with partial results. All of the results except the free_clusters will be
correct after the first call. The free_clusters will contain the number of free clusters found up until that point, thus the
free_clusters result will continue to grow until the entire drive is searched. If an application only needs to know that a certain
number of bytes is available and doesn't need to know the total free size, then this function can be called until the required
free size is verified. To continue a search, pass a pointer to the same FILEIO_FILEIO_DRIVE_PROPERTIES object that
was passed in to create the search.
A new search request should be made once this function has returned a value other than
FILEIO_GET_PROPERTIES_STILL_WORKING. Continuing a completed search can result in undefined behavior or results.
Typical Usage:
FILEIO_DRIVE_PROPERTIES disk_properties;
disk_properties.new_request =
true;
do
{
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
64

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh