Can some body give me sample code for using db2GetSnapshotSize()

I have with me the folloing code , but I don't know what to set
to pParamStruct.iVersion, and the first parameter value of db2GetSnapshotSize

-----------------------------------------------------
int main (void)
{
struct sqlca sqlComnArea;
SQL_API_RC rc=0;
struct sqlma ma_obj; /* sqlma structure pointer */
ma_obj.obj_num = 1 ;
ma_obj.obj_var[0].agent_id = 0L;
ma_obj.obj_var[0].obj_type = SQLMA_DBASE;
strcpy(ma_obj.obj_var[0].object,"STORADB");
std::cout << "Before sqlmonsz " << std::endl;

struct db2GetSnapshotSizeData pParamStruct;
pParamStruct.piSqlmaData = &ma_obj;
pParamStruct.iVersion = SQLM_DBMON_VERSION7;
pParamStruct.iNodeNumber = SQLM_CURRENT_NODE;
db2GetSnapshotSize(db2Version710,&pParamStruct,&sq lComnArea);
std::cout << "After db2GetSnapshotSize " << *(pParamStruct.poBufferSize) << std::endl;
std::cout << "After sqlmonsz " << std::endl;
check_errors(rc,sqlComnArea);
return 0;
}



-----------------------------------------------------