internal int method_5(int int_1) { IntPtr procAddress = GetProcAddress(this.int_0, "OpenTax"); if (procAddress == IntPtr.Zero) { Class20.smethod_7("库未加载"); } Delegate7 delegateForFunctionPointer = (Delegate7)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(Delegate7)); if (delegateForFunctionPointer == null) { Class20.smethod_7("调用函数委托不能是空"); } return(delegateForFunctionPointer(int_1)); }
internal int method_6() { IntPtr procAddress = GetProcAddress(this.int_0, "CloseTax"); if (procAddress == IntPtr.Zero) { Class20.smethod_7("库未加载"); } Delegate8 delegateForFunctionPointer = (Delegate8)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(Delegate8)); if (delegateForFunctionPointer == null) { Class20.smethod_7("调用函数委托不能是空"); } int num = delegateForFunctionPointer(); this.method_3(); return(num); }
internal int method_7(byte[] byte_0, out IntPtr intptr_0) { IntPtr procAddress = GetProcAddress(this.int_0, "CallTax"); if (procAddress == IntPtr.Zero) { if (this.ctaxCardMode_0 == CTaxCardMode.tcmHave) { Class20.smethod_7("库未加载"); } else if (this.ctaxCardMode_0 == CTaxCardMode.tcmNone) { Class20.smethod_7("无卡模式下用户不能调用金税设备功能"); } } Delegate9 delegateForFunctionPointer = (Delegate9)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(Delegate9)); if (delegateForFunctionPointer == null) { Class20.smethod_7("调用函数委托不能是空"); } return(delegateForFunctionPointer(byte_0, out intptr_0)); }