Export (0) Print
Expand All

DsFreePasswordCredentials function

The DsFreePasswordCredentials function frees memory allocated for a credentials structure by the DsMakePasswordCredentials function.

Syntax


VOID WINAPI DsFreePasswordCredentials(
  _In_  RPC_AUTH_IDENTITY_HANDLE AuthIdentity
);

Parameters

AuthIdentity [in]

Handle of the credential structure to be freed.

Return value

This function does not return a value.

Remarks

When the handle in AuthIdentity is passed to DsBindWithCred, DsUnbind must be called before freeing this handle. The normal sequence of events is:

  1. Call DsMakePasswordCredentials to obtain the credential handle.
  2. Call DsBindWithCred, passing the credential handle.
  3. Call DsUnbind when the RPC connection is no longer required.
  4. Call DsFreePasswordCredentials to free the credential handle.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Active Directory Client Extension on Windows NT 4.0 and Windows Me/98/95

Header

Ntdsapi.h

Library

Ntdsapi.lib

DLL

Ntdsapi.dll

See also

DsMakePasswordCredentials
DsBindWithCred
DsUnbind
Domain Controller and Replication Management Functions

 

 

Show:
© 2014 Microsoft