public static bool StartExalt(string guid, string password) { try { ProcessInjection.ProcessInfo processInfo = GetProcessInfo(Settings.Default.ExaltGamePath, GetFormattedCredentials(guid, password)); InjectProcessHandle(processInfo.ProcHandle, RsDll); ProcessInjection.ResumeThread(processInfo.ProcThread); return(true); } catch (Exception ex) { MessageBox.Show( "Failed to start Exalt Game:\n" + ex?.ToString() + "\nLast Error: " + Marshal.GetLastWin32Error(), "RealmStock Multi-Tool", MessageBoxButtons.OK, MessageBoxIcon.Hand); return(false); } }
public static bool StartExaltLauncher(bool steam) { try { ProcessInjection.ProcessInfo processInfo = GetProcessInfo(steam ? Settings.Default.ExaltSteamPath : Settings.Default.ExaltLauncherPath, string.Empty); InjectProcessHandle(processInfo.ProcHandle, RslDll); ProcessInjection.ResumeThread(processInfo.ProcThread); return(true); } catch (Exception ex) { MessageBox.Show("Failed to start Exalt Launcher:\n" + ex?.ToString() + "\nLast Error: " + Marshal.GetLastWin32Error(), "RealmStock Multi-Tool", MessageBoxButtons.OK, MessageBoxIcon.Hand); return(false); } }