reference:plugins:vfs_plugins:vfs_closefile

VFS_CloseFile(
     HANDLE:hVFSData,
     LPVFSFUNCDATA:lpFuncData,
     HANDLE:hFile
)
→ void

Arguments

hVFSData

[in] The handle to the namespace instance data

lpFuncData

[in] unused

hFile

[in] the handle to the file that is to be closed

Return value

There is no return value.

Description

The VFS_CloseFile function is called to close a file handle previously opened by VFS_CreateFile.

You should take any steps necessary to close the file (including flushing any write buffers if appropriate) and free any memory involved in the original allocation of the file handle.