Platform SDK: Active Directory, ADSI, and Directory Services

IDsAdminNewObjPrimarySite::CreateNew

The CreateNew method creates a temporary Active Directory™ object with a specified name in the ADSI cache.

HRESULT CreateNew(
  LPCWSTR pszName, 
);

Parameters

pszName
[in] Pointer to a wide character string of the name of the object to be created.

Return Values

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.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Header: Declared in Dsadmin.h.

See Also

IDsAdminNewObjPrimarySite