NWDSGetObjectCount

Returns the number of objects whose information is stored in a result buffer.

NetWare Server:4.x, 5.x, 6.x
Platform:NLM, Windows NT, Windows 95, Windows 98, Windows 2000, Windows XP
Library:Cross-Platform NDS (NET*.*)
Service:NDS

Syntax

C

  #include <nwnet.h> 
  or 
  #include <nwdsbuft.h> 
   
  N_EXTERN_LIBRARY (NWDSCCODE)  NWDSGetObjectCount  ( 
     NWDSContextHandle   context,  
     pBuf_T              buf,  
     pnuint32            objectCount); 
  

Pascal

  uses netwin32 
   
  Function NWDSGetObjectCount 
    (context : NWDSContextHandle; 
     buf : pBuf_T; 
     objectCount : pnuint32 
  ) : NWDSCCODE;
  

Parameters

context

(IN) Specifies the NDS context for the request.

buf

(IN) Points to the result buffer being read.

objectCount

(OUT) Points to the number of objects whose information is stored in the result buffer.

Return Values

0x0000 0000

SUCCESSFUL

nonzero value

Nonzero values indicate errors. See NDS Return Values (–001 to –799).

Remarks

NWDSGetObjectCount must be the first function used to read a result buffer containing information about objects, such as result buffers filled in by NWDSList, NWDSRead, and NWDSSearch. See these functions for more information.

NCP Calls

See Also

NWDSGetAttrName, NWDSGetAttrVal, NWDSGetObjectName, NWDSList, NWDSRead, NWDSSearch