Platform SDK: Active Directory, ADSI, and Directory Services |
The DsSetAuthIdentity function sets the security context under which the directory backup APIs are called.
HRESULT DsSetAuthIdentity( LPCWSTR szUserName, LPCWSTR szDomainName, LPCWSTR szPassword );
One of the standard HRESULT success codes; otherwise, a failure code.
If DsSetAuthIdentity is not called, security context of the current process is assumed.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntdsbcli.h.
Library: Included as a resource in Ntdsbcli.dll.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.
Backing Up and Restoring Active Directory, Directory Backup Functions