Exemplo n.º 1
0
 public void Close()
 {
     if (_handle > 0)
     {
         Error_Control_Block ecb = new Error_Control_Block();
         ISYS11df.Close_Instance(ref ecb);
         IGRException.Check(ecb);
         _handle = 0;
     }
 }
Exemplo n.º 2
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);
        }
 internal static int Check(int exitCode, Error_Control_Block ecb)
 {
     IGRException.Check(exitCode, ecb);
     return(exitCode);
 }