Platform SDK: Active Directory, ADSI, and Directory Services |
The DsIsNTDSOnline function checks to see if the Windows NT®/Windows® 2000 Active Directory™ service is online on the specified server. This call is guaranteed to return quickly.
HRESULT DsIsNTDSOnline( LPTCWSTR szServerName, BOOL *pfNTDSOnline );
ERROR_SUCCESS if the call executed successfully; otherwise, a failure code.
You should 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.
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