Scans a directory for the extended file information
#include <nwdentry.h>
or
#include <nwcalls.h>
N_EXTERN_LIBRARY(NWCCODE) NWIntScanExtendedInfo (
NWCONN_HANDLE conn,
NWDIR_HANDLE dirHandle,
nuint8 attrs,
pnuint32 iterHandle,
const nstr8 N_FAR *searchPattern,
NW_EXT_FILE_INFO N_FAR *entryInfo,
nuint16 augmentFlag);
uses calwin32
Function NWIntScanExtendedInfo
(conn : NWCONN_HANDLE;
dirHandle : NWDIR_HANDLE;
attrs : nuint8;
iterHandle : pnuint32;
const searchPattern : pnstr8;
Var entryInfo : NW_EXT_FILE_INFO;
augmentFlag : nuint16
) : NWCCODE ;
(IN) Specifies the NetWare server connection handle.
(IN) Specifies the NetWare directory handle for the directory to be scanned.
(IN) Specifies the search attributes.
(IN/OUT) Points to the search sequence number (-1 initially).
(IN) Points to the pattern for which to search (no wildcards are allowed).
(OUT) Points to the NW_EXT_FILE_INFO structure containing the extended file information.
(IN) Specifies if wildcards are augmented:
These are common return values; see Return Values (Return Values for C) for more information.
NWIntScanExtendedInfo works only on files, not on directories.
All scanning is complete when the server returns 0x89FF.
NWIntScanExtendedInfo is synonymous with the NWIntScanDirEntryInfo function and uses an extension of the information structure.
The iterHandle parameter should point to 0xFFFFFFFF for the first call.
The attrs parameter is used to include system and/or hidden files. If only the system bit is set in the attrs parameter, all files are affected except hidden files. If only the hidden bit is set, all files are affected except system files. When neither bit is set (0x00), only files designated either hidden or system are affected.
NOTE:A file is designated hidden or system if its corresponding file attribute is set.
The attrs parameter can have the following values:
|
C Value |
Delphi Value |
Value Name |
|---|---|---|
|
0x00 |
$00 |
FA_NORMAL |
|
0x02 |
$02 |
FA_HIDDEN |
|
0x04 |
$04 |
FA_SYSTEM |
|
0x10 |
$10 |
FA_DIRECTORY |
The extended file information contains the information returned by the NWIntScanDirEntryInfo function plus the sizes of the data and resource forks. NWIntScanExtendedInfo also returns the physical size of a file.
NOTE:In the case of sparse files, the logical size may be much larger than the physical size.