Close Directory (QHFCLODR) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: No

The Close Directory (QHFCLODR) API closes a specified directory that was opened using the Open Directory (QHFOPNDR) API. Once a directory is closed, the open directory handle that refers to it is no longer valid. If a process ends without closing directories, they are closed automatically. However, it is best if the application closes directories that it no longer needs so that other applications have free access to them.


Authorities and Locks

None.


Required Parameter Group

Open directory handle
INPUT; CHAR(16)

The directory handle returned by the QHFOPNDR API when the directory was opened.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


Error Messages



API introduced: V2R1

[ Back to top | Hierarchical File System APIs | APIs by category ]