| Platform SDK: TAPI |
The following code fragment illustrates the enumeration of conferences on a specified ILS server. This fragment assumes that connecting to an ILS server has already been performed.
// Enumerate the available directory objects.
IEnumDirectoryObject *pEnumDirectoryObject;
BSTR bNameToSearch = SysAllocString( L"*" );
hr = pDirectory->EnumerateDirectoryObjects(
OT_CONFERENCE,
bNameToSearch,
&pEnumDirectoryObject
);
for (;;)
{
if ((hr = pEnumDirectoryObject->Next(
1,
&pDirectoryObject,
NULL )
) != S_OK )
{
break;
}
// Perform the desired operation on the directory object.
}
SysFreeString( bNameToSearch );