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)); }
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)); }
public static bool InitIPC() { return(IPC.InitIPC(Program.arch.CurrentCpu.CurrentThread.owning_process)); }