Returns the number of eDirectory syntaxes whose information is stored in a result buffer filled by NWDSReadSyntaxes.
#include <nwnet.h> or #include <nwdsbuft.h> N_EXTERN_LIBRARY (NWDSCCODE) NWDSGetSyntaxCount ( NWDSContextHandle context, pBuf_T buf, pnuint32 syntaxCount);
uses netwin32 Function NWDSGetSyntaxCount (context : NWDSContextHandle; buf : pBuf_T; syntaxCount : pnuint32 ) : NWDSCCODE;
(IN) Specifies the NDS context for the request.
(IN) Points to the buffer being read.
(OUT) Points to the number of syntaxes stored in the buffer.
0x0000 0000 |
SUCCESSFUL |
nonzero value |
Nonzero values indicate errors. See |
Before reading the syntax information from a result buffer filled by NWDSReadSyntaxes, you must first call NWDSGetSyntaxCount to determine the number of syntaxes whose information is stored in the buffer.
When NWDSGetSyntaxCount returns, the location pointed to by syntaxCount specifies the number of syntaxes whose information is stored in the buffer. To remove the syntax information from the result buffer, call NWDSGetSyntaxDef once for each syntax whose information is stored in the buffer.
For complete steps on retrieving information about the syntaxes in the eDirectory schema, see Retrieving Syntax Names and Definitions.