LdapGetLastError 函式會擷取 LDAP 呼叫傳回的最後一個錯誤碼。
Syntax
WINLDAPAPI ULONG LDAPAPI LdapGetLastError();
傳回值
LDAP 錯誤碼。
備註
LdapGetLastError 函式會傳回呼叫它之線程上最後一個 LDAP 作業的 LDAP 錯誤碼。 如需可能的錯誤碼清單,請參閱 傳回值 。
多線程: LdapGetLastError 函式是安全線程的。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows Vista |
| 最低支援的伺服器 | Windows Server 2008 |
| 目標平台 | Windows |
| 標頭 | winldap.h |
| 程式庫 | Wldap32.lib |
| Dll | Wldap32.dll |