CAmvConn::SetupList()

Retrieves the list of saved viewer setups from AMRP.

If this method fails, you will need to call CAmvConn::BreakConnection().

Comments

Retrieving saved setups can be time consuming because of the inter-process communication and disk access involved, and because of the potentially large amount of data exchanged. Therefore, setups are not retrieved until they are requested with this function.

Important: CAmvConn::SetupList() must be called for the connection before the CAmvSetupList member functions of the CAmvConn::Setups are called.

Syntax

CAmvConn* amvConn;

amvConn->SetupList(COR_STATUS *ret_stat);

Data Type

void

Example

Retrieve saved setups from AMRP and print the setup IDs.

CAmvConn* amvConn;

int I;

amvConn->SetupList();

for (i = 0; i < amvConn->Setups->Number(); i++) {

   _tprintf(_T("%s\n"), amvConn->Setups->Setup(i));

}

See Also

CAmvConn::Setups

More information

CAmvConn class member overview.