Windows NT 4.0 source code leak
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.2 KiB

// ZECK.H Copyright (C) Microsoft Corporation 1990-1995, All Rights reserved.
#include <pshpack1.h>
// This structure is passed to the compression routine to specify ranges
// in which to suppress compression:
typedef struct struct_suppresszeck SUPPRESSZECK, *QSUPPRESSZECK;
// REVIEW: can we switch to DWORDs?
struct struct_suppresszeck {
PBYTE rbSuppress; // beginning of range for suppression.
WORD cbSuppress; // number of bytes to suppress compression.
PBYTE rbNewpos; // pointer into dest buffer where suppressed range
// ended up after compression (an OUT param value).
WORD iBitdex; // offset from rbNewpos of zeck code bits, used when
// back patching.
QSUPPRESSZECK next; // next suppression range in this list.
};
#define BITDEX_NONE (-1) // indicates no compression took place, and
// backpatch should not adjust for the
// code bits.
#if defined( __cplusplus )
extern "C" {
#endif
int STDCALL LcbCompressZeck(PBYTE pbSrc, PBYTE pbDest, int cbSrc,
int cbDest, int * qulSrcUsed = NULL, QSUPPRESSZECK qSuppress = NULL);
int STDCALL LcbUncompressZeck(PBYTE pbSrc, PBYTE pbDest, int cbSrc);
#if defined( __cplusplus )
}
#endif