Retrieves an object-class definition from a result buffer.
#include <nwnet.h> or #include <nwdsbuft.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSGetClassDef ( NWDSContextHandle context, pBuf_T buf, pnstr8 className, pClass_Info_T classInfo);
uses netwin32 Function NWDSGetClassDef (context : NWDSContextHandle; buf : pBuf_T; className : pnstr8; classInfo : pClass_Info_T ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the result buffer being read.
(OUT) Points to the name of the object-class definition at the current position in the buffer.
(OUT) Points to the initial portion of the object-class definition.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
NWDSGetClassDef is used to retrieve class definitions from a result buffer filled in by NWDSReadClassDef.
The className parameter points to the name of the current class in the buffer. You must allocate space for the class name. The size of the allocated memory is ((MAX_SCHEMA_NAME_CHARS)+1)*sizeof(characters size) where character size is 1 for single-byte characters, and 2 for Unicode characters (Unicode characters are always 16 bits). One character is used for NULL termination.
If NWDSReadClassDef is called with infoType set to DS_CLASS_DEF_NAMES, classInfo of NWDSGetClassDef is ignored and can be NULL.
For the complete steps on retrieving class information, see Reading a Class Definition.