Section contents
cfile.oxh
Use this class to get a list of the entries for all files which are currently open in a particular file server session. OpenFileScanNext creates a list of the files opened by the session. The ID of the thread which opened the files listed may be obtained by calling OpenFileScanThreadId. If multiple sessions are in use, repeatedly calling OpenFileScanNext will return a list of open files in each session.
this& = NewOpenFileScan&:(fs&)
The C++ constructor constructs the OpenFileScan object with a file server session.
this& |
An value which represents the created OpenFileScan entry |
If the object could not be created then an error is generated
which should be trapped by an ONERR
handler.
LOCAL this&,fs& this& = NewOpenFileScan&:(fs&) DeleteOpenFileScan:(this&)
DeleteOpenFileScan:(BYREF this&)
Destroys the OpenFileScan object.
BYREF this& |
A handle to a OpenFileScan object |
LOCAL this&,fs& this& = NewOpenFileScan&:(fs&) DeleteOpenFileScan:(this&)
OpenFileScanNext:(this&,BYREF filelist&)
Use this function to get a list of entries for the open files in a file server session.
this& |
A handle to a OpenFileScan object |
BYREF filelist& |
On return, contains a list of entries for all open files in a file server session. |
If the scan fails then an error is generated which should be
trapped by an ONERR
handler.
id& = OpenFileScanThreadId&:(this&)
Use this function to get the ID of the thread which opened the files listed by OpenFileScaneNext.
this& |
A handle to a OpenFileScan object |
id& |
ID of the thread which opened the files in the file list |
If the scan fails then an error is generated which should be
trapped by an ONERR
handler.