ReactOS  0.4.14-dev-854-gb9426a3
mszip.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS cabinet manager
4  * FILE: tools/cabman/mszip.h
5  * PURPOSE: CAB codec for MSZIP compressed data
6  */
7 
8 #pragma once
9 
10 #include "cabinet.h"
11 #include <zlib.h>
12 
13 #define MSZIP_MAGIC 0x4B43
14 
15 
16 /* Classes */
17 
18 class CMSZipCodec : public CCABCodec
19 {
20 public:
21  /* Default constructor */
22  CMSZipCodec();
23  /* Default destructor */
24  virtual ~CMSZipCodec();
25  /* Compresses a data block */
26  virtual ULONG Compress(void* OutputBuffer,
27  void* InputBuffer,
28  ULONG InputLength,
29  PULONG OutputLength);
30  /* Uncompresses a data block */
31  virtual ULONG Uncompress(void* OutputBuffer,
32  void* InputBuffer,
33  ULONG InputLength,
34  PULONG OutputLength);
35 private:
36  int Status;
37  z_stream ZStream; /* Zlib stream */
38 };
39 
40 /* EOF */
z_stream ZStream
Definition: mszip.h:37
int Status
Definition: mszip.h:36
CHAR InputBuffer[80]
Definition: conmgr.c:33
_Must_inspect_result_ __drv_aliasesMem _In_ PDEVICE_OBJECT _In_opt_ PVOID _In_ ULONG _Out_opt_ PVOID OutputBuffer
Definition: iofuncs.h:713
CMSZipCodec()
Definition: mszip.cxx:36
virtual ~CMSZipCodec()
Definition: mszip.cxx:47
virtual ULONG Uncompress(void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength)
Definition: mszip.cxx:115
unsigned int * PULONG
Definition: retypes.h:1
virtual ULONG Compress(void *OutputBuffer, void *InputBuffer, ULONG InputLength, PULONG OutputLength)
Definition: mszip.cxx:55
unsigned int ULONG
Definition: retypes.h:1