Identifies names and lengths of extended attributes for a specific file or subdirectory.

#define INCL_DOSFILEMGR
#include <os2.h>

ULONG     ulRefType;    /*  A value that indicates whether pvFile points to a handle or to an ASCIIZ name. */
PVOID     pvFile;       /*  Address of the handle of a file returned by DosOpen; or the ASCIIZ name of a file or subdirectory. */
ULONG     ulEntry;      /*  Ordinal of an entry in the file object's EA list, which indicates where in the list to begin the return of EA information. */
PVOID     pvBuf;        /*  Address of the buffer where EA information is returned. */
ULONG     cbBuf;        /*  The length, in bytes, of the buffer pointed to by pvBuf. */
PULONG    pulCount;     /*  Pointer to number of EAs. */
ULONG     ulInfoLevel;  /*  Level of information required. */
APIRET    ulrc;         /*  Return Code. */

ulrc = DosEnumAttribute(ulRefType, pvFile,
         ulEntry, pvBuf, cbBuf, pulCount,
         ulInfoLevel);


[Back] [Next]