//先将动态库拷贝至系统目录
//32位系统将match-32的动态库放到system32
//64位系统将matchdll_x64的动态库放到system32，match-32的动态库放到syswow64

public class RefComm
{
    //模板为Base64字符串
    [DllImport("Matchdll.dll",
         EntryPoint = "process",
         CharSet = CharSet.Ansi, CallingConvention = CallingConvention.StdCall)]
    public static extern int process(string a, string b);
}

result = RefComm.process(RegTemplate, VerifyTemplate); 