ldap_encode_sort_control 函数将排序键列表的格式设置为搜索控件。 此函数已过时。 请改用 ldap_create_sort_control。
语法
WINLDAPAPI ULONG LDAPAPI ldap_encode_sort_controlW(
[in] PLDAP ExternalHandle,
[in] PLDAPSortKeyW *SortKeys,
[out] PLDAPControlW Control,
[in] BOOLEAN Criticality
);
参数
[in] ExternalHandle
会话句柄。
[in] SortKeys
LDAPSortKey 结构的列表。
[out] Control
指向新控件的指针。
[in] Criticality
通知服务器此控件是否对搜索至关重要。
返回值
如果调用成功完成,则返回 LDAP_SUCCESS。 还可以返回其他标准 LDAP 返回值,例如 LDAP_NO_MEMORY 或 LDAP_PARAM_ERROR。
言论
注意
winldap.h 标头将ldap_encode_sort_control定义为一个别名,该别名根据 UNICODE 预处理器常量的定义自动选择此函数的 ANSI 或 Unicode 版本。 将中性编码别名与不中性编码的代码混合使用可能会导致编译或运行时错误不匹配。 有关详细信息,请参阅函数原型的
要求
要求 | 价值 |
---|---|
最低支持的客户端 | Windows Vista |
支持的最低服务器 | Windows Server 2008 |
目标平台 | 窗户 |
标头 | winldap.h |
库 | Wldap32.lib |
DLL | Wldap32.dll |