Directory Services |
The DsSetAuthIdentity function sets the security context under which the directory backup APIs are called.
HRESULT DsSetAuthIdentity( LPCTSTR szUserName, LPCTSTR szDomainName, LPCTSTR 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.
Client: Included in Windows XP and
Windows 2000 Professional.
Server: Included in Windows Server 2003 and
Windows 2000 Server.
Unicode: Implemented as Unicode and ANSI versions.
Header: Declared in Ntdsbcli.h.
Library: Use Ntdsbcli.lib.
Backing Up and Restoring Active Directory, Directory Backup Functions