Platform SDK: TAPI |
The following code fragment illustrates modification of a conference's time span. The default time span is thirty minutes. In this fragment, the time span is set to one year.
This fragment assumes that connecting to an ILS server has already been performed and that a conference directory enumeration has been performed to obtain the directory entry that will be modified.
This fragment also assumes this is not a multicast conference. Changing the times on a multicast conference requires notification of the multicast address allocation server. See Acquiring a Multicast Address for an example of working with multicast addressing.
// Obtain the conference configuration interface. ITDirectoryObjectConference *pConference; hr = pDirectoryObject->QueryInterface( IID_ITDirectoryObjectConference, (void **)&pConference ); double vStartTime, vStopTime; hr = pConference->get_StartTime( &vStartTime ); SYSTEMTIME time; memset( &time, 0, sizeof( SYSTEMTIME ) ); VariantTimeToSystemTime( vStartTime, &time ); time.wYear++; SystemTimeToVariantTime( time, &vStopTime ); hr = pConference->put_StopTime( vStopTime );