ldap_msgtype

Returns the type of message associated with the res parameter.

Library:*ldapsdk.*
NDS Version:7.xx or higher
Platform:NLM, Windows (NT, 95, 98, 2000, XP, Vista 32-bit and 64-bit ), Linux (32-bit and 64-bit), Solaris, AIX, and HP-UX

Syntax

  #include <ldap.h>
  
  int ldap_msgtype (
     LDAPMessage   *res);
  
  

Parameters

res

(IN) Points to a message chain returned by the ldap_result, ldap_search_s, ldap_search_st, or ldap_search_ext_s function.

Return Values

>0x60

Type of message

-1

Failure

Remarks

For a list of possible types, see Section 6.9, Result Message Types.

See Also

ldap_msgfree, ldap_msgid