Bfile CloseFile OS

From WikiPrizm
Revision as of 06:02, 30 July 2014 by Gbl08ma (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


Header: fxcg/file.h
Syscall index: 0x1DA4
Function signature: int Bfile_CloseFile_OS(int handle)

Closes an open file, given its handle.


  • handle - the handle of the file to close (this is the value returned by Bfile_OpenFile_OS)


Using Bfile functions while user timers are installed can cause SYSTEM ERRORs and other undefined behavior, especially with functions that change data on the file system. Make sure to stop and uninstall all timers before using Bfile functions (and optionally restore them later). See Incompatibility between Bfile Syscalls and Timers for more information.