NW_AFP_FILE_INFO
Defines file information for AFP files
- Service:AFP
- Defined In:nwafp.h
Structure
typedef struct
{
nuint32 entryID ;
nuint32 parentID ;
nuint16 attributes ;
nuint32 dataForkLength ;
nuint32 resourceForkLength ;
nuint16 numOffspring ;
nuint16 creationDate ;
nuint16 accessDate ;
nuint16 modifyDate ;
nuint16 modifyTime ;
nuint16 backupDate ;
nuint16 backupTime ;
nuint8 finderInfo [32];
nstr8 longName [34];
nuint32 ownerID ;
nstr8 shortName [14];
nuint16 accessPrivileges ;
nuint8 proDOSInfo [6];
} NW_AFP_FILE_INFO, AFPFILEINFO;
Delphi Structure
uses calwin32
AFPFILEINFO = packed Record
entryID : nuint32;
parentID : nuint32;
attributes : nuint16;
dataForkLength : nuint32;
resourceForkLength : nuint32;
numOffspring : nuint16;
creationDate : nuint16;
accessDate : nuint16;
modifyDate : nuint16;
modifyTime : nuint16;
backupDate : nuint16;
backupTime : nuint16;
finderInfo : Array[0..31] Of nuint8;
longName : Array[0..33] Of nstr8;
ownerID : nuint32;
shortName : Array[0..13] Of nstr8;
accessPrivileges : nuint16;
proDOSInfo : Array[0..5] Of nuint8
End;
Fields
- entryID
- Specifies the unique AFP identifier of a file or
directory.
- parentID
- Specifies the unique AFP identifier for the parent
directory. The root will be 0.
- attributes
- Specifies the set of bits identifying the entry’s
attributes:
- 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
- dataForkLength
- Specifies the data size of the target AFP file.
If pathModString specifies an AFP directory, dataForkLength returns
a zero (0).
- resourceForkLength
- Specifies the resource fork size of the target AFP
file. If pathModString specifies an AFP directory, resourceForkLength returns
a zero.
- numOffspring
- Specifies the number of files and subdirectories
contained within the specified directory. If the AFP directory or
file path specifies an AFP file, numOffspring returns
a zero (0).
- creationDate
- Specifies the creation date (in AFP format) of the
target directory or file.
- accessDate
- Specifies when the target AFP file was last accessed
(returned in AFP format). If pathModString specifies
an AFP directory, accessDate returns a zero.
- modifyDate
- Specifies the last modified date (in AFP format)
of the target AFP file. If pathModString specifies
an AFP directory, modifyDate returns zero.
- modifyTime
- Specifies the last modified time (in AFP format)
of the target AFP file. If pathModString specifies
an AFP directory, modifyTime returns zero.
- backupDate
- Specifies the last backup date (in AFP format) of
the specified directory or file.
- backupTime
- Specifies the last backup time (in AFP format) of
the specified directory or file.
- finderInfo
- Specifies the 32-byte finder information structure
associated with each AFP directory or file.
- longName
- Specifies the AFP directory or file name of the
specified directory or file. An AFP directory or file name can be
from 1 to 31 characters long. longName is a null-terminated
ASCII string. One extra byte has been added for the NULL terminator
and another byte has been added to ensure word alignment.
- ownerID
- Specifies the 4-byte bindery object ID of the object
creating or last modifying the file.
- shortName
- Specifies the NetWare® directory or file name of
the specified directory or file in the DOS name space. A NetWare
directory or file name is in DOS 8.3 format. shortName is
a null-terminated ASCII string. One extra byte has been added for
the NULL terminator and another byte has been added to ensure word
alignment.
- accessPrivileges
- Specifies the one-word bit mask of the calling station’s
privileges for accessing the specified file or directory.
- proDOSInfo
- Specifies the 6-byte structure defined in Apple
documentation.