NWFindFirstEAExt

Initializes the find-first/find-next Extended Attribute process, using UFT-8 path and filenames

Local Servers:blocking
Remote Servers:blocking
NetWare Server:6.5 SP2 or later
Platform:NLM, Windows 2000, Windows XP
Client:4.90 SP2 or later
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Extended Attribute

Syntax

  #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);
  

Parameters

conn
(IN) Specifies the NetWare® server connection handle.
idxStruct
(IN) Points to the NW_IDX structure containing the directory entry index. See NW_IDX in Multiple and Inter-File Services.
ffStruct
(OUT) Points to the NW_EA_FF_STRUCT_EXT structure.
EAHandle
(OUT) Points to the NW_EA_HANDLE_EXT structure for the Extended Attribute.
EAName
(OUT) Points to the name of the Extended Attribute (optional).

Return Values

These are common return values; see Return Values (Return Values for C) for more information.

0x0000

SUCCESSFUL

0x0001

No EAs

0x8801

INVALID_CONNECTION

0x8836

INVALID_PARAMETER

0x88F0

UTF8_CONVERSION_FAILED

0x890A

NLM_INVALID_CONNECTION

Remarks

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.

NCP Calls

See Also

NWFindNextEAExt, NWGetDirectoryBaseExt (Multiple and Inter-File Management), NWGetEAHandleStructExt, NWReadEAExt, NWWriteEAExt