public void constantMemorySetting(uint Address, uint Value, bool useIfValue, uint IfValue, bool usetitleID, uint TitleID) { object[] Version = new object[] { "consolefeatures ver=", 2, " type=18 params=\"A\\", Address.ToString("X"), "\\A\\5\\", 1, "\\", XboxExtention.UIntToInt(Value), "\\", 1, "\\", (useIfValue ? 1 : 0), "\\", 1, "\\", IfValue, "\\", 1, "\\", (usetitleID ? 1 : 0), "\\", 1, "\\", XboxExtention.UIntToInt(TitleID), "\\\"" }; SendTextCommand(string.Concat(Version)); }
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); } }
/// <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); }
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); }
public void Close() { XboxExtention.CallVoid(Console.ResolveFunction(XAMModule, (int)XboxShortcuts.Close_Tray), new object[] { 0, 0, 0, 0 }); IsTrayOpen = false; }
public void Open() { XboxExtention.CallVoid(Console.ResolveFunction(XAMModule, (int)XboxShortcuts.Open_Tray), new object[] { 0, 0, 0, 0 }); IsTrayOpen = true; }
/// <summary> /// Sends A Costume Message Via Xbox Notification System With Costume Logo. /// </summary> /// <param name="message"></param> /// <param name="Logo"></param> public static void Show(string message, XNotiyLogo Logo) { NewConnection(); string command = "consolefeatures ver=2" + " type=12 params=\"A\\0\\A\\2\\" + 2 + "/" + message.Length + "\\" + XboxExtention.ConvertStringToHex(message, Encoding.ASCII) + "\\" + 1 + "\\"; switch (Logo) { case XNotiyLogo.XBOX_LOGO: command += (int)XNotiyLogo.XBOX_LOGO + "\\\""; break; case XNotiyLogo.NEW_MESSAGE_LOGO: command += (int)XNotiyLogo.NEW_MESSAGE_LOGO + "\\\""; break; case XNotiyLogo.FRIEND_REQUEST_LOGO: command += (int)XNotiyLogo.FRIEND_REQUEST_LOGO + "\\\""; break; case XNotiyLogo.NEW_MESSAGE: command += (int)XNotiyLogo.NEW_MESSAGE + "\\\""; break; case XNotiyLogo.FLASHING_XBOX_LOGO: command += (int)XNotiyLogo.FLASHING_XBOX_LOGO + "\\\""; break; case XNotiyLogo.GAMERTAG_SENT_YOU_A_MESSAGE: command += (int)XNotiyLogo.GAMERTAG_SENT_YOU_A_MESSAGE + "\\\""; break; case XNotiyLogo.GAMERTAG_SINGED_OUT: command += (int)XNotiyLogo.GAMERTAG_SINGED_OUT + "\\\""; break; case XNotiyLogo.GAMERTAG_SIGNEDIN: command += (int)XNotiyLogo.GAMERTAG_SIGNEDIN + "\\\""; break; case XNotiyLogo.GAMERTAG_SIGNED_INTO_XBOX_LIVE: command += (int)XNotiyLogo.GAMERTAG_SIGNED_INTO_XBOX_LIVE + "\\\""; break; case XNotiyLogo.GAMERTAG_SIGNED_IN_OFFLINE: command += (int)XNotiyLogo.GAMERTAG_SIGNED_IN_OFFLINE + "\\\""; break; case XNotiyLogo.GAMERTAG_WANTS_TO_CHAT: command += (int)XNotiyLogo.GAMERTAG_WANTS_TO_CHAT + "\\\""; break; case XNotiyLogo.DISCONNECTED_FROM_XBOX_LIVE: command += (int)XNotiyLogo.DISCONNECTED_FROM_XBOX_LIVE + "\\\""; break; case XNotiyLogo.DOWNLOAD: command += (int)XNotiyLogo.DOWNLOAD + "\\\""; break; case XNotiyLogo.FLASHING_MUSIC_SYMBOL: command += (int)XNotiyLogo.FLASHING_MUSIC_SYMBOL + "\\\""; break; case XNotiyLogo.FLASHING_HAPPY_FACE: command += (int)XNotiyLogo.FLASHING_HAPPY_FACE + "\\\""; break; case XNotiyLogo.FLASHING_FROWNING_FACE: command += (int)XNotiyLogo.FLASHING_FROWNING_FACE + "\\\""; break; case XNotiyLogo.FLASHING_DOUBLE_SIDED_HAMMER: command += (int)XNotiyLogo.GAMERTAG_WANTS_TO_CHAT + "\\\""; break; case XNotiyLogo.GAMERTAG_WANTS_TO_CHAT_2: command += (int)XNotiyLogo.GAMERTAG_WANTS_TO_CHAT_2 + "\\\""; break; case XNotiyLogo.PLEASE_REINSERT_MEMORY_UNIT: command += (int)XNotiyLogo.PLEASE_REINSERT_MEMORY_UNIT + "\\\""; break; case XNotiyLogo.PLEASE_RECONNECT_CONTROLLERM: command += (int)XNotiyLogo.PLEASE_RECONNECT_CONTROLLERM + "\\\""; break; case XNotiyLogo.GAMERTAG_HAS_JOINED_CHAT: command += (int)XNotiyLogo.GAMERTAG_HAS_JOINED_CHAT + "\\\""; break; case XNotiyLogo.GAMERTAG_HAS_LEFT_CHAT: command += (int)XNotiyLogo.GAMERTAG_HAS_LEFT_CHAT + "\\\""; break; case XNotiyLogo.GAME_INVITE_SENT: command += (int)XNotiyLogo.GAME_INVITE_SENT + "\\\""; break; case XNotiyLogo.FLASH_LOGO: command += (int)XNotiyLogo.FLASH_LOGO + "\\\""; break; case XNotiyLogo.PAGE_SENT_TO: command += (int)XNotiyLogo.PAGE_SENT_TO + "\\\""; break; case XNotiyLogo.FOUR_2: command += (int)XNotiyLogo.FOUR_2 + "\\\""; break; case XNotiyLogo.FOUR_3: command += (int)XNotiyLogo.FOUR_3 + "\\\""; break; case XNotiyLogo.ACHIEVEMENT_UNLOCKED: command += (int)XNotiyLogo.ACHIEVEMENT_UNLOCKED + "\\\""; break; case XNotiyLogo.FOUR_9: command += (int)XNotiyLogo.FOUR_9 + "\\\""; break; case XNotiyLogo.GAMERTAG_WANTS_TO_TALK_IN_VIDEO_KINECT: command += (int)XNotiyLogo.GAMERTAG_WANTS_TO_TALK_IN_VIDEO_KINECT + "\\\""; break; case XNotiyLogo.VIDEO_CHAT_INVITE_SENT: command += (int)XNotiyLogo.VIDEO_CHAT_INVITE_SENT + "\\\""; break; case XNotiyLogo.READY_TO_PLAY: command += (int)XNotiyLogo.READY_TO_PLAY + "\\\""; break; case XNotiyLogo.CANT_DOWNLOAD_X: command += (int)XNotiyLogo.CANT_DOWNLOAD_X + "\\\""; break; case XNotiyLogo.DOWNLOAD_STOPPED_FOR_X: command += (int)XNotiyLogo.DOWNLOAD_STOPPED_FOR_X + "\\\""; break; case XNotiyLogo.FLASHING_XBOX_CONSOLE: command += (int)XNotiyLogo.FLASHING_XBOX_CONSOLE + "\\\""; break; case XNotiyLogo.X_SENT_YOU_A_GAME_MESSAGE: command += (int)XNotiyLogo.X_SENT_YOU_A_GAME_MESSAGE + "\\\""; break; case XNotiyLogo.DEVICE_FULL: command += (int)XNotiyLogo.DEVICE_FULL + "\\\""; break; case XNotiyLogo.FOUR_7: command += (int)XNotiyLogo.FOUR_7 + "\\\""; break; case XNotiyLogo.FLASHING_CHAT_ICON: command += (int)XNotiyLogo.FLASHING_CHAT_ICON + "\\\""; break; case XNotiyLogo.ACHIEVEMENTS_UNLOCKED: command += (int)XNotiyLogo.ACHIEVEMENTS_UNLOCKED + "\\\""; break; case XNotiyLogo.X_HAS_SENT_YOU_A_NUDGE: command += (int)XNotiyLogo.X_HAS_SENT_YOU_A_NUDGE + "\\\""; break; case XNotiyLogo.MESSENGER_DISCONNECTED: command += (int)XNotiyLogo.MESSENGER_DISCONNECTED + "\\\""; break; case XNotiyLogo.BLANK: command += (int)XNotiyLogo.BLANK + "\\\""; break; case XNotiyLogo.CANT_SIGN_IN_MESSENGER: command += (int)XNotiyLogo.CANT_SIGN_IN_MESSENGER + "\\\""; break; case XNotiyLogo.MISSED_MESSENGER_CONVERSATION: command += (int)XNotiyLogo.MISSED_MESSENGER_CONVERSATION + "\\\""; break; case XNotiyLogo.FAMILY_TIMER_X_TIME_REMAINING: command += (int)XNotiyLogo.FAMILY_TIMER_X_TIME_REMAINING + "\\\""; break; case XNotiyLogo.DISCONNECTED_XBOX_LIVE_11_MINUTES_REMAINING: command += (int)XNotiyLogo.DISCONNECTED_XBOX_LIVE_11_MINUTES_REMAINING + "\\\""; break; case XNotiyLogo.KINECT_HEALTH_EFFECTS: command += (int)XNotiyLogo.KINECT_HEALTH_EFFECTS + "\\\""; break; case XNotiyLogo.FOUR_5: command += (int)XNotiyLogo.FOUR_5 + "\\\""; break; case XNotiyLogo.GAMERTAG_WANTS_YOU_TO_JOIN_AN_XBOX_LIVE_PARTY: command += (int)XNotiyLogo.GAMERTAG_WANTS_YOU_TO_JOIN_AN_XBOX_LIVE_PARTY + "\\\""; break; case XNotiyLogo.PARTY_INVITE_SENT: command += (int)XNotiyLogo.PARTY_INVITE_SENT + "\\\""; break; case XNotiyLogo.GAME_INVITE_SENT_TO_XBOX_LIVE_PARTY: command += (int)XNotiyLogo.GAME_INVITE_SENT_TO_XBOX_LIVE_PARTY + "\\\""; break; case XNotiyLogo.KICKED_FROM_XBOX_LIVE_PARTY: command += (int)XNotiyLogo.KICKED_FROM_XBOX_LIVE_PARTY + "\\\""; break; case XNotiyLogo.NULLED: command += (int)XNotiyLogo.NULLED + "\\\""; break; case XNotiyLogo.DISCONNECTED_XBOX_LIVE_PARTY: command += (int)XNotiyLogo.DISCONNECTED_XBOX_LIVE_PARTY + "\\\""; break; case XNotiyLogo.DOWNLOADED: command += (int)XNotiyLogo.DOWNLOADED + "\\\""; break; case XNotiyLogo.CANT_CONNECT_XBL_PARTY: command += (int)XNotiyLogo.CANT_CONNECT_XBL_PARTY + "\\\""; break; case XNotiyLogo.GAMERTAG_HAS_JOINED_XBL_PARTY: command += (int)XNotiyLogo.GAMERTAG_HAS_JOINED_XBL_PARTY + "\\\""; break; case XNotiyLogo.GAMERTAG_HAS_LEFT_XBL_PARTY: command += (int)XNotiyLogo.GAMERTAG_HAS_LEFT_XBL_PARTY + "\\\""; break; case XNotiyLogo.GAMER_PICTURE_UNLOCKED: command += (int)XNotiyLogo.GAMER_PICTURE_UNLOCKED + "\\\""; break; case XNotiyLogo.AVATAR_AWARD_UNLOCKED: command += (int)XNotiyLogo.AVATAR_AWARD_UNLOCKED + "\\\""; break; case XNotiyLogo.JOINED_XBL_PARTY: command += (int)XNotiyLogo.JOINED_XBL_PARTY + "\\\""; break; case XNotiyLogo.PLEASE_REINSERT_USB_STORAGE_DEVICE: command += (int)XNotiyLogo.PLEASE_REINSERT_USB_STORAGE_DEVICE + "\\\""; break; case XNotiyLogo.PLAYER_MUTED: command += (int)XNotiyLogo.PLAYER_MUTED + "\\\""; break; case XNotiyLogo.PLAYER_UNMUTED: command += (int)XNotiyLogo.PLAYER_UNMUTED + "\\\""; break; case XNotiyLogo.FLASHING_CHAT_SYMBOL: command += (int)XNotiyLogo.FLASHING_CHAT_SYMBOL + "\\\""; break; case XNotiyLogo.UPDATING: command += (int)XNotiyLogo.UPDATING + "\\\""; break; default: command += "\\\""; break; } SendTextCommand(command); EndConnection(); }
/// <summary> /// Signs User in /// </summary> public void QuickSignIn() { XboxExtention.CallVoid(ResolveFunction(XAMModule, (int)XboxSignIn.QuickSignin), new object[] { 0, 0, 0, 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; } } }
private uint LaunchSystemDLLThread(string ThreadPath) { return(XboxExtention.Call <uint>(krnlModule, 0x199, new object[] { ThreadPath, 8, 0, 0 })); }
private uint GetModuleHandle(string ModuleName) { return(XboxExtention.Call <uint>(ModuleName, 0x44e, new object[] { ModuleName })); }