Returns the message ID associated with the res parameter.
#include <ldap.h> int ldap_msgid ( LDAPMessage *res);
(IN) Points to a message chain returned by the ldap_result, ldap_search_s, ldap_search_st, or ldap_search_ext_s function.
>0
The message ID
-1
Failure
ldap_msgfree, ldap_msgtype