ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

httpapi_main.c
Go to the documentation of this file.
00001 /*
00002  * HTTPAPI implementation
00003  *
00004  * Copyright 2009 Austin English
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00019  */
00020 
00021 #include "config.h"
00022 
00023 #include <stdarg.h>
00024 
00025 #include "windef.h"
00026 #include "winbase.h"
00027 #include "http.h"
00028 #include "wine/debug.h"
00029 
00030 WINE_DEFAULT_DEBUG_CHANNEL(httpapi);
00031 
00032 BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID lpv )
00033 {
00034     switch(reason)
00035     {
00036     case DLL_WINE_PREATTACH:
00037         return FALSE;  /* prefer native version */
00038     case DLL_PROCESS_ATTACH:
00039         DisableThreadLibraryCalls( hinst );
00040         break;
00041     case DLL_PROCESS_DETACH:
00042         break;
00043     }
00044     return TRUE;
00045 }
00046 
00047 /***********************************************************************
00048  *        HttpInitialize       (HTTPAPI.@)
00049  *
00050  * Initializes HTTP Server API engine
00051  *
00052  * PARAMS
00053  *   version  [ I] HTTP API version which caller will use
00054  *   flags    [ I] initialization options which specify parts of API what will be used
00055  *   reserved [IO] reserved, must be NULL
00056  *
00057  * RETURNS
00058  *   NO_ERROR if function succeeds, or error code if function fails
00059  *
00060  */
00061 ULONG WINAPI HttpInitialize( HTTPAPI_VERSION version, ULONG flags, PVOID reserved )
00062 {
00063     FIXME( "({%d,%d}, 0x%x, %p): stub!\n", version.HttpApiMajorVersion,
00064            version.HttpApiMinorVersion, flags, reserved );
00065     return NO_ERROR;
00066 }
00067 
00068 /***********************************************************************
00069  *        HttpTerminate       (HTTPAPI.@)
00070  *
00071  * Cleans up HTTP Server API engine resources allocated by HttpInitialize
00072  *
00073  * PARAMS
00074  *   flags    [ I] options which specify parts of API what should be released
00075  *   reserved [IO] reserved, must be NULL
00076  *
00077  * RETURNS
00078  *   NO_ERROR if function succeeds, or error code if function fails
00079  *
00080  */
00081 ULONG WINAPI HttpTerminate( ULONG flags, PVOID reserved )
00082 {
00083     FIXME( "(0x%x, %p): stub!\n", flags, reserved );
00084     return NO_ERROR;
00085 }
00086 
00087 /***********************************************************************
00088  *        HttpDeleteServiceConfiguration     (HTTPAPI.@)
00089  *
00090  * Remove configuration record from HTTP Server API configuration store
00091  *
00092  * PARAMS
00093  *   handle     [I] reserved, must be 0
00094  *   type       [I] configuration record type
00095  *   config     [I] buffer which contains configuration record information
00096  *   length     [I] length of configuration record buffer
00097  *   overlapped [I] reserved, must be NULL
00098  *
00099  * RETURNS
00100  *   NO_ERROR if function succeeds, or error code if function fails
00101  *
00102  */
00103 ULONG WINAPI HttpDeleteServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID type,
00104                  PVOID config, ULONG length, LPOVERLAPPED overlapped )
00105 {
00106     FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle, type, config, length, overlapped );
00107     return NO_ERROR;
00108 }
00109 
00110 /***********************************************************************
00111  *        HttpQueryServiceConfiguration     (HTTPAPI.@)
00112  *
00113  * Retrieves configuration records from HTTP Server API configuration store
00114  *
00115  * PARAMS
00116  *   handle     [ I] reserved, must be 0
00117  *   type       [ I] configuration records type
00118  *   query      [ I] buffer which contains query data used to retrieve records
00119  *   query_len  [ I] length of query buffer
00120  *   buffer     [IO] buffer to store query results
00121  *   buffer_len [ I] length of output buffer
00122  *   data_len   [ O] optional pointer to a buffer which receives query result length
00123  *   overlapped [ I] reserved, must be NULL
00124  *
00125  * RETURNS
00126  *   NO_ERROR if function succeeds, or error code if function fails
00127  *
00128  */
00129 ULONG WINAPI HttpQueryServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID type,
00130                  PVOID query, ULONG query_len, PVOID buffer, ULONG buffer_len,
00131                  PULONG data_len, LPOVERLAPPED overlapped )
00132 {
00133     FIXME( "(%p, %d, %p, %d, %p, %d, %p, %p): stub!\n", handle, type, query, query_len,
00134             buffer, buffer_len, data_len, overlapped );
00135     return ERROR_FILE_NOT_FOUND;
00136 }
00137 
00138 /***********************************************************************
00139  *        HttpSetServiceConfiguration     (HTTPAPI.@)
00140  *
00141  * Add configuration record to HTTP Server API configuration store
00142  *
00143  * PARAMS
00144  *   handle     [I] reserved, must be 0
00145  *   type       [I] configuration record type
00146  *   config     [I] buffer which contains configuration record information
00147  *   length     [I] length of configuration record buffer
00148  *   overlapped [I] reserved, must be NULL
00149  *
00150  * RETURNS
00151  *   NO_ERROR if function succeeds, or error code if function fails
00152  *
00153  */
00154 ULONG WINAPI HttpSetServiceConfiguration( HANDLE handle, HTTP_SERVICE_CONFIG_ID type,
00155                  PVOID config, ULONG length, LPOVERLAPPED overlapped )
00156 {
00157     FIXME( "(%p, %d, %p, %d, %p): stub!\n", handle, type, config, length, overlapped );
00158     return NO_ERROR;
00159 }
00160 
00161 /***********************************************************************
00162  *        HttpCreateHttpHandle     (HTTPAPI.@)
00163  *
00164  * Creates a handle to the HTTP request queue
00165  *
00166  * PARAMS
00167  *   handle     [O] handle to request queue
00168  *   reserved   [I] reserved, must be NULL
00169  *
00170  * RETURNS
00171  *   NO_ERROR if function succeeds, or error code if function fails
00172  *
00173  */
00174 ULONG WINAPI HttpCreateHttpHandle( PHANDLE handle, ULONG reserved )
00175 {
00176     FIXME( "(%p, %d): stub!\n", handle, reserved);
00177     return ERROR_CALL_NOT_IMPLEMENTED;
00178 }

Generated on Sat May 26 2012 04:22:37 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.