コード例 #1
0
        private void UnloadImage(string ModuleName, bool isSysDll)
        {
            uint moduleHandle = GetModuleHandle(ModuleName);

            if (moduleHandle != 0)
            {
                if (isSysDll)
                {
                    GetInt16(moduleHandle + 0x40, 1);
                }
                object[] arguments = new object[] { moduleHandle };
                XboxExtention.CallVoid(krnlModule, 0x1a1, arguments);
            }
        }
コード例 #2
0
        /// <summary>
        /// User Can Open/Close There Console's Disc Tray
        /// </summary>
        /// <param name="state"></param>
        /// <returns></returns>
        public bool Options(TrayState state)
        {
            switch (state)//works by getting the int of the UI and matches the numbers to execute things
            {
            case TrayState.Open:
                XboxExtention.CallVoid(Console.ResolveFunction(XAMModule, (int)XboxShortcuts.Open_Tray), new object[] { 0, 0, 0, 0 });
                IsTrayOpen = true;
                break;

            case TrayState.Close:
                XboxExtention.CallVoid(Console.ResolveFunction(XAMModule, (int)XboxShortcuts.Close_Tray), new object[] { 0, 0, 0, 0 });
                IsTrayOpen = false;
                break;
            }
            return(IsTrayOpen);
        }
コード例 #3
0
        private uint XexPcToFileHeader(uint baseAddress)
        {
            uint num3;
            uint address = ResolveFunction(krnlModule, 0x19c);

            if (address == 0)
            {
                num3 = 0;
            }
            else
            {
                uint     num2      = ResolveFunction(XAMModule, 0xa29) + 0x3000;
                object[] arguments = new object[] { baseAddress, num2 };
                XboxExtention.CallVoid(address, arguments);
                num3 = GetUInt32(num2);
            }
            return(num3);
        }
コード例 #4
0
 public void Close()
 {
     XboxExtention.CallVoid(Console.ResolveFunction(XAMModule, (int)XboxShortcuts.Close_Tray), new object[] { 0, 0, 0, 0 });
     IsTrayOpen = false;
 }
コード例 #5
0
 public void Open()
 {
     XboxExtention.CallVoid(Console.ResolveFunction(XAMModule, (int)XboxShortcuts.Open_Tray), new object[] { 0, 0, 0, 0 });
     IsTrayOpen = true;
 }
コード例 #6
0
 /// <summary>
 /// Signs User in
 /// </summary>
 public void QuickSignIn()
 {
     XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxSignIn.QuickSignin), new object[] { 0, 0, 0, 0 });
 }
コード例 #7
0
        /// <summary>
        /// Shortcuts To Guide
        /// </summary>
        /// <param name="Color"></param>
        public void XboxShortcut(XboxShortcuts UI)
        {
            if (Connected)
            {
                switch (UI)//works by getting the int of the UI and matches the numbers to execute things
                {
                case XboxShortcuts.XboxHome:
                    Reboot(@"\Device\Harddisk0\SystemExtPartition\20449700\dash.xex",
                           @"\Device\Harddisk0\SystemExtPartition\20449700\dash.xex",
                           @"\Device\Harddisk0\SystemExtPartition\20445700\dash.xex", XboxRebootFlags.Title);
                    break;

                case XboxShortcuts.AvatarEditor:
                    Reboot(@"\Device\Harddisk0\SystemExtPartition\20449700\AvatarEditor.xex",
                           @"\Device\Harddisk0\SystemExtPartition\20449700\AvatarEditor.xex",
                           @"\Device\Harddisk0\SystemExtPartition\20445700\AvatarEditor.xex", XboxRebootFlags.Title);

                    break;

                case XboxShortcuts.DriveSelector:
                    Reboot(@"\Device\Harddisk0\SystemExtPartition\20449700\signin.xex",
                           @"\Device\Harddisk0\SystemExtPartition\20449700\signin.xex",
                           @"\Device\Harddisk0\SystemExtPartition\20445700\signin.xex", XboxRebootFlags.Title);

                    break;

                case XboxShortcuts.Turn_Off_Console:
                    ShutDown();
                    break;

                case XboxShortcuts.Account_Management:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Account_Management),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Achievements:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Achievements),
                                           new object[]
                                           { 0, 0, 0, 0 });//achievements
                    break;

                case XboxShortcuts.Active_Downloads:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Active_Downloads),
                                           new object[]
                                           { 0, 0, 0, 0 });//XamShowMarketplaceDownloadItemsUI
                    break;

                case XboxShortcuts.Awards:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Awards),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Beacons_And_Activiy:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Beacons_And_Activiy),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Family_Settings:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Family_Settings),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Friends:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Friends),
                                           new object[]
                                           { 0, 0, 0, 0 });//friends
                    break;

                case XboxShortcuts.Guide_Button:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Guide_Button),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Messages:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Messages), 0);    //messages tab
                    break;

                case XboxShortcuts.My_Games:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.My_Games), new object[] { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Open_Tray:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Open_Tray), new object[] { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Close_Tray:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Close_Tray),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Party:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Party), new object[] { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Preferences:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Preferences),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Private_Chat:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Private_Chat),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Profile:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Profile),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Recent:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Recent),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Redeem_Code:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Redeem_Code),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Select_Music:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Select_Music),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.System_Music_Player:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.System_Music_Player),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.System_Settings:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.System_Settings),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.System_Video_Player:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.System_Video_Player),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;

                case XboxShortcuts.Windows_Media_Center:
                    XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxShortcuts.Windows_Media_Center),
                                           new object[]
                                           { 0, 0, 0, 0 });
                    break;
                }
            }
        }