NWAFPOpenFileFork
Opens an AFP file fork from a DOS environment
#include <nwafp.h>
or
#include <nwcalls.h>
NWCCODE NWAPI NWAFPOpenFileFork (
NWCONN_HANDLE conn,
nuint16 volNum,
nuint32 AFPEntryID,
nuint8 forkIndicator,
nuint8 accessMode,
const nstr8 N_FAR *AFPPathString,
pnuint32 fileID,
pnuint32 forkLength,
pnuint8 NWHandle,
NWFILE_HANDLE N_FAR *DOSFileHandle);
uses calwin32
Function NWAFPOpenFileFork
(conn : NWCONN_HANDLE;
volNum : nuint16;
AFPEntryID : nuint32;
forkIndicator : nuint8;
accessMode : nuint8;
const AFPPathString : pnstr8;
fileID : pnuint32;
forkLength : pnuint32;
NWHandle : pnuint8;
Var DOSFileHandle : NWFILE_HANDLE
) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
If a file does not exist, NWAFPOpenFileFork returns NO_FILES_FOUND_ERROR.
If an existing file does not have a resource or data file fork associated with it, NWAFPOpenFileFork will automatically create and open the specified file fork.
accessMode can have the following values: