www.pudn.com > FileSecurity.rar > xEncrypt.cs


using System; 
using System.Collections.Generic; 
using System.Text; 
using System.Runtime.InteropServices; 
 
namespace FileSecurity 
{ 
    class xEncrypt 
    { 
        [DllImport("xEncrypt.dll", EntryPoint = "xEncrypt")] 
        public static extern Int32 FileEncrypt(IntPtr Src, IntPtr Dst, IntPtr Pwd); 
 
        [DllImport("xEncrypt.dll", EntryPoint = "xDecrypt")] 
        public static extern Int32 FileDecrypt(IntPtr Src, IntPtr Dst, IntPtr Pwd); 
    } 
}