예제 #1
0
 /// <summary>
 ///  Execute a function in a process in a new thread with a <see cref="FunctionCallArguments" /> argument
 /// </summary>
 /// <param name="process">The process the thread will be created and executed in.</param>
 /// <param name="functionName">The name of the function to be executed.</param>
 /// <param name="arguments">The class which will be serialized and passed to the function being executed.</param>
 private void ExecuteAssemblyFunctionWithArguments(
     Process process,
     IFunctionName functionName,
     FunctionCallArguments arguments)
 {
     _memoryManager.Add(
         process,
         _processManager.Execute(
             functionName.Module,
             functionName.Function,
             Binary.StructToByteArray(arguments),
             false),
         false
         );
 }