X-Git-Url: https://sfsrealm.hopto.org/projects/gitweb.cgi?p=SFmpqapi.git;a=blobdiff_plain;f=SFmpqapi.h;fp=SFmpqapi.h;h=7cef69baa371589239d9e59adcd42f1683bba405;hp=9508d618c8f739ad591f36f03584bda3b1cd994f;hb=e0b276afa1dc42629b6eaad3ed578c29371f065e;hpb=7214af3eb69acdaef221c1846157ed07438bd0c1 diff --git a/SFmpqapi.h b/SFmpqapi.h index 9508d61..7cef69b 100644 --- a/SFmpqapi.h +++ b/SFmpqapi.h @@ -295,6 +295,8 @@ long SFMPQAPI __inline SFMpqCompareVersion(); typedef HANDLE MPQHANDLE; +#include + struct FILELISTENTRY { DWORD dwFileExists; // Nonzero if this entry is used LCID lcLocale; // Locale ID of file @@ -322,6 +324,8 @@ struct MPQHEADER { DWORD dwBlockTableSize; // Number of entries in block table }; +#include + //Archive handles may be typecasted to this struct so you can access //some of the archive's properties and the decrypted hash table and //block table directly. This struct is based on Storm's internal @@ -379,6 +383,8 @@ struct MPQFILE { LPSTR lpFileName; }; +#include + struct BLOCKTABLEENTRY { DWORD dwFileOffset; // Offset to file DWORD dwCompressedSize; // Compressed size of file @@ -393,6 +399,8 @@ struct HASHTABLEENTRY { DWORD dwBlockTableIndex; // Index to the block table entry for the file }; +#include + // Defines for backward compatibility with old lmpqapi function names #define MpqAddFileToArcive MpqAddFileToArchive #define MpqOpenArchive SFileOpenArchive