1 | /*
|
---|
2 | * HTTP Server API definitions
|
---|
3 | *
|
---|
4 | * Copyright (C) 2009 Andrey Turkin
|
---|
5 | *
|
---|
6 | * This library is free software; you can redistribute it and/or
|
---|
7 | * modify it under the terms of the GNU Lesser General Public
|
---|
8 | * License as published by the Free Software Foundation; either
|
---|
9 | * version 2.1 of the License, or (at your option) any later version.
|
---|
10 | *
|
---|
11 | * This library is distributed in the hope that it will be useful,
|
---|
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
14 | * Lesser General Public License for more details.
|
---|
15 | *
|
---|
16 | * You should have received a copy of the GNU Lesser General Public
|
---|
17 | * License along with this library; if not, write to the Free Software
|
---|
18 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
19 | */
|
---|
20 |
|
---|
21 | /*
|
---|
22 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
23 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
24 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
25 | * a choice of LGPL license versions is made available with the language indicating
|
---|
26 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
27 | * of the LGPL is applied is otherwise unspecified.
|
---|
28 | */
|
---|
29 |
|
---|
30 | #ifndef __WINE_HTTP_H
|
---|
31 | #define __WINE_HTTP_H
|
---|
32 |
|
---|
33 | #include <winsock2.h>
|
---|
34 | #include <ws2tcpip.h>
|
---|
35 |
|
---|
36 | #ifdef __cplusplus
|
---|
37 | extern "C" {
|
---|
38 | #endif
|
---|
39 |
|
---|
40 | typedef struct _HTTPAPI_VERSION
|
---|
41 | {
|
---|
42 | USHORT HttpApiMajorVersion;
|
---|
43 | USHORT HttpApiMinorVersion;
|
---|
44 | } HTTPAPI_VERSION, *PHTTPAPI_VERSION;
|
---|
45 |
|
---|
46 | #define HTTPAPI_VERSION_1 {1,0}
|
---|
47 | #define HTTPAPI_VERSION_2 {2,0}
|
---|
48 |
|
---|
49 | /* HttpInitialize and HttpTerminate flags */
|
---|
50 | #define HTTP_INITIALIZE_SERVER 0x00000001
|
---|
51 | #define HTTP_INITIALIZE_CONFIG 0x00000002
|
---|
52 |
|
---|
53 | typedef enum _HTTP_SERVICE_CONFIG_ID
|
---|
54 | {
|
---|
55 | HttpServiceConfigIPListenList,
|
---|
56 | HttpServiceConfigSSLCertInfo,
|
---|
57 | HttpServiceConfigUrlAclInfo,
|
---|
58 | HttpServiceConfigTimeout,
|
---|
59 | HttpServiceConfigMax
|
---|
60 | } HTTP_SERVICE_CONFIG_ID, *PHTTP_SERVICE_CONFIG_ID;
|
---|
61 |
|
---|
62 | ULONG WINAPI HttpInitialize(HTTPAPI_VERSION,ULONG,PVOID);
|
---|
63 | ULONG WINAPI HttpTerminate(ULONG,PVOID);
|
---|
64 |
|
---|
65 | ULONG WINAPI HttpDeleteServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
|
---|
66 | ULONG WINAPI HttpQueryServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,PVOID,ULONG,PULONG,LPOVERLAPPED);
|
---|
67 | ULONG WINAPI HttpSetServiceConfiguration(HANDLE,HTTP_SERVICE_CONFIG_ID,PVOID,ULONG,LPOVERLAPPED);
|
---|
68 |
|
---|
69 | #ifdef __cplusplus
|
---|
70 | }
|
---|
71 | #endif
|
---|
72 |
|
---|
73 | #endif /* __WINE_HTTP_H */
|
---|