2015-11-16 15:22:39 +00:00
|
|
|
/*******************************************************************************
|
|
|
|
*
|
|
|
|
* (C) COPYRIGHT AUTHORS, 2014 - 2016
|
|
|
|
*
|
|
|
|
* TITLE: COMPRESS.H
|
|
|
|
*
|
2016-05-29 08:05:10 +00:00
|
|
|
* VERSION: 2.20
|
2015-11-16 15:22:39 +00:00
|
|
|
*
|
2016-05-29 08:05:10 +00:00
|
|
|
* DATE: 20 Apr 2016
|
2015-11-16 15:22:39 +00:00
|
|
|
*
|
|
|
|
* Prototypes and definitions for compression.
|
|
|
|
*
|
|
|
|
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
|
|
|
|
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
|
|
|
|
* TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
|
|
|
|
* PARTICULAR PURPOSE.
|
|
|
|
*
|
|
|
|
*******************************************************************************/
|
|
|
|
#pragma once
|
|
|
|
|
2016-04-16 03:46:41 +00:00
|
|
|
typedef PVOID(*pfnDecompressPayload)(
|
|
|
|
_In_ PVOID CompressedBuffer,
|
|
|
|
_In_ ULONG CompressedBufferSize,
|
|
|
|
_Inout_ PULONG DecompressedBufferSize
|
|
|
|
);
|
2015-11-16 15:22:39 +00:00
|
|
|
|
|
|
|
PUCHAR CompressBufferLZNT1(
|
2016-04-16 03:46:41 +00:00
|
|
|
_In_ PUCHAR SrcBuffer,
|
|
|
|
_In_ ULONG SrcSize,
|
|
|
|
_Inout_ PULONG FinalCompressedSize
|
|
|
|
);
|
2015-11-16 15:22:39 +00:00
|
|
|
|
|
|
|
PUCHAR DecompressBufferLZNT1(
|
2016-04-16 03:46:41 +00:00
|
|
|
_In_ PUCHAR CompBuffer,
|
|
|
|
_In_ ULONG CompSize,
|
|
|
|
_In_ ULONG UncompressedBufferSize,
|
|
|
|
_Inout_ PULONG FinalUncompressedSize
|
|
|
|
);
|
2015-11-16 15:22:39 +00:00
|
|
|
|
|
|
|
VOID CompressPayload(
|
2016-04-16 03:46:41 +00:00
|
|
|
VOID
|
|
|
|
);
|
2015-11-16 15:22:39 +00:00
|
|
|
|
|
|
|
PVOID DecompressPayload(
|
2016-04-16 03:46:41 +00:00
|
|
|
_In_ PVOID CompressedBuffer,
|
|
|
|
_In_ ULONG CompressedBufferSize,
|
|
|
|
_Inout_ PULONG DecompressedBufferSize
|
|
|
|
);
|