Current News Archived News Search News Discussion Forum Old Forum Install Programs More Downloads... Troubleshooting Source Code Format Specs. Misc. Information Non-SF Stuff Links Small banner for links to this site: |
diff --git a/SComp.cpp b/SComp.cpp
--- a/SComp.cpp
+++ b/SComp.cpp
unsigned int FillInput(char *lpvBuffer, unsigned int *lpdwSize, void *param);
void FillOutput(char *lpvBuffer, unsigned int *lpdwSize, void *param);
+const unsigned int UNSUPPORTED_COMPRESSION = (0xFF ^ (0x40 | 0x80 | 0x01
+#ifdef USE_ZLIB
+ | 0x02
+#endif
+ | 0x08
+#ifdef USE_BZIP2
+ | 0x10
+#endif
+ ));
+const unsigned int UNSUPPORTED_DECOMPRESSION = (0xFF ^ (0x40 | 0x80 | 0x01
+#ifdef USE_ZLIB
+ | 0x02
+#endif
+ | 0x08
+#ifdef USE_BZIP2
+ | 0x10
+#endif
+ ));
+
CompressFunc CompressionFunctions[] =
{
{0x40, CompressWaveMono},
--- a/SComp.h
+++ b/SComp.h
extern "C" {
#endif
+extern const unsigned int UNSUPPORTED_COMPRESSION;
+extern const unsigned int UNSUPPORTED_DECOMPRESSION;
+
BOOL WINAPI SCompCompress(LPVOID lpvDestinationMem, LPDWORD lpdwCompressedSize, LPVOID lpvSourceMem, DWORD dwDecompressedSize, DWORD dwCompressionType, DWORD dwCompressionSubType, DWORD dwCompressLevel);
BOOL WINAPI SCompDecompress(LPVOID lpvDestinationMem, LPDWORD lpdwDecompressedSize, LPVOID lpvSourceMem, DWORD dwCompressedSize);
|