AIM Plugins

custom session

I try to send an invitation message to the buddy, and the buddy will display a dialog to either accept it or reject it.

The following is the code:
VARIANT customValue;
customValue.intVal = 2;
int transId = 0;
Session->CreateCustomSession(OLESTR("MY UUID"), &imCustomSession);

imCustomSession->put_Property((int)AccCustomSessionProp_Mode, customValue);

imCustomSession->Invite(userName.AllocSysString(), OLESTR("Would you like to play BomberAnimal?"), &transId);

I modified the above codes based on the examples from AIM SDK using C#
customSess = s.CreateCustomSession(customUUID); customSess.set_Property((int)AccCustomSessionProp.AccCustomSessionProp_Mode, 2);