NWFindFirstEA
Initializes the find-first/find-next Extended Attribute process
#include <nwnamspc.h> #include <nwea.h> or #include <nwcalls.h> N_EXTERN_LIBRARY(NWCCODE) NWFindFirstEA ( NWCONN_HANDLE conn, const NW_IDX N_FAR *idxStruct, NW_EA_FF_STRUCT N_FAR *ffStruct, NW_EA_HANDLE N_FAR *EAHandle, pnstr8 EAName);
uses calwin32 Function NWFindFirstEA (conn : NWCONN_HANDLE; Var idxStruct : NW_IDX; Var ffStruct : NW_EA_FF_STRUCT; Var EAHandle : NW_EA_HANDLE; EAName : pnstr8 ) : NWCCODE;
These are common return values; see Return Values (Return Values for C) for more information.
If any EAs exist for the associated file, NWFindFirstEA returns the NW_EA_HANDLE structure. If no EAs exist, NWFindFirstEA returns 1.
The NW_EA_HANDLE structure can call the NWReadEA and/or NWWriteEA function. Therefore, you do not need to call the NWGetEAHandleStruct function after NWFindFirstEA to initialize a Read or Write.
If you do call the NWGetEAHandleStruct function in preparation for writing, use the EAName parameter. When you copy by calling either NWFindFirstEA or the NWFindNextEA function, you must use the EAName parameter. If the EAName parameter is not needed, it can be passed NULL.
Information for the NW_IDX structure is obtained by calling the NWNSGetMiscInfo or NWGetDirectoryBase function. Functions use the NW_IDX structure to hold information concerning the name space and directory entry index of a file. This is how an application associates an Extended Attribute with a particular directory entry.
NOTE:The NW_EA_HANDLE and NW_EA_FF_STRUCT structures are for internal use only; do not manipulate these structures in any way.
NWFindFirstEA will return INVALID_PARAMETER if NULL is passed to either the ffStruct or EAHandle parameters.
NWFindNextEA, NWGetDirectoryBase (Multiple and Inter-File Management), NWGetEAHandleStruct, NWReadEA, NWWriteEA