Esempio n. 1
0
        public void Initialize(string license, string path = "")
        {
            VerifyArgumentNotEmpty(license, "license");

            Instance_Status_Block isb = new Instance_Status_Block();
            Error_Control_Block   ecb = new Error_Control_Block();

            if (!string.IsNullOrEmpty(license) && license != "******")
            {
                isb.Licensee_ID1 = license;
            }
            else
            {
                isb.Licensee_ID1 = System.Environment.GetEnvironmentVariable("DOCFILTERS_LICENSE_KEY");
            }

            ISYS11df.Init_Instance(0, path, ref isb, ref _handle, ref ecb);
            IGRException.Check(ecb);
        }
Esempio n. 2
0
 public static extern void Init_Instance(int reserved, [In()][MarshalAs(UnmanagedType.LPStr)] string path, ref Instance_Status_Block init, ref short handle, ref Error_Control_Block error);