Conference Directory Enumeration

[This is preliminary documentation and subject to change.]

// Create a conference directory component
CoCreateInstance(
    CLSID_ITConferenceDirectory,
    NULL,
    CLSCTX_INPROC_SERVER,
    IID_ITConferenceDirectory,
    (void **)&pITConferenceDirectory
    );

// point the conference directory component to the desired (ServerName, DirectoryPath
// Use default values for both
pITConferenceDirectory->Init(
    NULL,
    NULL
    );

// create an enumerator to enumerate all announcements in the directory
// the default filter is used
pITConferenceDirectory->_NewEnum(
    &pIEnumConference
    );

// enumerate announcements
do
{
    VARIANT ConferenceAnnouncement;

    // get the next announcement
    hr = pIEnumConference->Next(
                 1,
                 &ConferenceAnnouncement,
                 NULL
                 );
    if (S_FALSE == hr )
    {
        break;
    };

    // Process conference announcement
}

while (SUCCEEDED(hr));