Returns the number of object-class definitions stored in a result buffer.
#include <nwnet.h> or #include <nwdsbuft.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSGetClassDefCount ( NWDSContextHandle context, pBuf_T buf, pnuint32 classDefCount);
uses netwin32 Function NWDSGetClassDefCount (context : NWDSContextHandle; buf : pBuf_T; classDefCount : pnuint32 ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the result buffer being read.
(OUT) Points to the number of object-class definitions stored in the buffer.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
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.