예제 #1
0
        public static IntPtr OpenArchive(IntPtr archiveData)
        {
            var info    = new OpenArchiveInfo(archiveData);
            var archive = IntPtr.Zero;

            try
            {
                info.Result = Plugin.OpenArchive(info.ArchiveName, info.Mode, out archive);
            }
            catch (WcxException error)
            {
                info.Result = error.ArchiveResult;
            }
            return(archive);
        }
 public static IntPtr OpenArchive(IntPtr archiveData)
 {
     var info = new OpenArchiveInfo(archiveData);
     var archive = IntPtr.Zero;
     try
     {
         info.Result = Plugin.OpenArchive(info.ArchiveName, info.Mode, out archive);
     }
     catch (WcxException error)
     {
         info.Result = error.ArchiveResult;
     }
     catch (Exception ex)
     {
         ProcessUnhandledException(ex);
     }
     return archive;
 }