Directory Services |
The DsFreePasswordCredentials function frees memory allocated for a credentials structure by the DsMakePasswordCredentials function.
void DsFreePasswordCredentials( RPC_AUTH_IDENTITY_HANDLE AuthIdentity );
When the handle in AuthIdentitity is passed to DsBindWithCred, DsUnbind must be called before freeing this handle. The normal sequence of events is:
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Redistributable: Requires Active Directory Client Extension
on Windows NT 4.0 SP6a and Windows 95/98/Me.
Header: Declared in Ntdsapi.h.
Library: Use Ntdsapi.lib.
DsMakePasswordCredentials, DsBindWithCred, DsUnbind, Domain Controller and Replication Management Functions