求助! 这样调用一个API啊 ( 积分: 50 )

  • 主题发起人 主题发起人 hartlen
  • 开始时间 开始时间
H

hartlen

Unregistered / Unconfirmed
GUEST, unregistred user!
这是一个关于AD认证的函数ldap_bind<br>ULONG ldap_bind(<br> &nbsp;LDAP* ld,<br> &nbsp;PCHAR dn,<br> &nbsp;PCHAR cred,<br> &nbsp;ULONG method<br>);<br><br>Parameters<br>ld <br>[in] The session handle. <br>dn <br>[in] A pointer to a null-terminated string that contains the distinguished name of the entry used to bind. <br>cred <br>[in] A pointer to a null-terminated string that contains the credentials to use for authentication. Arbitrary credentials can be passed using this parameter. The format and content of the credentials depend on the setting of the method parameter. For more information, see the Remarks section. <br>method <br>[in] The authentication method to use. <br>Return Values<br>If the function succeeds, the return value is the message ID of the initiated operation.<br>If the function fails, it returns –1 and sets the session error parameters in the LDAP structure.<br><br>网站 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_bind.asp<br><br>我怎么改才能用在delphi中啊!<br><br>谢谢
 
这是一个关于AD认证的函数ldap_bind<br>ULONG ldap_bind(<br> &nbsp;LDAP* ld,<br> &nbsp;PCHAR dn,<br> &nbsp;PCHAR cred,<br> &nbsp;ULONG method<br>);<br><br>Parameters<br>ld <br>[in] The session handle. <br>dn <br>[in] A pointer to a null-terminated string that contains the distinguished name of the entry used to bind. <br>cred <br>[in] A pointer to a null-terminated string that contains the credentials to use for authentication. Arbitrary credentials can be passed using this parameter. The format and content of the credentials depend on the setting of the method parameter. For more information, see the Remarks section. <br>method <br>[in] The authentication method to use. <br>Return Values<br>If the function succeeds, the return value is the message ID of the initiated operation.<br>If the function fails, it returns –1 and sets the session error parameters in the LDAP structure.<br><br>网站 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ldap/ldap/ldap_bind.asp<br><br>我怎么改才能用在delphi中啊!<br><br>谢谢
 
各位帮帮忙啊!<br>我很想知道怎么解决啊!<br><br>感激!
 
后退
顶部