Directory Services

IDsAdminNewObjExt::SetObject

The IDsAdminNewObjExt::SetObject method provides the object creation extension with a pointer to the Microsoft® Active Directory® directory object created.

HRESULT SetObject( 
  IADs* pADsObj
);

Parameters

pADsObj
[in] Pointer to an IADs interface for the Active Directory object. This parameter may be NULL. If this object is to be kept beyond the scope of this method, the reference count must be incremented by calling IUnknown::AddRef or IUnknown::QueryInterface.

Return Values

The method should always return S_OK.

Requirements

Client: Included in Windows XP and Windows 2000 Professional.
Server: Included in Windows Server 2003 and Windows 2000 Server.
Header: Declared in Dsadmin.h.

See Also

IDsAdminNewObjExt, IADs, IUnknown::AddRef, IUnknown::QueryInterface