Returns the attributes of the object by specifying an open file handle.
#include <nks/dirio.h> int NXGetAttrWithHandle ( NXHandle_t handle, NXPathFormat_t format, NXDeLevel_t level, void *buffer, size_t length, unsigned long flags);
(IN) Specifies the handle on which an object is currently open.
(IN) Specifies the pathname format in which to return the information. See NXPathFormat_t Enumeration.
(IN) Specifies the level of information required (see NXDeLevel_t Enumeration).
(IN) Points to a caller allocated buffer. See Section 19.4, NKS Directory Attribute Structures for the possible structures to be returned in this buffer.
(IN) Specifies the size of the buffer pointed to by buffer.
(IN) Pass 0.
If successful, returns 0. Otherwise, returns one of the following error codes:
NXGetAttrWithHandle looks up the attributes of the object opened on the file handle.
If the pathname format is specified as NX_PNF_DEFAULT, the format in effect at open time will be used. What this format is (what sort of structure is returned) is specified in buffer (see below) in the pathFormat field of NXDeHeader_t (either deHeader or xdeHeader of the structure that is the format of buffer).
The attributes are returned in the buffer pointed to by buffer.
If level is set to NX_DELEVEL_ BASIC, the buffer is filled with an NXDirAttr_t structure.
If level is set to NX_DELEVEL_NAME_ONLY, the buffer is filled with an NXDirAttrWithName_t structure. The buffer must be large enough to hold both the NXDirAttrWithName_t structure and object's name. To ensure this, you probably should turn NXDirAttrWithName_t into a link.
If level is set to NX_DELEVEL_EXTENDED, the buffer is filled with any of the following structures, depending on the pathname format of the handle:
For more information, see NXGetAttr.