Ejemplo n.º 1
0
 unsafe bool MyDecryptCallback(byte *pMethodCode, int methodSize, ref Delegate createdDelegate)
 {
     createdDelegate = new DecryptCallback(MyDecryptCallback);
     decryptedData   = new byte[methodSize];
     Marshal.Copy(new IntPtr(pMethodCode), decryptedData, 0, decryptedData.Length);
     return(decryptReturnValue = true);
 }
Ejemplo n.º 2
0
 public DecryptThread(object data, DecryptCallback callback, string sFileSrc, string sDirDst, string sFileKey)
 {
     m_data            = data;
     m_DecryptCallback = callback;
     m_sFileSrc        = sFileSrc;
     m_sDirDst         = sDirDst;
     m_sFileKey        = sFileKey;
 }
			unsafe bool MyDecryptCallback(byte* pMethodCode, int methodSize, ref Delegate createdDelegate) {
				createdDelegate = new DecryptCallback(MyDecryptCallback);
				decryptedData = new byte[methodSize];
				Marshal.Copy(new IntPtr(pMethodCode), decryptedData, 0, decryptedData.Length);
				return decryptReturnValue = true;
			}