Beispiel #1
0
        public static CorValue create_String(this MDbgEngine engine, string stringValue)
        {
            CorEval eval = engine.corEval();

            eval.NewString(stringValue);
            engine.goAndWait();
            CorValue corValue = (engine.activeProcess().StopReason as EvalCompleteStopReason).Eval.Result;

            return(corValue);
        }
Beispiel #2
0
 public static MDbgEngine invoke_Method(this MDbgEngine engine, CorFunction function, CorValue[] parameters)
 {
     try
     {
         var eval = engine.corEval();
         eval.CallFunction(function, parameters);
         engine.goAndWait();
     }
     catch (Exception ex)
     {
         "[MDbgEngine] invoke_Method: {0}".error(ex.Message);
     }
     return(engine);
 }
Beispiel #3
0
 public static MDbgEngine attach(this MDbgEngine engine, int processId)
 {
     engine.Attach(processId);
     engine.goAndWait();
     return(engine);
 }