Directory Services |
The DsIsNTDSOnline function verifies that the Windows NT/Windows 2000 Active Directory service is online on the specified server.
HRESULT DsIsNTDSOnline( LPCTSTR szServerName, BOOL* pfNTDSOnline );
\\server1
.Call this function before calling any of the directory backup or restore functions. The directory must be online in order to perform a backup. The directory must by offline to perform a restore.
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