GetEAInfo

Returns information about the EAs for a particular open file

Local Servers:blocking
Remote Servers:blocking
Classification:3.11, 3.12, 3.2, 4.x, 5.x, 6.x
Service:Server-Based Extended Attributes

Syntax

  #include <\nlm\nit\nwextatt.h>  
   
  int GetEAInfo (  
     int    handle,  
     LONG  *totalEAs,  
     LONG  *totalDataSizeOfEAs,  
     LONG  *totalKeySizeOfEAs);
  

Parameters

handle
(IN) Specifies the EA handle of the (open) file to return EA information about.
totalEAs
(OUT) Returns the number of EAs defined for the file.
totalDataSizeOfEAs
(OUT) Returns the sum of the sizes of the data portion of all the EAs.
totalKeySizeOfEAs
(OUT) Returns the sum of the sizes of the key portion of all the EAs.

Return Values

This function returns a value of 0 if successful. Otherwise, it returns an error code (nonzero value).

Remarks

This function is returned to get basic information about the set of EAs of a particular file. This information can be used along with the function EnumerateEA to get more detailed information about the EAs of a file.

See Also

CloseEA, EnumerateEA, OpenEA