NWScanNSEntryInfo2

Obtains directory entry information, returning more information and using network bandwidth more efficiently than the NWScanNSEntryInfo function.

Local Servers:blocking
Remote Servers:blocking
NetWare Server:4.11, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98
Library:Cross-Platform NetWare Calls (CAL*.*)
Service:Name Space

Syntax

   #include <nwnamspc.h> 
   or 
   #include <nwcalls.h> 
    
   N_EXTERN_LIBRARY(NWCCODE) NWScanNSEntryInfo2 ( 
      NWCONN_HANDLE           conn,  
      nuint8                  dirHandle,  
      nuint8                  namSpc,  
      nuint16                 attrs,  
      SEARCH_SEQUENCE N_FAR  *sequence,  
      const nstr8 N_FAR      *srchPattern,  
      nuint32                 retInfoMask,  
      NW_ENTRY_INFO2 N_FAR   *entryInfo);
   

Delphi Syntax

   Function NWScanNSEntryInfo2 ( 
      	conn : NWCONN_HANDLE;
      	dirHandle:nuint8;
      	namSpc: nuint8;
      	attrs : nuint16;
      	Var sequence : SEARCH_SEQUENCE;
      	const srchPattern : pnstr8;
      	retInfoMask : nuint32;
      	Var entryInfo : NW_ENTRY_INFO2
    ) : NWCCODE;
   

Parameters

conn

(IN) Specifies the NetWare server connection handle.

dirHandle

(IN) Specifies the directory handle associated with the directory to scan (must be valid and cannot be zero).

namSpc

(IN) Specifies the name space of dirHandle (see Section 20.5, Name Space Flag Values).

attr

(IN) Specifies the attributes to be used for the scan (see Section 20.8, Search Attributes Values).

sequence

(IN/OUT) Points to SEARCH_SEQUENCE.

srchPattern

(IN) Points to the name of the entry for which to scan (wildcards are allowed).

retInfoMask

(IN) Specifies the information to return (see Section 20.6, Basic Return Mask Values and Section 20.7, Extended Return Mask Values).

entryInfo

(OUT) Points to the NW_ENTRY_INFO2 structure.

Return Values

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

0x0000

SUCCESSFUL

0x8801

INVALID_CONNECTION

0x8813

INVALID_DIR_HANDLE

0x899B

BAD_DIRECTORY_HANDLE

0x899C

INVALID_PATH

0x890A

NLM_INVALID_CONNECTION

0x89FF

NO_FILES_FOUND

Remarks

NWScanNSEntryInfo2 can be used iteratively with wildcards. On the first iteration, set searchDirNumber in the SEARCH_SEQUENCE structure to -1. After that, the server manages the information.

The retInfoMask parameter is used to determine which fields of NW_ENTRY_INFO2 to return; nameLength and entryName are always returned in NWScanNSEntryInfo2.

To request information from a server, a client sets the appropriate bit or bits of retInfoMask and sends a request packet to the server.

NCP Calls

See Also

NWGetNSEntryInfo, NWScanNSEntryInfo