예제 #1
0
            public static bool SendMessage(Process dest, IPCMessage message)
            {
                if (dest == null)
                {
                    return(false);
                }
                if (dest.ipc == null)
                {
                    if (IPC.InitIPC(dest) == false)
                    {
                        return(false);
                    }
                }
                message.Source = Program.arch.CurrentCpu.CurrentThread;

                return(dest.ipc.SendMessage(message));
            }
예제 #2
0
            public static bool SendMessage(Process dest, Messages.Message message, int type)
            {
                if (dest == null)
                {
                    return(false);
                }
                if (dest.ipc == null)
                {
                    if (IPC.InitIPC(dest) == false)
                    {
                        return(false);
                    }
                }

                IPCMessage msg = new IPCMessage();

                msg.Source  = Program.arch.CurrentCpu.CurrentThread;
                msg.Type    = type;
                msg.Message = message;

                return(dest.ipc.SendMessage(msg));
            }
예제 #3
0
 public static bool InitIPC()
 {
     return(IPC.InitIPC(Program.arch.CurrentCpu.CurrentThread.owning_process));
 }