private void InitMaximums()
 {
     BattleNet.DllFriendsInfo info = new BattleNet.DllFriendsInfo();
     BattleNet.GetFriendsInfo(ref info);
     this.m_maxFriends         = info.maxFriends;
     this.m_maxReceivedInvites = info.maxRecvInvites;
     this.m_maxSentInvites     = info.maxSentInvites;
 }
 public void GetFriendsInfo(ref BattleNet.DllFriendsInfo info)
 {
     if (this.m_state == FriendsAPIState.INITIALIZED)
     {
         info.maxFriends     = (int)this.m_maxFriends;
         info.maxRecvInvites = (int)this.m_maxReceivedInvitations;
         info.maxSentInvites = (int)this.m_maxSentInvitations;
         info.friendsSize    = (int)this.m_friendsCount;
         info.updateSize     = this.m_updateList.Count;
     }
 }