Esempio n. 1
0
 static public void SendFriendRequest(XDevkit.IXboxConsole xbc, Xuid xuidFrom, Xuid xuidTo)
 {
     try
     {
         XDRPCExecutionOptions     options = new XDRPCExecutionOptions(XDRPCMode.Title, "xam.xex", 0x4e6);
         XDRPCArgumentInfo <ulong> info    = new XDRPCArgumentInfo <ulong>((ulong)xuidFrom);
         XDRPCArgumentInfo <ulong> info2   = new XDRPCArgumentInfo <ulong>((ulong)xuidTo);
         XDRPCNullArgumentInfo     info3   = new XDRPCNullArgumentInfo();
         uint errorCode = ((XDevkit.IXboxConsole)xbc).ExecuteRPC <uint>(options, new XDRPCArgumentInfo[] { info, info2, info3 });
         if (errorCode != 0)
         {
             //throw ProfilesExceptionFactory.CreateExceptionFromErrorCode(errorCode);
         }
     }
     catch (XDRPCException exception)
     {
         //throw new ProfilesException(exception);
     }
 }
Esempio n. 2
0
        //static public string GetXUID(XDevkit.IXboxConsole xbc, string gamertag)
        //{
        //    XDRPCExecutionOptions options = new XDRPCExecutionOptions(XDRPCMode.Title, Addresses.g_XUserFindUserAddressDEV);


        //    //((XDevkit.IXboxConsole)xbc).Call(0x81824DF8, new object[] { 0x0009000006F93463, 0, gamertag, (int)0x18, Addresses.g_freememory + 0x20, 0 });
        //    XDRPCStringArgumentInfo GT = new XDRPCStringArgumentInfo(gamertag, Encoding.ASCII);
        //    XDRPCArgumentInfo<ulong> MyXUID = new XDRPCArgumentInfo<ulong>(0x0009000006F93463L);
        //    XDRPCArgumentInfo<int> idk = new XDRPCArgumentInfo<int>(0);
        //    XDRPCArgumentInfo<int> idk2 = new XDRPCArgumentInfo<int>((int)0x18);
        //    XDRPCArgumentInfo<ulong> XUID = new XDRPCArgumentInfo<ulong>(0L);
        //    uint num = ((XDevkit.IXboxConsole)xbc).ExecuteRPC<uint>(options, new XDRPCArgumentInfo[] { MyXUID, idk, GT, idk2, XUID, idk });

        //    return XUID.Value.ToString("X16");
        //}

        static public void JoinParty(XDevkit.IXboxConsole xbc, UserIndex userIndex, Xuid xuidContact)
        {
            try
            {
                XDRPCExecutionOptions     options = new XDRPCExecutionOptions(XDRPCMode.Title, "xam.xex", 0xb01);
                XDRPCArgumentInfo <uint>  info    = new XDRPCArgumentInfo <uint>((uint)userIndex);
                XDRPCArgumentInfo <ulong> info2   = new XDRPCArgumentInfo <ulong>((ulong)xuidContact);
                uint errorCode = ((XDevkit.IXboxConsole)xbc).ExecuteRPC <uint>(options, new XDRPCArgumentInfo[] { info, info2 });
                if (errorCode != 0)
                {
                    CreateExceptionFromErrorCode(errorCode);
                }
                WaitForPartyState(xbc, PartyState.XPARTY_STATE_INPARTY, TimeSpan.FromSeconds(15.0));
            }
            catch (XDRPCException exception)
            {
                //throw new ProfilesException(exception);
            }
        }
Esempio n. 3
0
 static public void KickUserFromParty(XDevkit.IXboxConsole xbc, Xuid xuidToKick)
 {
     try
     {
         XDRPCStructArgumentInfo <XPARTY_USER_LIST> partyUserList = GetPartyUserList(xbc);
         XDRPCExecutionOptions     options = new XDRPCExecutionOptions(XDRPCMode.Title, "xam.xex", 0xb02);
         XDRPCArgumentInfo <ulong> info2   = new XDRPCArgumentInfo <ulong>((ulong)xuidToKick);
         uint errorCode = ((XDevkit.IXboxConsole)xbc).ExecuteRPC <uint>(options, new XDRPCArgumentInfo[] { info2 });
         if (errorCode != 0)
         {
             CreateExceptionFromErrorCode(errorCode);
         }
         WaitForPartyState(xbc, PartyState.XPARTY_STATE_INPARTY, TimeSpan.FromSeconds(15.0));
     }
     catch (XDRPCException exception)
     {
         //throw new ProfilesException(exception);
     }
 }
Esempio n. 4
0
 public Gamer(string gamertag, Xuid onlineXuid)
 {
     this.Gamertag   = gamertag;
     this.OnlineXuid = onlineXuid;
 }