ber_free 函数释放以前使用 ber_alloc_t、ber_init 或ldap_first_attribute/ ldap_next_attribute搜索函数分配的BerElement 结构。
语法
WINBERAPI VOID BERAPI ber_free(
[in] BerElement *pBerElement,
[in] INT fbuf
);
参数
[in] pBerElement
指向要解除分配的 BerElement 结构的指针。
[in] fbuf
如果释放由 ldap_first_attribute/ ldap_next_attribute分配的结构,则必须设置为 0,否则必须设置为 1。
返回值
无。
要求
| 要求 | 值 |
|---|---|
| 最低受支持的客户端 | Windows Vista |
| 最低受支持的服务器 | Windows Server 2008 |
| 目标平台 | Windows |
| 标头 | winber.h |
| Library | Wldap32.lib |
| DLL | Wldap32.dll |