NWAFPCreateFile
Creates an AFP file
#include <nwafp.h>
or
#include <nwcalls.h>
NWCCODE NWAPI NWAFPCreateFile (
NWCONN_HANDLE conn,
nuint16 volNum,
nuint32 AFPEntryID,
nuint8 delExistingFile,
pnuint8 finderInfo,
pnstr8 AFPPathString,
pnuint32 newAFPEntryID);
uses calwin32
Function NWAFPCreateFile
(conn : NWCONN_HANDLE;
volNum : nuint16;
AFPEntryID : nuint32;
delExistingFile : nuint8;
finderInfo : pnuint8;
AFPPathString : pnstr8;
newAFPEntryID : pnuint32
) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
The file resulting from NWAFPCreateFile is not opened; it is created as a normal Read/Write file with the system and hidden bits cleared.
For AFPPathString, byte 0 must be the length of the file name. The file name begins at byte 1 of the string. (Only include the file name—not the full path name—when calling NWAFPCreateFile.)
NWOpenNSEntry, NWOpenDataStream (Multiple and Inter-File Services), NWAFPDelete, NWAFPRename