
Unrarx rarlab how to#
How to determine the first file of a split archive, in general You want to return true if you don't want to stop a while read loop. If ((header.Flags & 0x01) != 0) return true If (((header.Flags & 0x01) != 0) & currentFile != null)ĬurrentFile.ContinuedFromPrevious = true Do note that if you list the new files, you need to modify this statement in ReadHeader(): // Determine if new file The next file will be the exact same filename and will extract successfully (assuming the file in part 2 isn't corrupted). If (!ntinuedOnNext) throw new IOException("File CRC Error")

Same thing for File Open Error if you opened in read mode. If you are using the C# example from Unrar, you should remove the IOException("File CRC Error") in ProcessFileError() or throw the error.

The c# wrapper and example included in the unrardll is outdated and does not work well with multivolume rar files because there are new callback messaged that are not handled.
