Platform SDK: Active Directory, ADSI, and Directory Services |
The DsRemoveDsDomain function removes all traces of a domain naming context (NC) from the global area of the directory service.
DWORD DsRemoveDsDomain( HANDLE hDs, LPTSTR DomainDN );
If the function performs its operation successfully, the return value is ERROR_SUCCESS.
If the function fails, the return value can be one of the following.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Ntdsapi.h.
Library: Included as a resource in Ntdsapi.dll.
Unicode: Implemented as Unicode and ANSI versions on Windows 2000.