Difference between revisions of "Bfile FindClose"

From WikiPrizm
Jump to navigationJump to search
(Initial page after experimenting)
 
 
Line 5: Line 5:
 
| signature = int Bfile_FindClose( int FindHandle );
 
| signature = int Bfile_FindClose( int FindHandle );
 
| parameters = * ''int'' '''FindHandle''' - Handle created by [[Bfile_FindFirst]].
 
| parameters = * ''int'' '''FindHandle''' - Handle created by [[Bfile_FindFirst]].
| returns = * 0 on success
+
| returns = 0 on success, or a negative error code on failure.
* <0 on failure
 
 
| synopsis = This function closes a find handle when you are done with it.
 
| synopsis = This function closes a find handle when you are done with it.
 +
| comments = {{BfileTimersWarning}}
 
}}
 
}}
 
[[Category:Syscalls:Bfile]]
 
[[Category:Syscalls:Bfile]]

Latest revision as of 19:39, 29 July 2014


Synopsis

Header: fxcg/file.h
Syscall index: 0x1DBA
Function signature: int Bfile_FindClose( int FindHandle );

This function closes a find handle when you are done with it.

Parameters

Returns

0 on success, or a negative error code on failure.

Comments

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.