CAmvSetupList::Exists()

Check to see if the named setup exists in the database.

Comments

Returns COR_SUCCESS if the AMRP was successfully queried regarding setup existence. Returns COR_FAILURE otherwise.

If the return value is COR_SUCCESS, ret_stat->err_code is TRUE if the setup exists, FALSE if it does not.

Syntax

CAmvConn* amvConn;

amvConn->Setups->Exists(TCHAR* setupID, COR_STATUS* ret_stat);

Data Type

int

Example

This example looks for a setup ID.

if (amvConn->Setups->Exists(testID, &ret_stat) != COR_SUCCESS)

{

    MessageBox("Could not communicate with AMRP");

} else

{

    Exists = ret_stat->err_code;

}

More information

CAmvSetupList class member overview.