NWDSGetClassDefCount

Returns the number of object-class definitions 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)  NWDSGetClassDefCount  ( 
     NWDSContextHandle   context,  
     pBuf_T              buf,  
     pnuint32            classDefCount); 
  

Pascal

  uses netwin32 
   
  Function NWDSGetClassDefCount 
    (context : NWDSContextHandle; 
     buf : pBuf_T; 
     classDefCount : pnuint32 
  ) : NWDSCCODE;
  

Parameters

context

(IN) Specifies the NDS context for the request.

buf

(IN) Points to the result buffer being read.

classDefCount

(OUT) Points to the number of object-class definitions stored in the buffer.

Return Values

0x0000 0000

SUCCESSFUL

nonzero value

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

Remarks

NWDSGetClassDefCount is used to determine the number of object-class definitions stored in a result buffer filled by NWDSReadClassDef.

NWDSGetClassDefCount must be the first function called when reading a result buffer containing a group of object-class definitions.

For the complete steps on retrieving class information from a result buffer, see Reading a Class Definition.

NCP Calls

See Also

NWDSGetClassDef