示例#1
0
 public static void SetCommand(SysCallTarget command, DSysCallInfoHandler handler, Process proc = null)
 {
     Commands[(uint)command] = new SysCallInfo
     {
         CommandID = command,
         Handler   = handler,
         Process   = proc,
     };
 }
示例#2
0
        public static void SetCommand(SysCallTarget command, DSysCallInfoHandler handler, Process proc = null)
        {
            var debug = false;

            if (command == SysCallTarget.Tmp_DisplayServer_CreateWindow)
            {
                debug = true;
            }

            if (proc != null)
            {
                KernelMessage.WriteLine("Register Command {0} for Process {1}", (uint)command, (uint)proc.ProcessID);
            }

            Commands[(uint)command] = new SysCallHandlerInfo
            {
                CommandID = command,
                Handler   = handler,
                Process   = proc,
                Debug     = debug,
            };
        }