问题
This seems to be a simple task, yet my research left me with nothing: How do you extract items from a ZIP archive in a native Windows Runtime component (or application)?
Now if I were to target .NET, there's a ZipArchive and ZipFile class, that make the solution as simple as it should be. But what, if I cannot or do not want to take a dependency on the CLR?
The only compression support I was able to find in the Windows Runtime is the Windows.Storage.Compression Namespace, and there's really little to be had. For decompression, there is a Decompressor class, but apparently, that can only work on a single stream.
So, how do you traverse the structure of a ZIP file and extract individual items in a native Windows Runtime component?
来源:https://stackoverflow.com/questions/56314355/decompress-zip-archive-in-a-native-windows-runtime-component-application