예제 #1
0
        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));
        }
예제 #2
0
        internal bool method_2()
        {
            this.string_0 = "";
            string str    = DateTime.Now.ToString("yyyyMMddHHmmssfff");
            Random random = new Random(DateTime.Now.Millisecond);

            this.string_0 = Path.Combine(Path.GetTempPath(), str + random.Next().ToString() + ".tmp");
            this.method_8();
            this.int_0 = LoadLibrary(this.string_0);
            if (this.int_0 == 0)
            {
                Class20.smethod_2("加载DLL库不正确,检查路径下dll是否存在?" + this.string_0);
                return(false);
            }
            return(true);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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));
        }