The StormLib library is a pack of modules, written in C++, which are able to read and also to write files from/to the MPQ archives.