ldap_count_references函式 (winldap.h)
ldap_count_references函式會計算伺服器傳回的次級參考數目,以回應搜尋要求。
語法
WINLDAPAPI ULONG LDAPAPI ldap_count_references(
[in] LDAP *ld,
[in] LDAPMessage *res
);
參數
[in] ld
會話句柄。
[in] res
呼叫其中一個同步搜尋例程或 ldap_result取得的搜尋結果。
傳回值
如果函式成功,它會傳回參考數目。
如果函式失敗,它會傳回 –1,並在LDAP數據結構中設定會話錯誤參數。
備註
ldap_count_references函式會傳回搜尋結果鏈結中包含的參考數目。 它也可以用來計算保留在鏈結中的參考數目。 使用來自 ldap_first_entry、ldap_next_entry、ldap_first_reference、ldap_next_reference 或 ldap_result 的傳回值呼叫 函式。
規格需求
需求 | 值 |
---|---|
最低支援的用戶端 | Windows Vista |
最低支援的伺服器 | Windows Server 2008 |
目標平台 | Windows |
標頭 | winldap.h |
程式庫 | Wldap32.lib |
Dll | Wldap32.dll |