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
23 /***********************************************************************
24 * GopherCreateLocatorA (WININET.@)
26 * Create a Gopher locator string from its component parts
29 * lpszHost [I] host name
30 * nServerPort [I] port in host byteorder or INTERNET_INVALID_PORT_NUMBER for default
31 * lpszDisplayString [I] document/directory to display (NULL - default directory)
32 * lpszSelectorString [I] selector string for server (NULL - none)
33 * dwGopherType [I] selector type (see GOPHER_TYPE_xxx)
34 * lpszLocator [O] buffer for locator string
35 * lpdwBufferLength [I] locator buffer length
42 BOOL WINAPI
GopherCreateLocatorA(
44 INTERNET_PORT nServerPort
,
45 LPCSTR lpszDisplayString
,
46 LPCSTR lpszSelectorString
,
49 LPDWORD lpdwBufferLength
56 /***********************************************************************
57 * GopherCreateLocatorW (WININET.@)
59 * See GopherCreateLocatorA.
61 BOOL WINAPI
GopherCreateLocatorW(
63 INTERNET_PORT nServerPort
,
64 LPCWSTR lpszDisplayString
,
65 LPCWSTR lpszSelectorString
,
68 LPDWORD lpdwBufferLength
75 /***********************************************************************
76 * GopherFindFirstFileA (WININET.@)
78 * Create a session and locate the requested documents
81 * hConnect [I] Handle to a Gopher session returned by InternetConnect
82 * lpszLocator [I] - address of a string containing the name of the item to locate.
83 * - Locator created by the GopherCreateLocator function.
84 * lpszSearchString [I] what to search for if this request is to an index server.
85 * Otherwise, this parameter should be NULL.
86 * lpFindData [O] retrieved information
87 * dwFlags [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
88 * dwContext [I] application private value
91 * HINTERNET handle on success
94 HINTERNET WINAPI
GopherFindFirstFileA(
97 LPCSTR lpszSearchString
,
108 /***********************************************************************
109 * GopherFindFirstFileW (WININET.@)
111 * See GopherFindFirstFileA.
113 HINTERNET WINAPI
GopherFindFirstFileW(
116 LPCWSTR lpszSearchString
,
127 /***********************************************************************
128 * GopherGetAttributeA (WININET.@)
130 * Retrieves the specific attribute information from the server.
136 BOOL WINAPI
GopherGetAttributeA(
139 LPCSTR lpszAttributeName
,
141 DWORD dwBufferLength
,
142 LPDWORD lpdwCharactersReturned
,
143 GOPHER_ATTRIBUTE_ENUMERATORA
152 /***********************************************************************
153 * GopherGetAttributeW (WININET.@)
155 * See GopherGetAttributeA.
157 BOOL WINAPI
GopherGetAttributeW(
160 LPCWSTR lpszAttributeName
,
162 DWORD dwBufferLength
,
163 LPDWORD lpdwCharactersReturned
,
164 GOPHER_ATTRIBUTE_ENUMERATORW
173 /***********************************************************************
174 * GopherGetLocatorTypeA (WININET.@)
176 * Parses a Gopher locator and determines its attributes.
179 * lpszLocator [I] Address of the Gopher locator string to parse
180 * lpdwGopherType [O] destination for bitmasked type of locator
186 BOOL WINAPI
GopherGetLocatorTypeA(LPCSTR lpszLocator
, LPDWORD lpdwGopherType
)
192 /***********************************************************************
193 * GopherGetLocatorTypeW (WININET.@)
195 * See GopherGetLocatorTypeA.
197 BOOL WINAPI
GopherGetLocatorTypeW(LPCWSTR lpszLocator
, LPDWORD lpdwGopherType
)
203 /***********************************************************************
204 * GopherOpenFileA (WININET.@)
206 * Begins reading a Gopher data file from a Gopher server.
209 * hConnect [I] handle to a Gopher session
210 * lpszLocator [I] file locator
211 * lpszView [I] file view (or default if NULL)
212 * dwFlags [I] INTERNET_FLAG_{HYPERLINK, NEED_FILE, NO_CACHE_WRITE, RELOAD, RESYNCHRONIZE}
213 * dwContext [I] application private value
219 HINTERNET WINAPI
GopherOpenFileA(
231 /***********************************************************************
232 * GopherOpenFileW (WININET.@)
234 * See GopherOpenFileA.
236 HINTERNET WINAPI
GopherOpenFileW(