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

gopher.c
Go to the documentation of this file.
00001 /*
00002  * WININET - Gopher implementation
00003  *
00004  * Copyright 2003 Kirill Smelkov
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 "wininet.h"
00028 
00029 #include "wine/debug.h"
00030 
00031 WINE_DEFAULT_DEBUG_CHANNEL(wininet);
00032 
00033 /***********************************************************************
00034  *           GopherCreateLocatorA (WININET.@)
00035  *
00036  * Create a Gopher locator string from its component parts
00037  *
00038  * PARAMS
00039  *  lpszHost            [I] host name
00040  *  nServerPort         [I] port in host byteorder or INTERNET_INVALID_PORT_NUMBER for default
00041  *  lpszDisplayString   [I] document/directory to display (NULL - default directory)
00042  *  lpszSelectorString  [I] selector string for server (NULL - none)
00043  *  dwGopherType        [I] selector type (see GOPHER_TYPE_xxx)
00044  *  lpszLocator         [O] buffer for locator string
00045  *  lpdwBufferLength    [I] locator buffer length
00046  *
00047  * RETURNS
00048  *  TRUE  on success
00049  *  FALSE on failure
00050  *
00051  */
00052 BOOL WINAPI GopherCreateLocatorA(
00053  LPCSTR        lpszHost,
00054  INTERNET_PORT nServerPort,
00055  LPCSTR        lpszDisplayString,
00056  LPCSTR        lpszSelectorString,
00057  DWORD         dwGopherType,
00058  LPSTR         lpszLocator,
00059  LPDWORD       lpdwBufferLength
00060 )
00061 {
00062     FIXME("stub\n");
00063     return FALSE;
00064 }
00065 
00066 /***********************************************************************
00067  *           GopherCreateLocatorW (WININET.@)
00068  * 
00069  * See GopherCreateLocatorA.
00070  */
00071 BOOL WINAPI GopherCreateLocatorW(
00072  LPCWSTR       lpszHost,
00073  INTERNET_PORT nServerPort,
00074  LPCWSTR       lpszDisplayString,
00075  LPCWSTR       lpszSelectorString,
00076  DWORD         dwHopherType,
00077  LPWSTR        lpszLocator,
00078  LPDWORD       lpdwBufferLength
00079 )
00080 {
00081     FIXME("stub\n");
00082     return FALSE;
00083 }
00084 
00085 /***********************************************************************
00086  *           GopherFindFirstFileA (WININET.@)
00087  *
00088  * Create a session and locate the requested documents
00089  *
00090  * PARAMS
00091  *  hConnect        [I] Handle to a Gopher session returned by InternetConnect
00092  *  lpszLocator     [I] - address of a string containing the name of the item to locate.
00093  *                      - Locator created by the GopherCreateLocator function.
00094  * lpszSearchString [I] what to search for if this request is to an index server.
00095  *                      Otherwise, this parameter should be NULL.
00096  * lpFindData       [O] retrieved information
00097  * dwFlags          [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
00098  * dwContext        [I] application private value
00099  *
00100  * RETURNS
00101  *  HINTERNET handle on success
00102  *  NULL on error
00103  */
00104 HINTERNET WINAPI GopherFindFirstFileA(
00105  HINTERNET hConnect,
00106  LPCSTR    lpszLocator,
00107  LPCSTR    lpszSearchString,
00108  LPGOPHER_FIND_DATAA
00109            lpFindData,
00110  DWORD     dwFlags,
00111  DWORD_PTR dwContext
00112 )
00113 {
00114     FIXME("stub\n");
00115     return NULL;
00116 }
00117 
00118 /***********************************************************************
00119  *           GopherFindFirstFileW (WININET.@)
00120  *
00121  * See GopherFindFirstFileA.
00122  */
00123 HINTERNET WINAPI GopherFindFirstFileW(
00124  HINTERNET hConnect,
00125  LPCWSTR   lpszLocator,
00126  LPCWSTR   lpszSearchString,
00127  LPGOPHER_FIND_DATAW
00128            lpFindData,
00129  DWORD     dwFlags,
00130  DWORD_PTR dwContext
00131 )
00132 {
00133     FIXME("stub\n");
00134     return NULL;
00135 }
00136 
00137 /***********************************************************************
00138  *           GopherGetAttributeA (WININET.@)
00139  *
00140  * Retrieves the specific attribute information from the server.
00141  * 
00142  * RETURNS
00143  *  TRUE on success
00144  *  FALSE on failure
00145  */
00146 BOOL WINAPI GopherGetAttributeA(
00147  HINTERNET hConnect,
00148  LPCSTR    lpszLocator,
00149  LPCSTR    lpszAttributeName,
00150  LPBYTE    lpBuffer,
00151  DWORD     dwBufferLength,
00152  LPDWORD   lpdwCharactersReturned,
00153  GOPHER_ATTRIBUTE_ENUMERATORA
00154            lpfnEnumerator,
00155  DWORD_PTR dwContext
00156 )
00157 {
00158     FIXME("stub\n");
00159     return FALSE;
00160 }
00161 
00162 /***********************************************************************
00163  *           GopherGetAttributeW (WININET.@)
00164  *
00165  * See GopherGetAttributeA.
00166  */
00167 BOOL WINAPI GopherGetAttributeW(
00168  HINTERNET hConnect,
00169  LPCWSTR   lpszLocator,
00170  LPCWSTR   lpszAttributeName,
00171  LPBYTE    lpBuffer,
00172  DWORD     dwBufferLength,
00173  LPDWORD   lpdwCharactersReturned,
00174  GOPHER_ATTRIBUTE_ENUMERATORW
00175            lpfnEnumerator,
00176  DWORD_PTR dwContext
00177 )
00178 {
00179     FIXME("stub\n");
00180     return FALSE;
00181 }
00182 
00183 /***********************************************************************
00184  *           GopherGetLocatorTypeA (WININET.@)
00185  *
00186  * Parses a Gopher locator and determines its attributes.
00187  *
00188  * PARAMS
00189  *  lpszLocator     [I] Address of the Gopher locator string to parse
00190  *  lpdwGopherType  [O] destination for bitmasked type of locator
00191  *
00192  * RETURNS
00193  *  TRUE  on success
00194  *  FALSE on failure
00195  */
00196 BOOL WINAPI GopherGetLocatorTypeA(LPCSTR lpszLocator, LPDWORD lpdwGopherType)
00197 {
00198     FIXME("stub\n");
00199     return FALSE;
00200 }
00201 
00202 /***********************************************************************
00203  *           GopherGetLocatorTypeW (WININET.@)
00204  *
00205  * See GopherGetLocatorTypeA.
00206  */
00207 BOOL WINAPI GopherGetLocatorTypeW(LPCWSTR lpszLocator, LPDWORD lpdwGopherType)
00208 {
00209     FIXME("stub\n");
00210     return FALSE;
00211 }
00212 
00213 /***********************************************************************
00214  *           GopherOpenFileA (WININET.@)
00215  *
00216  * Begins reading a Gopher data file from a Gopher server.
00217  *
00218  * PARAMS
00219  *  hConnect    [I] handle to a Gopher session
00220  *  lpszLocator [I] file locator
00221  *  lpszView    [I] file view (or default if NULL)
00222  *  dwFlags     [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
00223  *  dwContext   [I] application private value
00224  *
00225  * RETURNS
00226  *  handle  on success
00227  *  NULL    on error
00228  */
00229 HINTERNET WINAPI GopherOpenFileA(
00230  HINTERNET hConnect,
00231  LPCSTR    lpszLocator,
00232  LPCSTR    lpszView,
00233  DWORD     dwFlags,
00234  DWORD_PTR dwContext
00235 )
00236 {
00237     FIXME("stub\n");
00238     return NULL;
00239 }
00240 
00241 /***********************************************************************
00242  *           GopherOpenFileW (WININET.@)
00243  *
00244  * See GopherOpenFileA.
00245  */
00246 HINTERNET WINAPI GopherOpenFileW(
00247  HINTERNET hConnect,
00248  LPCWSTR   lpszLocator,
00249  LPCWSTR   lpszView,
00250  DWORD     dwFlags,
00251  DWORD_PTR dwContext
00252 )
00253 {
00254     FIXME("stub\n");
00255     return NULL;
00256 }

Generated on Sat May 26 2012 04:25:12 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.