ITDirectory::get_DirectoryObjects method (rend.h)

[Rendezvous IP Telephony Conferencing controls and interfaces are not available for use in Windows Vista, Windows Server 2008, and subsequent versions of the operating system. The RTC Client API provides similar functionality.]

The get_DirectoryObjects method gets the collection of objects in a given directory that matches certain criteria. This method performs the same function as EnumerateDirectoryObjects but is used by Visual Basic and other scripting languages.

Syntax

HRESULT get_DirectoryObjects(
  [in]  DIRECTORY_OBJECT_TYPE DirectoryObjectType,
  [in]  BSTR                  pName,
  [out] VARIANT               *pVariant
);

Parameters

[in] DirectoryObjectType

The DIRECTORY_OBJECT_TYPE criteria for object desired.

[in] pName

Pointer to a BSTR containing the full or partial name of the object. The "*" wildcard is supported.

[out] pVariant

Pointer to a VARIANT that receives an ITCollection of ITDirectoryObject objects in the server that match the description.

Return value

This method can return one of these values.

Value Meaning
S_OK
Method succeeded.
RND_NOT_CONNECTED
The ITDirectory::Connect method has not been invoked or did not succeed.
E_NOTIMPL
This method is not implemented.

Remarks

The application must use SysAllocString to allocate memory for the pName parameter and use SysFreeString to free the memory when the variable is no longer needed.

TAPI calls the AddRef method on the ITDirectoryObject interface returned by ITDirectory::get_DirectoryObjects. The application must call Release on the ITDirectoryObject interface to free resources associated with it.

Requirements

Requirement Value
Target Platform Windows
Header rend.h
DLL Rend.dll

See also

DIRECTORY_OBJECT_TYPE

ITCollection

ITDirectory

ITDirectoryObject