Example #1
0
 public static void SetPackerPluginCallbacks(ChangeVolCallback changeVol, ChangeVolCallbackW changeVolW, ProcessDataCallback processData, ProcessDataCallbackW processDataW, PkCryptCallback crypt, PkCryptCallbackW cryptW)
 {
     if (changeVolCallback == null)
     {
         changeVolCallback = changeVol;
     }
     if (changeVolCallbackW == null)
     {
         changeVolCallbackW = changeVolW;
     }
     if (processDataCallback == null)
     {
         processDataCallback = processData;
     }
     if (processDataCallbackW == null)
     {
         processDataCallbackW = processDataW;
     }
     if (pkCryptCallback == null)
     {
         pkCryptCallback = crypt;
     }
     if (pkCryptCallbackW == null)
     {
         pkCryptCallbackW = cryptW;
     }
 }
Example #2
0
 public static void SetProcessDataProcW(IntPtr arcData, ProcessDataCallbackW processDataProcW)
 {
     callSignature = String.Format("SetProcessDataProcW ({0})", arcData.ToString());
     try {
         TcCallback.SetPackerPluginCallbacks(null, null, null, processDataProcW, null, null);
         TraceCall(TraceLevel.Warning,
                   processDataProcW.Method.MethodHandle.GetFunctionPointer().ToString());
     } catch (Exception ex) {
         ProcessException(ex);
     }
 }