Name
hw_FFlags -- get flags of an open file (V6.0)
Synopsis
ULONG flags = hw_FFlags(APTR fh);
Function
This function returns the flags associated with the file handle passed in parameter 1. The following flags are currently defined:

HWFOPENFLAGS_STREAMING:
If this flag is set, the file is being streamed from a network source. This means that you should try to avoid operations that are inefficient on streaming sources like excessive seeking operations.

HWFOPENFLAGS_NOSEEK:
If this flag is set, you won't be able to seek the file. This means that most calls to hw_FSeek() will fail. The only operations that are still supported by hw_FSeek() are rewinding (i.e. reverting the read/write cursor to the beginning of the file) and querying the current file cursor position. If you want hw_FSeek() to work on files with HWFOPENFLAGS_NOSEEK set too, you may want to set the HWFOPENMODE_EMULATESEEK flag, although this can be very inefficient. See hw_FOpen for details.

Designer compatibility
Supported since Designer 5.0

Inputs
handle
file handle returned by hw_FOpen()
Results
flags
combination of file flags

Show TOC