IDsAdminNewObjPrimarySite::CreateNew method (dsadmin.h)

The IDsAdminNewObjPrimarySite::CreateNew method enables a primary object creation extension to create a temporary directory service object in Active Directory Domain Services. This object is then passed to each object creation extension in the extension's IDsAdminNewObjExt::SetObject method.

Syntax

HRESULT CreateNew(
  [in] LPCWSTR pszName
);

Parameters

[in] pszName

Pointer to a WCHAR string that contains the name of the object to be created.

Return value

If the method succeeds, S_OK is returned. If the method fails, an OLE-defined error code is returned. This method fails if the calling extension is not a primary object creation extension.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header dsadmin.h
DLL DSAdmin.dll

See also

IDsAdminNewObjExt::SetObject

IDsAdminNewObjPrimarySite