NWAFPScanFileInformation
Scans a directory and returns AFP file/directory information
#include <nwafp.h>
or
#include <nwcalls.h>
NWCCODE NWAPI NWAFPScanFileInformation (
NWCONN_HANDLE conn,
nuint16 volNum,
nuint32 AFPEntryID,
pnuint32 AFPLastSeenID,
nuint16 searchMask,
nuint16 reqMask,
const nstr8 N_FAR *AFPPathString,
nuint16 structSize,
NW_AFP_FILE_INFO N_FAR *AFPFileInfo);
uses calwin32
Function NWAFPScanFileInformation
(conn : NWCONN_HANDLE;
volNum : nuint16;
AFPEntryID : nuint32;
AFPLastSeenID : pnuint32;
searchMask : nuint16;
reqMask : nuint16;
const AFPPathString : pnstr8;
structSize : nuint16;
Var AFPFileInfo : NW_AFP_FILE_INFO
) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
AFPLastSeenID should be initialized to -1 on the first iteration.
Valid bit map information request values follow for reqMask. (Bits can be ORed together.)
NWSEARCH_MASK is defined as follows:
|
C Values |
Delphi Values |
Value Names |
|---|---|---|
|
0x0000 |
$0000 |
AFP_SA_NORMAL |
|
0x0100 |
$0100 |
AFP_SA_HIDDEN |
|
0x0200 |
$0200 |
AFP_SA_SYSTEM |
|
0x0400 |
$0400 |
AFP_SA_SUBDIR |
|
0x0800 |
$0800 |
AFP_SA_FILES |
|
0xF00 |
$0F00 |
AFP_SA_ALL |
AFPFILEINFO attributes follow:
0x0001 = Search Mode 0x0002 = Search Mode 0x0004 = Search Mode 0x0008 = Undefined 0x0010 = Transaction 0x0020 = Index 0x0040 = Read Audit 0x0080 = Write Audit 0x0100 = Read Only 0x0200 = Hidden 0x0400 = System 0x0800 = Execute Only 0x1000 = Subdirectory 0x2000 = Archive 0x4000 = Undefined 0x8000 = Shareable File