NWAFPSetFileInformation
Sets AFP information for a file or directory
#include <nwafp.h>
or
#include <nwcalls.h>
NWCCODE NWAPI NWAFPSetFileInformation (
NWCONN_HANDLE conn,
nuint16 volNum,
nuint32 AFPBaseID,
nuint16 reqMask,
const nstr8 N_FAR *AFPPathString,
nuint16 structSize,
NW_AFP_SET_INFO N_FAR *AFPSetInfo);
uses calwin32
Function NWAFPSetFileInformation
(conn : NWCONN_HANDLE;
volNum : nuint16;
AFPBaseID : nuint32;
reqMask : nuint16;
const AFPPathString : pnstr8;
structSize : nuint16;
Var AFPSetInfo : NW_AFP_SET_INFO
) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
The following constants are used by NWAFPSetFileInformation to manipulate requestMask. They are also used in by NWSEARCH_MASK in NWAFPScanFileInformation.
These constants identify AFP entries to be included in NWAFPSetFileInformation.
|
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 |
Valid bit map information request values follow for reqMask: (Bits can be ORed together.)
AFPSETINFO 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
NWAFPGetFileInformation, NWAFPScanFileInformation, NWSetLongName (Multiple and Inter-File Services)