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
28 #include "wine/debug.h"
30 WINE_DEFAULT_DEBUG_CHANNEL(httpapi
);
32 BOOL WINAPI
DllMain( HINSTANCE hinst
, DWORD reason
, LPVOID lpv
)
36 case DLL_WINE_PREATTACH
:
37 return FALSE
; /* prefer native version */
38 case DLL_PROCESS_ATTACH
:
39 DisableThreadLibraryCalls( hinst
);
45 /***********************************************************************
46 * HttpInitialize (HTTPAPI.@)
48 * Initializes HTTP Server API engine
51 * version [ I] HTTP API version which caller will use
52 * flags [ I] initialization options which specify parts of API what will be used
53 * reserved [IO] reserved, must be NULL
56 * NO_ERROR if function succeeds, or error code if function fails
59 ULONG WINAPI
HttpInitialize( HTTPAPI_VERSION version
, ULONG flags
, PVOID reserved
)
61 FIXME( "({%d,%d}, 0x%x, %p): stub!\n", version
.HttpApiMajorVersion
,
62 version
.HttpApiMinorVersion
, flags
, reserved
);
66 /***********************************************************************
67 * HttpTerminate (HTTPAPI.@)
69 * Cleans up HTTP Server API engine resources allocated by HttpInitialize
72 * flags [ I] options which specify parts of API what should be released
73 * reserved [IO] reserved, must be NULL
76 * NO_ERROR if function succeeds, or error code if function fails
79 ULONG WINAPI
HttpTerminate( ULONG flags
, PVOID reserved
)
81 FIXME( "(0x%x, %p): stub!\n", flags
, reserved
);
85 /***********************************************************************
86 * HttpDeleteServiceConfiguration (HTTPAPI.@)
88 * Remove configuration record from HTTP Server API configuration store
91 * handle [I] reserved, must be 0
92 * type [I] configuration record type
93 * config [I] buffer which contains configuration record information
94 * length [I] length of configuration record buffer
95 * overlapped [I] reserved, must be NULL
98 * NO_ERROR if function succeeds, or error code if function fails
101 ULONG WINAPI
HttpDeleteServiceConfiguration( HANDLE handle
, HTTP_SERVICE_CONFIG_ID type
,
102 PVOID config
, ULONG length
, LPOVERLAPPED overlapped
)
104 FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle
, type
, config
, length
, overlapped
);
108 /***********************************************************************
109 * HttpQueryServiceConfiguration (HTTPAPI.@)
111 * Retrieves configuration records from HTTP Server API configuration store
114 * handle [ I] reserved, must be 0
115 * type [ I] configuration records type
116 * query [ I] buffer which contains query data used to retrieve records
117 * query_len [ I] length of query buffer
118 * buffer [IO] buffer to store query results
119 * buffer_len [ I] length of output buffer
120 * data_len [ O] optional pointer to a buffer which receives query result length
121 * overlapped [ I] reserved, must be NULL
124 * NO_ERROR if function succeeds, or error code if function fails
127 ULONG WINAPI
HttpQueryServiceConfiguration( HANDLE handle
, HTTP_SERVICE_CONFIG_ID type
,
128 PVOID query
, ULONG query_len
, PVOID buffer
, ULONG buffer_len
,
129 PULONG data_len
, LPOVERLAPPED overlapped
)
131 FIXME( "(%p, %d, %p, %d, %p, %d, %p, %p): stub!\n", handle
, type
, query
, query_len
,
132 buffer
, buffer_len
, data_len
, overlapped
);
133 return ERROR_FILE_NOT_FOUND
;
136 /***********************************************************************
137 * HttpSetServiceConfiguration (HTTPAPI.@)
139 * Add configuration record to HTTP Server API configuration store
142 * handle [I] reserved, must be 0
143 * type [I] configuration record type
144 * config [I] buffer which contains configuration record information
145 * length [I] length of configuration record buffer
146 * overlapped [I] reserved, must be NULL
149 * NO_ERROR if function succeeds, or error code if function fails
152 ULONG WINAPI
HttpSetServiceConfiguration( HANDLE handle
, HTTP_SERVICE_CONFIG_ID type
,
153 PVOID config
, ULONG length
, LPOVERLAPPED overlapped
)
155 FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle
, type
, config
, length
, overlapped
);
159 /***********************************************************************
160 * HttpCreateHttpHandle (HTTPAPI.@)
162 * Creates a handle to the HTTP request queue
165 * handle [O] handle to request queue
166 * reserved [I] reserved, must be NULL
169 * NO_ERROR if function succeeds, or error code if function fails
172 ULONG WINAPI
HttpCreateHttpHandle( PHANDLE handle
, ULONG reserved
)
174 FIXME( "(%p, %d): stub!\n", handle
, reserved
);
175 return ERROR_CALL_NOT_IMPLEMENTED
;
178 /***********************************************************************
179 * HttpAddUrl (HTTPAPI.@)
181 ULONG WINAPI
HttpAddUrl( HANDLE handle
, PCWSTR url
, PVOID reserved
)
183 FIXME( "(%p, %s, %p): stub!\n", handle
, debugstr_w(url
), reserved
);
184 return ERROR_CALL_NOT_IMPLEMENTED
;