コード例 #1
0
ファイル: Program.cs プロジェクト: WildGenie/QuestorLauncher
        public void Run(EasyHook.RemoteHooking.IContext InContext, string ChannelName, string[] args)
        {
            AppDomain currentDomain     = AppDomain.CurrentDomain;
            AppDomain hookManagerDomain = AppDomain.CreateDomain("hookManagerDomain");
            string    assemblyFolder    = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);

            hookManagerDomain.ExecuteAssembly(assemblyFolder + "\\HookManager.exe", args: args);

            try {
                while (true)
                {
                    Thread.Sleep(100);
                    Interface.Ping();
                }
            } catch {
                AppDomain.Unload(hookManagerDomain);
                AppDomain.Unload(currentDomain);
            }
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: WildGenie/QuestorLauncher
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        ///

        public Main(EasyHook.RemoteHooking.IContext InContext, string ChannelName, string[] args)
        {
            Interface = RemoteHooking.IpcConnectClient <QuestorLauncherInterface.QuestorLauncherInterface>(ChannelName);
            Interface.Ping();
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: Blinker/QuestorLauncher
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 /// 
 public Main(EasyHook.RemoteHooking.IContext InContext, string ChannelName, string[] args)
 {
     Interface = RemoteHooking.IpcConnectClient<QuestorLauncherInterface.QuestorLauncherInterface>(ChannelName);
     Interface.Ping();
 }