Platform SDK: Active Directory, ADSI, and Directory Services |
The CreateNew method creates a temporary Active Directory™ object with a specified name in the ADSI cache.
HRESULT CreateNew( LPCWSTR pszName, );
If the method is successful, the return value is S_OK.
If an error occurs, the return value is a COM error code. For more information, see Error Handling.
Windows NT/2000: Requires Windows 2000.
Header: Declared in Dsadmin.h.