Gets specific current values for the properties for this Active Directory object from the underlying directory store, refreshing the cached values. Calling this method after changing property values but before calling IADs::SetInfo results in losing those changed values. After this call, the cache reflects the property values in the underlying namespace directory store.
GetInfoEx is called explicitly to refresh some of an ADSI object's cached properties from the underlying namespace. To refresh all the properties, use GetInfo.
HRESULT IADs::GetInfoEx(
VARIANT vProperties, //Property names
LONG lReserved //Reserved for future use.
);
This method supports the standard return values E_FAIL and E_UNEXPECTED, as well as the following:
GetInfoEx does not affect the objects stored in a container. A call to this method affects the properties of the container, not its contents.
If vHints is empty and no hints are specified, provide as much smart network access as possible. Both GetInfo, GetInfoEx, and SetInfo may require multiple accesses to the underlying directory to load or store the properties in the Active Directory object. It is technically possible for a GetInfo, GetInfoEx or SetInfo operation to be only partially successful. You are expected to complete as much of the requested operation as possible before returning. Active Directory provides several standard error codes to indicate that a request was not completely processed.
A caller can obtain a property value from an ADSI object at any time after obtaining the object (e.g., through GetObject or through an ADSI enumeration). The caller need not call GetInfo or GetInfoEx first. If the property in question has not been previously retrieved, the provider is responsible for retrieving and caching it to satisfy the request.
Windows NT: Use version 4.0 Service Pack 2 and later.
Windows CE: Unsupported.
Header: Declared in iads.h.
ADSI Property Object, IADs::GetInfo, Property Cache