#include <nwnamspc.h> or #include <nwcalls.h>NWCCODE N_API NWGetNSEntryInfo (NWCONN_HANDLE conn, NWDIR_HANDLE dirHandle, pnstr8 path, nuint8 srcNamSpc, nuint8 dstNamSpc, nuint16 searchAttrs, nuint32 retInfoMask, NW_ENTRY_INFO N_FAR entryInfo);
dirHandle can be zero if path contains the complete path, including the volume name. dirHandle and/or path contains the entry name according to srcNamSpc This information is returned for dstNamSpc.
searchAttrs values follow:
C Value | Value Name | Value Description |
---|---|---|
0x00 | TA_NONE | Specifies no Reads or Writes are allowed. |
0x01 | TA_READ | Specifies file Reads are allowed. |
0x02 | TA_WRITE | Specifies file Writes are allowed. |
0x04 | TA_OPEN | Specifies files can be opened; obsolete in 3.x and higher. |
0x08 | TA_CREATE | Specifies files can be created. |
0x10 | TA_DELETE | Specifies files can be deleted. |
0x20 | TA_OWNERSHIP | Specifies subdirectories can be created or deleted and trustee rights granted or revoked. |
0x40 | TA_SEARCH | Specifies the directory can be searched. |
0x80 | TA_MODIFY | Specifies file attributes can be modified. |
0xFB | TA_ALL | Specifies the trustee has all the above rights to the directory. |
-------------------------------------------------- | C Value| Value Name | Value Description | |--------|-----------------|----------------------| | 0x00 | TA_NONE | Specifies no Reads | | | | or Writes are | | | | allowed. | |--------|-----------------|----------------------| | 0x01 | TA_READ | Specifies file Reads| | | | are allowed. | |--------|-----------------|----------------------| | 0x02 | TA_WRITE | Specifies file | | | | Writes are allowed. | |--------|-----------------|----------------------| | 0x04 | TA_OPEN | Specifies files can | | | | be opened; obsolete | | | | in 3.x and higher. | |--------|-----------------|----------------------| | 0x08 | TA_CREATE | Specifies files can | | | | be created. | |--------|-----------------|----------------------| | 0x10 | TA_DELETE | Specifies files can | | | | be deleted. | |--------|-----------------|----------------------| | 0x20 | TA_OWNERSHIP | Specifies | | | | subdirectories can | | | | be created or | | | | deleted and trustee | | | | rights granted or | | | | revoked. | |--------|-----------------|----------------------| | 0x40 | TA_SEARCH | Specifies the | | | | directory can be | | | | searched. | |--------|-----------------|----------------------| | 0x80 | TA_MODIFY | Specifies file | | | | attributes can be | | | | modified. | |--------|-----------------|----------------------| | 0xFB | TA_ALL | Specifies the | | | | trustee has all the | | | | above rights to the | | | | directory. | |--------|-----------------|----------------------|
To request information from a server, a client sets the appropriate bit or bits of retInfoMask and sends a request packet to the server.
Name Space