File And Path Functions

Function

Description

File_Close

Close an opened file handle.

File_CreateA

Creates a new file from the filename specified.

File_CreateW

Creates a new file from the filename specified.

File_ExistsA

Tests if a file exists at the path and file name in the zero terminated string.

File_ExistsW

Tests if a file exists at the path and file name in the zero terminated string.

File_FileSize

Returns the size of a file, from a file handle.

File_Flush

Flush a files buffers to disk.

File_MapSharedMemory

Create a file mapping for shared memory.

File_OpenA

Opens an existing file from the filename specified.

File_OpenW

Opens an existing file from the filename specified.

File_Read

Read a file using a file handle.

File_ReadFileToMemoryA

Reads a disk file into memory and returns the address and length in two QWORD variables.

File_ReadFileToMemoryW

Reads a disk file into memory and returns the address and length in two QWORD variables.

File_SizeA

Returns the size of a file if it exists.

File_SizeW

Returns the size of a file if it exists.

File_UnmapSharedMemory

Unmap a file mapping that was used for shared memory.

File_Write

Write a file using a file handle.

File_WriteMemoryToFileA

Write the contents of a memory buffer to a disk file.

File_WriteMemoryToFileW

Write the contents of a memory buffer to a disk file.

Path_GetAppPath

Returns the address of the running application’s path as a zero terminated string with the filename removed.

Path_GetPathOnly

Reads the path of a complete full filename and path and returns just the path portion in the destination buffer.

Path_NameFromPath

Reads the filename from a complete path and returns it in the buffer specified.

ANSI File Function

Description

File_CreateA

Creates a new file from the filename specified.

File_ExistsA

Tests if a file exists at the path and file name in the zero terminated string.

File_OpenA

Opens an existing file from the filename specified.

File_ReadFileToMemoryA

Reads a disk file into memory and returns the address and length in two QWORD variables.

File_SizeA

Returns the size of a file if it exists.

File_WriteMemoryToFileA

Write the contents of a memory buffer to a disk file.

UNICODE File Function

Description

File_CreateW

Creates a new file from the filename specified.

File_ExistsW

Tests if a file exists at the path and file name in the zero terminated string.

File_OpenW

Opens an existing file from the filename specified.

File_ReadFileToMemoryW

Reads a disk file into memory and returns the address and length in two QWORD variables.

File_SizeA

Returns the size of a file if it exists.

File_WriteMemoryToFileW

Write the contents of a memory buffer to a disk file.