2 * WININET - Gopher implementation
4 * Copyright 2003 Kirill Smelkov
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
29 #include "wine/debug.h"
31 WINE_DEFAULT_DEBUG_CHANNEL(wininet);
33 /***********************************************************************
34 * GopherCreateLocatorA (WININET.@)
36 * Create a Gopher locator string from its component parts
39 * lpszHost [I] host name
40 * nServerPort [I] port in host byteorder or INTERNET_INVALID_PORT_NUMBER for default
41 * lpszDisplayString [I] document/directory to display (NULL - default directory)
42 * lpszSelectorString [I] selector string for server (NULL - none)
43 * dwGopherType [I] selector type (see GOPHER_TYPE_xxx)
44 * lpszLocator [O] buffer for locator string
45 * lpdwBufferLength [I] locator buffer length
52 BOOL WINAPI GopherCreateLocatorA(
54 INTERNET_PORT nServerPort,
55 LPCSTR lpszDisplayString,
56 LPCSTR lpszSelectorString,
59 LPDWORD lpdwBufferLength
66 /***********************************************************************
67 * GopherCreateLocatorW (WININET.@)
69 * See GopherCreateLocatorA.
71 BOOL WINAPI GopherCreateLocatorW(
73 INTERNET_PORT nServerPort,
74 LPCWSTR lpszDisplayString,
75 LPCWSTR lpszSelectorString,
78 LPDWORD lpdwBufferLength
85 /***********************************************************************
86 * GopherFindFirstFileA (WININET.@)
88 * Create a session and locate the requested documents
91 * hConnect [I] Handle to a Gopher session returned by InternetConnect
92 * lpszLocator [I] - address of a string containing the name of the item to locate.
93 * - Locator created by the GopherCreateLocator function.
94 * lpszSearchString [I] what to search for if this request is to an index server.
95 * Otherwise, this parameter should be NULL.
96 * lpFindData [O] retrieved information
97 * dwFlags [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
98 * dwContext [I] application private value
101 * HINTERNET handle on success
104 HINTERNET WINAPI GopherFindFirstFileA(
107 LPCSTR lpszSearchString,
118 /***********************************************************************
119 * GopherFindFirstFileW (WININET.@)
121 * See GopherFindFirstFileA.
123 HINTERNET WINAPI GopherFindFirstFileW(
126 LPCWSTR lpszSearchString,
137 /***********************************************************************
138 * GopherGetAttributeA (WININET.@)
140 * Retrieves the specific attribute information from the server.
146 BOOL WINAPI GopherGetAttributeA(
149 LPCSTR lpszAttributeName,
151 DWORD dwBufferLength,
152 LPDWORD lpdwCharactersReturned,
153 GOPHER_ATTRIBUTE_ENUMERATORA
162 /***********************************************************************
163 * GopherGetAttributeW (WININET.@)
165 * See GopherGetAttributeA.
167 BOOL WINAPI GopherGetAttributeW(
170 LPCWSTR lpszAttributeName,
172 DWORD dwBufferLength,
173 LPDWORD lpdwCharactersReturned,
174 GOPHER_ATTRIBUTE_ENUMERATORW
183 /***********************************************************************
184 * GopherGetLocatorTypeA (WININET.@)
186 * Parses a Gopher locator and determines its attributes.
189 * lpszLocator [I] Address of the Gopher locator string to parse
190 * lpdwGopherType [O] destination for bitmasked type of locator
196 BOOL WINAPI GopherGetLocatorTypeA(LPCSTR lpszLocator, LPDWORD lpdwGopherType)
202 /***********************************************************************
203 * GopherGetLocatorTypeW (WININET.@)
205 * See GopherGetLocatorTypeA.
207 BOOL WINAPI GopherGetLocatorTypeW(LPCWSTR lpszLocator, LPDWORD lpdwGopherType)
213 /***********************************************************************
214 * GopherOpenFileA (WININET.@)
216 * Begins reading a Gopher data file from a Gopher server.
219 * hConnect [I] handle to a Gopher session
220 * lpszLocator [I] file locator
221 * lpszView [I] file view (or default if NULL)
222 * dwFlags [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
223 * dwContext [I] application private value
229 HINTERNET WINAPI GopherOpenFileA(
241 /***********************************************************************
242 * GopherOpenFileW (WININET.@)
244 * See GopherOpenFileA.
246 HINTERNET WINAPI GopherOpenFileW(