Commits

Chadwick McNab committed 919a7ee

Exposing more of the formats supported by 7z.dll.

  • Participants
  • Parent commits 3dc976d

Comments (0)

Files changed (4)

 *.vcxproj.user
 *\*Debug\*
 *\*Release\*
+Build\*
 Lib\*
 ipch\*
 

File SevenZip++/CompressionFormat.h

 		{
 			Unknown,
 			SevenZip,
-			Zip
+			Zip,
+			GZip,
+			BZip2,
+			Rar,
+			Tar,
+			Iso,
+			Cab,
+			Lzma,
+			Lzma86
 		};
 	
 		typedef intl::EnumerationDefinitionNoStrings _Definition;

File SevenZip++/GUIDs.h

 	DEFINE_GUID(CLSID_CFormatZip,
 		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x01, 0x00, 0x00);
 
+	// {23170F69-40C1-278A-1000-000110020000}
+	DEFINE_GUID(CLSID_CFormatBZip2,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x02, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-000110030000}
+	DEFINE_GUID(CLSID_CFormatRar,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x03, 0x00, 0x00);
+
 	// {23170F69-40C1-278A-1000-000110070000}
 	DEFINE_GUID(CLSID_CFormat7z,
 		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x07, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-000110080000}
+	DEFINE_GUID(CLSID_CFormatCab,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x08, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-0001100A0000}
+	DEFINE_GUID(CLSID_CFormatLzma,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x0A, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-0001100B0000}
+	DEFINE_GUID(CLSID_CFormatLzma86,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0x0B, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-000110E70000}
+	DEFINE_GUID(CLSID_CFormatIso,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0xE7, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-000110EE0000}
+	DEFINE_GUID(CLSID_CFormatTar,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0xEE, 0x00, 0x00);
+
+	// {23170F69-40C1-278A-1000-000110EF0000}
+	DEFINE_GUID(CLSID_CFormatGZip,
+		0x23170F69, 0x40C1, 0x278A, 0x10, 0x00, 0x00, 0x01, 0x10, 0xEF, 0x00, 0x00);
 }
 }

File SevenZip++/SevenZipExtractor.cpp

 		guid = &CLSID_CFormatZip;
 		break;
 
+	case CompressionFormat::GZip:
+		guid = &CLSID_CFormatGZip;
+		break;
+
+	case CompressionFormat::BZip2:
+		guid = &CLSID_CFormatBZip2;
+		break;
+
+	case CompressionFormat::Rar:
+		guid = &CLSID_CFormatRar;
+		break;
+
+	case CompressionFormat::Tar:
+		guid = &CLSID_CFormatTar;
+		break;
+
+	case CompressionFormat::Iso:
+		guid = &CLSID_CFormatIso;
+		break;
+
+	case CompressionFormat::Cab:
+		guid = &CLSID_CFormatCab;
+		break;
+
+	case CompressionFormat::Lzma:
+		guid = &CLSID_CFormatLzma;
+		break;
+
+	case CompressionFormat::Lzma86:
+		guid = &CLSID_CFormatLzma86;
+		break;
+
 	default:
 		guid = &CLSID_CFormat7z;
 		break;