-
Notifications
You must be signed in to change notification settings - Fork 0
/
httpcompression.h
91 lines (75 loc) · 1.83 KB
/
httpcompression.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
#ifndef _HTTP_COMPRESSION_H_
#define _HTTP_COMPRESSION_H_
#include "stdafx.h"
#include <Windows.h>
/*++
Copyright (c) 2009 Microsoft Corporation
Module Name:
httpcompression.h
Abstract:
Definition of extensibility APIs required
to write a compression scheme for IIS
--*/
//
// Initialize compression scheme
// When used with IIS, InitCompression is called once as soon
// as compression scheme dll is loaded by IIS compression module
//
typedef
HRESULT
(__cdecl *InitCompression)(
VOID
);
//
// Uninitialize compression scheme
// When used with IIS, this method is called before compression
// scheme dll is unloaded by IIS compression module
//
typedef
VOID
(__cdecl *DeInitCompression)(
VOID
);
//
// Create a new compression context
//
typedef
HRESULT
(__cdecl *CreateCompression)(
OUT PVOID *context,
IN ULONG reserved
);
//
// Compress data
//
typedef
HRESULT
(__cdecl *Compress)(
IN OUT PVOID context, // compression context
IN CONST BYTE * input_buffer, // input buffer
IN LONG input_buffer_size, // size of input buffer
IN PBYTE output_buffer, // output buffer
IN LONG output_buffer_size, // size of output buffer
OUT PLONG input_used, // amount of input buffer used
OUT PLONG output_used, // amount of output buffer used
IN INT compression_level // compression level (1...10)
);
//
// Destroy compression context
//
typedef
VOID
(__cdecl *DestroyCompression)(
IN PVOID context
);
//
// Reset compression state
// Required export but not used on Windows Vista and Windows Server 2008 - IIS 7.0
// Deprecated and not required export for Windows 7 and Windows Server 2008 R2 - IIS 7.5
//
typedef
HRESULT
(__cdecl *ResetCompression)(
IN OUT PVOID context
);
#endif // _HTTP_COMPRESSION_H_