2 * HTTPAPI implementation
4 * Copyright 2009 Austin English
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.
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.
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
21 #define WIN32_NO_STATUS
23 #define COM_NO_WINDOWS_H
32 #include <wine/debug.h>
34 WINE_DEFAULT_DEBUG_CHANNEL(httpapi
);
36 BOOL WINAPI
DllMain( HINSTANCE hinst
, DWORD reason
, LPVOID lpv
)
40 case DLL_WINE_PREATTACH
:
41 return FALSE
; /* prefer native version */
42 case DLL_PROCESS_ATTACH
:
43 DisableThreadLibraryCalls( hinst
);
45 case DLL_PROCESS_DETACH
:
51 /***********************************************************************
52 * HttpInitialize (HTTPAPI.@)
54 * Initializes HTTP Server API engine
57 * version [ I] HTTP API version which caller will use
58 * flags [ I] initialization options which specify parts of API what will be used
59 * reserved [IO] reserved, must be NULL
62 * NO_ERROR if function succeeds, or error code if function fails
65 ULONG WINAPI
HttpInitialize( HTTPAPI_VERSION version
, ULONG flags
, PVOID reserved
)
67 FIXME( "({%d,%d}, 0x%x, %p): stub!\n", version
.HttpApiMajorVersion
,
68 version
.HttpApiMinorVersion
, flags
, reserved
);
72 /***********************************************************************
73 * HttpTerminate (HTTPAPI.@)
75 * Cleans up HTTP Server API engine resources allocated by HttpInitialize
78 * flags [ I] options which specify parts of API what should be released
79 * reserved [IO] reserved, must be NULL
82 * NO_ERROR if function succeeds, or error code if function fails
85 ULONG WINAPI
HttpTerminate( ULONG flags
, PVOID reserved
)
87 FIXME( "(0x%x, %p): stub!\n", flags
, reserved
);
91 /***********************************************************************
92 * HttpDeleteServiceConfiguration (HTTPAPI.@)
94 * Remove configuration record from HTTP Server API configuration store
97 * handle [I] reserved, must be 0
98 * type [I] configuration record type
99 * config [I] buffer which contains configuration record information
100 * length [I] length of configuration record buffer
101 * overlapped [I] reserved, must be NULL
104 * NO_ERROR if function succeeds, or error code if function fails
107 ULONG WINAPI
HttpDeleteServiceConfiguration( HANDLE handle
, HTTP_SERVICE_CONFIG_ID type
,
108 PVOID config
, ULONG length
, LPOVERLAPPED overlapped
)
110 FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle
, type
, config
, length
, overlapped
);
114 /***********************************************************************
115 * HttpQueryServiceConfiguration (HTTPAPI.@)
117 * Retrieves configuration records from HTTP Server API configuration store
120 * handle [ I] reserved, must be 0
121 * type [ I] configuration records type
122 * query [ I] buffer which contains query data used to retrieve records
123 * query_len [ I] length of query buffer
124 * buffer [IO] buffer to store query results
125 * buffer_len [ I] length of output buffer
126 * data_len [ O] optional pointer to a buffer which receives query result length
127 * overlapped [ I] reserved, must be NULL
130 * NO_ERROR if function succeeds, or error code if function fails
133 ULONG WINAPI
HttpQueryServiceConfiguration( HANDLE handle
, HTTP_SERVICE_CONFIG_ID type
,
134 PVOID query
, ULONG query_len
, PVOID buffer
, ULONG buffer_len
,
135 PULONG data_len
, LPOVERLAPPED overlapped
)
137 FIXME( "(%p, %d, %p, %d, %p, %d, %p, %p): stub!\n", handle
, type
, query
, query_len
,
138 buffer
, buffer_len
, data_len
, overlapped
);
139 return ERROR_FILE_NOT_FOUND
;
142 /***********************************************************************
143 * HttpSetServiceConfiguration (HTTPAPI.@)
145 * Add configuration record to HTTP Server API configuration store
148 * handle [I] reserved, must be 0
149 * type [I] configuration record type
150 * config [I] buffer which contains configuration record information
151 * length [I] length of configuration record buffer
152 * overlapped [I] reserved, must be NULL
155 * NO_ERROR if function succeeds, or error code if function fails
158 ULONG WINAPI
HttpSetServiceConfiguration( HANDLE handle
, HTTP_SERVICE_CONFIG_ID type
,
159 PVOID config
, ULONG length
, LPOVERLAPPED overlapped
)
161 FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle
, type
, config
, length
, overlapped
);
165 /***********************************************************************
166 * HttpCreateHttpHandle (HTTPAPI.@)
168 * Creates a handle to the HTTP request queue
171 * handle [O] handle to request queue
172 * reserved [I] reserved, must be NULL
175 * NO_ERROR if function succeeds, or error code if function fails
178 ULONG WINAPI
HttpCreateHttpHandle( PHANDLE handle
, ULONG reserved
)
180 FIXME( "(%p, %d): stub!\n", handle
, reserved
);
181 return ERROR_CALL_NOT_IMPLEMENTED
;