Gets the IADs interface of the Active Directory object in this container identified by the object's schema class and relative name.
HRESULT IADsContainer::GetObject(
BSTR bstrClass, //Schema class of the object
BSTR bstrRelativeName, //Relative name of the object
IDispatch ** ppNamedObject //Interface to use on the object
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
This is the most common way of retrieving an interface pointer on an Active Directory object.
If the schema class name is not provided, retrieve an interface pointer on the first object found in the container with the specified name.
Windows NT: Use version 4.0 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.