NWFindFirstEAExt
Initializes the find-first/find-next Extended Attribute process, using UFT-8 path and filenames
#include <nwnamspc.h> #include <nwea.h> or #include <nwcalls.h> N_EXTERN_LIBRARY(NWCCODE) NWFindFirstEAExt ( NWCONN_HANDLE conn, const NW_IDX N_FAR *idxStruct, NW_EA_FF_STRUCT_EXT N_FAR *ffStruct, NW_EA_HANDLE_EXT N_FAR *EAHandle, pnstr8 EAName);
These are common return values; see Return Values (Return Values for C) for more information.
If any EAs exist for the associated file, NWFindFirstEAExt returns the NW_EA_HANDLE_EXT structure. If no EAs exist, NWFindFirstEAExt returns 1.
With a NW_EA_HANDLE_EXT structure, you can call the NWReadEAExt and/or NWWriteEAExt function. Therefore, you do not need to call the NWGetEAHandleStructExt function after NWFindFirstEAExt to initialize a Read or Write.
If you do call the NWGetEAHandleStructExt function in preparation for writing, use the EAName parameter. When you copy by calling either NWFindFirstEAExt or the NWFindNextEAExt 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 NWGetDirectoryBaseExt 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_EXT and NW_EA_FF_STRUCT_EXT structures are for internal use only; do not manipulate these structures in any way.
NWFindFirstEAExt will return INVALID_PARAMETER if NULL is passed to either the ffStruct or EAHandle parameters.
NWFindNextEAExt, NWGetDirectoryBaseExt (Multiple and Inter-File Management), NWGetEAHandleStructExt, NWReadEAExt, NWWriteEAExt