public static void SendLoginCredentials(IntPtr wnd, string user, string passwordHash) { var str = string.Format("LOGIN|{0}|{1}", user, passwordHash); var lParam = new COPYDATASTRUCT { cbData = 2, dwData = str.Length * 2 + 2, lpData = str }; Win32Imports.SendMessage(wnd, 74U, IntPtr.Zero, ref lParam); }
public static void SendConfig(IntPtr wnd) { var str = string.Format( "{0}{1}{2}{3}", (Config.Instance.Settings.GameSettings[0].SelectedValue == "True") ? "1" : "0", (Config.Instance.Settings.GameSettings[3].SelectedValue == "True") ? "1" : "0", (Config.Instance.Settings.GameSettings[1].SelectedValue == "True") ? "1" : "0", (Config.Instance.Settings.GameSettings[2].SelectedValue == "True") ? "2" : "0"); var lParam = new COPYDATASTRUCT { cbData = 2, dwData = str.Length * 2 + 2, lpData = str }; Win32Imports.SendMessage(wnd, 74U, IntPtr.Zero, ref lParam); }