#include "zlib.h"
int GZipCompressFile(const TCHAR* sourcePath, const TCHAR* destPath)
{FILE* in = NULL;
gzFile out = NULL;
char buf[BUFLEN] = { 0 };
int len = 0;
fopen_s(&in, sourcePath, "rb");
out = gzopen(destPath, "wb");
if (NULL == in || NULL == out)
{
return -1;
}
for (;;)
{
len = (int)fread(buf, 1, siz