Returns directory information for a directory specified by the connection handle, directory handle, and directory path
#include <nwdirect.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWIntScanDirectoryInformation2 (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
const nstr8 N_FAR *srchPath,
pnuint8 sequence,
pnstr8 dirName,
pnuint32 dirDateTime,
pnuint32 ownerID,
pnuint8 rightsMask,
nuint16 augmentFlag);
uses calwin32
Function NWIntScanDirectoryInformation2
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
searchPath : pnstr8;
sequence : pnuint8;
dirName : pnstr8;
dirDateTime : pnuint32;
ownerID : pnuint32;
rightsMask : pnuint8;
augmentFlag : nuint16
) : NWCCODE;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the NetWare directory handle for the directory being scanned.
(IN) Points to an absolute directory path with a maximum length of 255 (or a path relative to the directory handle) and a search pattern (optional).
(IN/OUT) Points to a 9-byte sequence number to be used for subsequent calls (the first 4 bytes should be 0xFF initially).
(OUT) Points to the directory name found (256 bytes, optional).
(OUT) Points to the creation date and time of the directory (4 bytes, optional) in the DOS date and time format.
(OUT) Points to the object ID of the owner for the directory (optional).
(OUT) Points to the maximum rights mask for the directory found (optional).
(IN) Specifies if wildcards are augmented:
These are common return values; see Return Values (Return Values for C) for more information.
All parameter fields must be filled. However, NULL may be substituted in parameters where no information is desired.
The dirHandle parameter can be zero if the srchPath parameter points to the complete path, including the volume name.
The string accessed by the srchPath parameter can include wildcard characters. If wildcards are used, only the directory information for the first matching directory is returned.
The rightsMask parameter can have the following values:
0x00 = TA_NONE 0x01 = TA_READ 0x02 = TA_WRITE 0x04 = TA_OPEN 0x08 = TA_CREATE 0x10 = TA_DELETE 0x20 = TA_OWNERSHIP 0x40 = TA_SEARCH 0x80 = TA_MODIFY 0xFB = TA_ALL
NOTE:TA_OPEN is obsolete in NetWare 3.x and above.