Move URL_SCHEME typedef to match PSDK.
[wine.git] / include / shlwapi.h
blobd7583ca719073d0746ead6d5c89e54ae8c4005d7
1 /*
2 * SHLWAPI.DLL functions
4 * Copyright (C) 2000 Juergen Schmied
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_SHLWAPI_H
22 #define __WINE_SHLWAPI_H
24 #include <objbase.h>
25 #include <shtypes.h>
27 #ifdef __cplusplus
28 extern "C" {
29 #endif /* defined(__cplusplus) */
31 #include <pshpack8.h>
33 #ifndef NO_SHLWAPI_REG
35 /* Registry functions */
37 DWORD WINAPI SHDeleteEmptyKeyA(HKEY,LPCSTR);
38 DWORD WINAPI SHDeleteEmptyKeyW(HKEY,LPCWSTR);
39 #define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
41 DWORD WINAPI SHDeleteKeyA(HKEY,LPCSTR);
42 DWORD WINAPI SHDeleteKeyW(HKEY,LPCWSTR);
43 #define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
45 DWORD WINAPI SHDeleteValueA(HKEY,LPCSTR,LPCSTR);
46 DWORD WINAPI SHDeleteValueW(HKEY,LPCWSTR,LPCWSTR);
47 #define SHDeleteValue WINELIB_NAME_AW(SHDeleteValue)
49 DWORD WINAPI SHGetValueA(HKEY,LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD);
50 DWORD WINAPI SHGetValueW(HKEY,LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD);
51 #define SHGetValue WINELIB_NAME_AW(SHGetValue)
53 DWORD WINAPI SHSetValueA(HKEY,LPCSTR,LPCSTR,DWORD,LPCVOID,DWORD);
54 DWORD WINAPI SHSetValueW(HKEY,LPCWSTR,LPCWSTR,DWORD,LPCVOID,DWORD);
55 #define SHSetValue WINELIB_NAME_AW(SHSetValue)
57 DWORD WINAPI SHQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
58 DWORD WINAPI SHQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
59 #define SHQueryValueEx WINELIB_NAME_AW(SHQueryValueEx)
61 LONG WINAPI SHEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD);
62 LONG WINAPI SHEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD);
63 #define SHEnumKeyEx WINELIB_NAME_AW(SHEnumKeyEx)
65 LONG WINAPI SHEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
66 LONG WINAPI SHEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
67 #define SHEnumValue WINELIB_NAME_AW(SHEnumValue)
69 LONG WINAPI SHQueryInfoKeyA(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
70 LONG WINAPI SHQueryInfoKeyW(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
71 #define SHQueryInfoKey WINELIB_NAME_AW(SHQueryInfoKey)
73 DWORD WINAPI SHRegGetPathA(HKEY,LPCSTR,LPCSTR,LPSTR,DWORD);
74 DWORD WINAPI SHRegGetPathW(HKEY,LPCWSTR,LPCWSTR,LPWSTR,DWORD);
75 #define SHRegGetPath WINELIB_NAME_AW(SHRegGetPath)
77 DWORD WINAPI SHRegSetPathA(HKEY,LPCSTR,LPCSTR,LPCSTR,DWORD);
78 DWORD WINAPI SHRegSetPathW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR,DWORD);
79 #define SHRegSetPath WINELIB_NAME_AW(SHRegSetPath)
81 DWORD WINAPI SHCopyKeyA(HKEY,LPCSTR,HKEY,DWORD);
82 DWORD WINAPI SHCopyKeyW(HKEY,LPCWSTR,HKEY,DWORD);
83 #define SHCopyKey WINELIB_NAME_AW(SHCopyKey)
85 /* Undocumented registry functions */
87 HKEY WINAPI SHRegDuplicateHKey(HKEY);
89 DWORD WINAPI SHDeleteOrphanKeyA(HKEY,LPCSTR);
90 DWORD WINAPI SHDeleteOrphanKeyW(HKEY,LPCWSTR);
91 #define SHDeleteOrphanKey WINELIB_NAME_AW(SHDeleteOrphanKey)
94 /* User registry functions */
96 typedef enum
98 SHREGDEL_DEFAULT = 0,
99 SHREGDEL_HKCU = 0x1,
100 SHREGDEL_HKLM = 0x10,
101 SHREGDEL_BOTH = SHREGDEL_HKLM | SHREGDEL_HKCU
102 } SHREGDEL_FLAGS;
104 typedef enum
106 SHREGENUM_DEFAULT = 0,
107 SHREGENUM_HKCU = 0x1,
108 SHREGENUM_HKLM = 0x10,
109 SHREGENUM_BOTH = SHREGENUM_HKLM | SHREGENUM_HKCU
110 } SHREGENUM_FLAGS;
112 #define SHREGSET_HKCU 0x1 /* Apply to HKCU if empty */
113 #define SHREGSET_FORCE_HKCU 0x2 /* Always apply to HKCU */
114 #define SHREGSET_HKLM 0x4 /* Apply to HKLM if empty */
115 #define SHREGSET_FORCE_HKLM 0x8 /* Always apply to HKLM */
116 #define SHREGSET_DEFAULT (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
118 typedef HANDLE HUSKEY;
119 typedef HUSKEY *PHUSKEY;
121 LONG WINAPI SHRegCreateUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
122 LONG WINAPI SHRegCreateUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
123 #define SHRegCreateUSKey WINELIB_NAME_AW(SHRegCreateUSKey)
125 LONG WINAPI SHRegOpenUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
126 LONG WINAPI SHRegOpenUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
127 #define SHRegOpenUSKey WINELIB_NAME_AW(SHRegOpenUSKey)
129 LONG WINAPI SHRegQueryUSValueA(HUSKEY,LPCSTR,LPDWORD,LPVOID,LPDWORD,
130 BOOL,LPVOID,DWORD);
131 LONG WINAPI SHRegQueryUSValueW(HUSKEY,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
132 BOOL,LPVOID,DWORD);
133 #define SHRegQueryUSValue WINELIB_NAME_AW(SHRegQueryUSValue)
135 LONG WINAPI SHRegWriteUSValueA(HUSKEY,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
136 LONG WINAPI SHRegWriteUSValueW(HUSKEY,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
137 #define SHRegWriteUSValue WINELIB_NAME_AW(SHRegWriteUSValue)
139 LONG WINAPI SHRegDeleteUSValueA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
140 LONG WINAPI SHRegDeleteUSValueW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
141 #define SHRegDeleteUSValue WINELIB_NAME_AW(SHRegDeleteUSValue)
143 LONG WINAPI SHRegDeleteEmptyUSKeyA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
144 LONG WINAPI SHRegDeleteEmptyUSKeyW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
145 #define SHRegDeleteEmptyUSKey WINELIB_NAME_AW(SHRegDeleteEmptyUSKey)
147 LONG WINAPI SHRegEnumUSKeyA(HUSKEY,DWORD,LPSTR,LPDWORD,SHREGENUM_FLAGS);
148 LONG WINAPI SHRegEnumUSKeyW(HUSKEY,DWORD,LPWSTR,LPDWORD,SHREGENUM_FLAGS);
149 #define SHRegEnumUSKey WINELIB_NAME_AW(SHRegEnumUSKey)
151 LONG WINAPI SHRegEnumUSValueA(HUSKEY,DWORD,LPSTR,LPDWORD,LPDWORD,
152 LPVOID,LPDWORD,SHREGENUM_FLAGS);
153 LONG WINAPI SHRegEnumUSValueW(HUSKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,
154 LPVOID,LPDWORD,SHREGENUM_FLAGS);
155 #define SHRegEnumUSValue WINELIB_NAME_AW(SHRegEnumUSValue)
157 LONG WINAPI SHRegQueryInfoUSKeyA(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
158 LPDWORD,SHREGENUM_FLAGS);
159 LONG WINAPI SHRegQueryInfoUSKeyW(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
160 LPDWORD,SHREGENUM_FLAGS);
161 #define SHRegQueryInfoUSKey WINELIB_NAME_AW(SHRegQueryInfoUSKey)
163 LONG WINAPI SHRegCloseUSKey(HUSKEY);
165 LONG WINAPI SHRegGetUSValueA(LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD,
166 BOOL,LPVOID,DWORD);
167 LONG WINAPI SHRegGetUSValueW(LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
168 BOOL,LPVOID,DWORD);
169 #define SHRegGetUSValue WINELIB_NAME_AW(SHRegGetUSValue)
171 LONG WINAPI SHRegSetUSValueA(LPCSTR,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
172 LONG WINAPI SHRegSetUSValueW(LPCWSTR,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
173 #define SHRegSetUSValue WINELIB_NAME_AW(SHRegSetUSValue)
175 BOOL WINAPI SHRegGetBoolUSValueA(LPCSTR,LPCSTR,BOOL,BOOL);
176 BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR,LPCWSTR,BOOL,BOOL);
177 #define SHRegGetBoolUSValue WINELIB_NAME_AW(SHRegGetBoolUSValue)
179 int WINAPI SHRegGetIntW(HKEY,LPCWSTR,int);
181 /* IQueryAssociation and helpers */
182 enum
184 ASSOCF_INIT_NOREMAPCLSID = 0x001, /* Don't map clsid->progid */
185 ASSOCF_INIT_BYEXENAME = 0x002, /* .exe name given */
186 ASSOCF_OPEN_BYEXENAME = 0x002, /* Synonym */
187 ASSOCF_INIT_DEFAULTTOSTAR = 0x004, /* Use * as base */
188 ASSOCF_INIT_DEFAULTTOFOLDER = 0x008, /* Use folder as base */
189 ASSOCF_NOUSERSETTINGS = 0x010, /* No HKCU reads */
190 ASSOCF_NOTRUNCATE = 0x020, /* Don't truncate return */
191 ASSOCF_VERIFY = 0x040, /* Verify data */
192 ASSOCF_REMAPRUNDLL = 0x080, /* Get rundll args */
193 ASSOCF_NOFIXUPS = 0x100, /* Don't fixup errors */
194 ASSOCF_IGNOREBASECLASS = 0x200, /* Don't read baseclass */
197 typedef DWORD ASSOCF;
199 typedef enum
201 ASSOCSTR_COMMAND = 1, /* Verb command */
202 ASSOCSTR_EXECUTABLE, /* .exe from command string */
203 ASSOCSTR_FRIENDLYDOCNAME, /* Friendly doc type name */
204 ASSOCSTR_FRIENDLYAPPNAME, /* Friendly .exe name */
205 ASSOCSTR_NOOPEN, /* noopen value */
206 ASSOCSTR_SHELLNEWVALUE, /* Use shellnew key */
207 ASSOCSTR_DDECOMMAND, /* DDE command template */
208 ASSOCSTR_DDEIFEXEC, /* DDE command for process create */
209 ASSOCSTR_DDEAPPLICATION, /* DDE app name */
210 ASSOCSTR_DDETOPIC, /* DDE topic */
211 ASSOCSTR_INFOTIP, /* Infotip */
212 ASSOCSTR_QUICKTIP, /* Quick infotip */
213 ASSOCSTR_TILEINFO, /* Properties for tileview */
214 ASSOCSTR_CONTENTTYPE, /* Mimetype */
215 ASSOCSTR_DEFAULTICON, /* Icon */
216 ASSOCSTR_SHELLEXTENSION, /* GUID for shell extension handler */
217 ASSOCSTR_MAX
218 } ASSOCSTR;
220 typedef enum
222 ASSOCKEY_SHELLEXECCLASS = 1, /* Key for ShellExec */
223 ASSOCKEY_APP, /* Application */
224 ASSOCKEY_CLASS, /* Progid or class */
225 ASSOCKEY_BASECLASS, /* Base class */
226 ASSOCKEY_MAX
227 } ASSOCKEY;
229 typedef enum
231 ASSOCDATA_MSIDESCRIPTOR = 1, /* Component descriptor */
232 ASSOCDATA_NOACTIVATEHANDLER, /* Don't activate */
233 ASSOCDATA_QUERYCLASSSTORE, /* Look in Class Store */
234 ASSOCDATA_HASPERUSERASSOC, /* Use user association */
235 ASSOCDATA_EDITFLAGS, /* Edit flags */
236 ASSOCDATA_VALUE, /* pszExtra is value */
237 ASSOCDATA_MAX
238 } ASSOCDATA;
240 typedef enum
242 ASSOCENUM_NONE
243 } ASSOCENUM;
245 typedef struct IQueryAssociations IQueryAssociations,*LPQUERYASSOCIATIONS;
247 #define INTERFACE IQueryAssociations
248 #define IQueryAssociations_METHODS \
249 IUnknown_METHODS \
250 STDMETHOD(Init)(THIS_ ASSOCF flags, LPCWSTR pszAssoc, HKEY hkProgid, HWND hwnd) PURE; \
251 STDMETHOD(GetString)(THIS_ ASSOCF flags, ASSOCSTR str, LPCWSTR pszExtra, LPWSTR pszOut, DWORD * pcchOut) PURE; \
252 STDMETHOD(GetKey)(THIS_ ASSOCF flags, ASSOCKEY key, LPCWSTR pszExtra, HKEY * phkeyOut) PURE; \
253 STDMETHOD(GetData)(THIS_ ASSOCF flags, ASSOCDATA data, LPCWSTR pszExtra, LPVOID pvOut, DWORD * pcbOut) PURE; \
254 STDMETHOD(GetEnum)(THIS_ ASSOCF flags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID * ppvOut) PURE;
255 DECLARE_INTERFACE_(IQueryAssociations,IUnknown) { IQueryAssociations_METHODS };
256 #undef INTERFACE
258 #ifdef COBJMACROS
259 #define IQueryAssociations_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
260 #define IQueryAssociations_AddRef(p) (p)->lpVtbl->AddRef(p)
261 #define IQueryAssociations_Release(p) (p)->lpVtbl->Release(p)
262 #define IQueryAssociations_Init(p,a,b,c,d) (p)->lpVtbl->Init(p,a,b,c,d)
263 #define IQueryAssociations_GetString(p,a,b,c,d,e) (p)->lpVtbl->GetString(p,a,b,c,d,e)
264 #define IQueryAssociations_GetKey(p,a,b,c,d) (p)->lpVtbl->GetKey(p,a,b,c,d)
265 #define IQueryAssociations_GetData(p,a,b,c,d,e) (p)->lpVtbl->GetData(p,a,b,c,d,e)
266 #define IQueryAssociations_GetEnum(p,a,b,c,d,e) (p)->lpVtbl->GetEnum(p,a,b,c,d,e)
267 #endif
269 HRESULT WINAPI AssocCreate(CLSID,REFIID,LPVOID*);
271 HRESULT WINAPI AssocQueryStringA(ASSOCF,ASSOCSTR,LPCSTR,LPCSTR,LPSTR,LPDWORD);
272 HRESULT WINAPI AssocQueryStringW(ASSOCF,ASSOCSTR,LPCWSTR,LPCWSTR,LPWSTR,LPDWORD);
273 #define AssocQueryString WINELIB_NAME_AW(AssocQueryString)
275 HRESULT WINAPI AssocQueryStringByKeyA(ASSOCF,ASSOCSTR,HKEY,LPCSTR,LPSTR,LPDWORD);
276 HRESULT WINAPI AssocQueryStringByKeyW(ASSOCF,ASSOCSTR,HKEY,LPCWSTR,LPWSTR,LPDWORD);
277 #define AssocQueryStringByKey WINELIB_NAME_AW(AssocQueryStringByKey)
279 HRESULT WINAPI AssocQueryKeyA(ASSOCF,ASSOCKEY,LPCSTR,LPCSTR,PHKEY);
280 HRESULT WINAPI AssocQueryKeyW(ASSOCF,ASSOCKEY,LPCWSTR,LPCWSTR,PHKEY);
281 #define AssocQueryKey WINELIB_NAME_AW(AssocQueryKey)
283 BOOL WINAPI AssocIsDangerous(LPCWSTR);
285 #endif /* NO_SHLWAPI_REG */
288 /* Path functions */
289 #ifndef NO_SHLWAPI_PATH
291 /* GetPathCharType return flags */
292 #define GCT_INVALID 0x0
293 #define GCT_LFNCHAR 0x1
294 #define GCT_SHORTCHAR 0x2
295 #define GCT_WILD 0x4
296 #define GCT_SEPARATOR 0x8
298 LPSTR WINAPI PathAddBackslashA(LPSTR);
299 LPWSTR WINAPI PathAddBackslashW(LPWSTR);
300 #define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
302 BOOL WINAPI PathAddExtensionA(LPSTR,LPCSTR);
303 BOOL WINAPI PathAddExtensionW(LPWSTR,LPCWSTR);
304 #define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
306 BOOL WINAPI PathAppendA(LPSTR,LPCSTR);
307 BOOL WINAPI PathAppendW(LPWSTR,LPCWSTR);
308 #define PathAppend WINELIB_NAME_AW(PathAppend)
310 LPSTR WINAPI PathBuildRootA(LPSTR,int);
311 LPWSTR WINAPI PathBuildRootW(LPWSTR,int);
312 #define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
314 BOOL WINAPI PathCanonicalizeA(LPSTR,LPCSTR);
315 BOOL WINAPI PathCanonicalizeW(LPWSTR,LPCWSTR);
316 #define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
318 LPSTR WINAPI PathCombineA(LPSTR,LPCSTR,LPCSTR);
319 LPWSTR WINAPI PathCombineW(LPWSTR,LPCWSTR,LPCWSTR);
320 #define PathCombine WINELIB_NAME_AW(PathCombine)
322 BOOL WINAPI PathCompactPathA(HDC,LPSTR,UINT);
323 BOOL WINAPI PathCompactPathW(HDC,LPWSTR,UINT);
324 #define PathCompactPath WINELIB_NAME_AW(PathCompactPath)
326 BOOL WINAPI PathCompactPathExA(LPSTR,LPCSTR,UINT,DWORD);
327 BOOL WINAPI PathCompactPathExW(LPWSTR,LPCWSTR,UINT,DWORD);
328 #define PathCompactPathEx WINELIB_NAME_AW(PathCompactPathEx)
330 int WINAPI PathCommonPrefixA(LPCSTR,LPCSTR,LPSTR);
331 int WINAPI PathCommonPrefixW(LPCWSTR,LPCWSTR,LPWSTR);
332 #define PathCommonPrefix WINELIB_NAME_AW(PathCommonPrefix)
334 BOOL WINAPI PathFileExistsA(LPCSTR);
335 BOOL WINAPI PathFileExistsW(LPCWSTR);
336 #define PathFileExists WINELIB_NAME_AW(PathFileExists)
338 BOOL WINAPI PathFileExistsAndAttributesA(LPCSTR lpszPath, DWORD *dwAttr);
339 BOOL WINAPI PathFileExistsAndAttributesW(LPCWSTR lpszPath, DWORD *dwAttr);
340 #define PathFileExistsAndAttributes WINELIB_NAME_AW(PathFileExistsAndAttributes)
342 LPSTR WINAPI PathFindExtensionA(LPCSTR);
343 LPWSTR WINAPI PathFindExtensionW(LPCWSTR);
344 #define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
346 LPSTR WINAPI PathFindFileNameA(LPCSTR);
347 LPWSTR WINAPI PathFindFileNameW(LPCWSTR);
348 #define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
350 LPSTR WINAPI PathFindNextComponentA(LPCSTR);
351 LPWSTR WINAPI PathFindNextComponentW(LPCWSTR);
352 #define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
354 BOOL WINAPI PathFindOnPathA(LPSTR,LPCSTR*);
355 BOOL WINAPI PathFindOnPathW(LPWSTR,LPCWSTR*);
356 #define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
358 LPSTR WINAPI PathGetArgsA(LPCSTR);
359 LPWSTR WINAPI PathGetArgsW(LPCWSTR);
360 #define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
362 UINT WINAPI PathGetCharTypeA(UCHAR);
363 UINT WINAPI PathGetCharTypeW(WCHAR);
364 #define PathGetCharType WINELIB_NAME_AW(PathGetCharType)
366 int WINAPI PathGetDriveNumberA(LPCSTR);
367 int WINAPI PathGetDriveNumberW(LPCWSTR);
368 #define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
370 BOOL WINAPI PathIsDirectoryA(LPCSTR);
371 BOOL WINAPI PathIsDirectoryW(LPCWSTR);
372 #define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
374 BOOL WINAPI PathIsDirectoryEmptyA(LPCSTR);
375 BOOL WINAPI PathIsDirectoryEmptyW(LPCWSTR);
376 #define PathIsDirectoryEmpty WINELIB_NAME_AW(PathIsDirectoryEmpty)
378 BOOL WINAPI PathIsFileSpecA(LPCSTR);
379 BOOL WINAPI PathIsFileSpecW(LPCWSTR);
380 #define PathIsFileSpec WINELIB_NAME_AW(PathIsFileSpec);
382 BOOL WINAPI PathIsPrefixA(LPCSTR,LPCSTR);
383 BOOL WINAPI PathIsPrefixW(LPCWSTR,LPCWSTR);
384 #define PathIsPrefix WINELIB_NAME_AW(PathIsPrefix)
386 BOOL WINAPI PathIsRelativeA(LPCSTR);
387 BOOL WINAPI PathIsRelativeW(LPCWSTR);
388 #define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
390 BOOL WINAPI PathIsRootA(LPCSTR);
391 BOOL WINAPI PathIsRootW(LPCWSTR);
392 #define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
394 BOOL WINAPI PathIsSameRootA(LPCSTR,LPCSTR);
395 BOOL WINAPI PathIsSameRootW(LPCWSTR,LPCWSTR);
396 #define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
398 BOOL WINAPI PathIsUNCA(LPCSTR);
399 BOOL WINAPI PathIsUNCW(LPCWSTR);
400 #define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
402 BOOL WINAPI PathIsUNCServerA(LPCSTR);
403 BOOL WINAPI PathIsUNCServerW(LPCWSTR);
404 #define PathIsUNCServer WINELIB_NAME_AW(PathIsUNCServer)
406 BOOL WINAPI PathIsUNCServerShareA(LPCSTR);
407 BOOL WINAPI PathIsUNCServerShareW(LPCWSTR);
408 #define PathIsUNCServerShare WINELIB_NAME_AW(PathIsUNCServerShare)
410 BOOL WINAPI PathIsContentTypeA(LPCSTR,LPCSTR);
411 BOOL WINAPI PathIsContentTypeW(LPCWSTR,LPCWSTR);
412 #define PathIsContentType WINELIB_NAME_AW(PathIsContentType)
414 BOOL WINAPI PathIsURLA(LPCSTR);
415 BOOL WINAPI PathIsURLW(LPCWSTR);
416 #define PathIsURL WINELIB_NAME_AW(PathIsURL)
418 BOOL WINAPI PathMakePrettyA(LPSTR);
419 BOOL WINAPI PathMakePrettyW(LPWSTR);
420 #define PathMakePretty WINELIB_NAME_AW(PathMakePretty)
422 BOOL WINAPI PathMatchSpecA(LPCSTR,LPCSTR);
423 BOOL WINAPI PathMatchSpecW(LPCWSTR,LPCWSTR);
424 #define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
426 int WINAPI PathParseIconLocationA(LPSTR);
427 int WINAPI PathParseIconLocationW(LPWSTR);
428 #define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
430 VOID WINAPI PathQuoteSpacesA(LPSTR);
431 VOID WINAPI PathQuoteSpacesW(LPWSTR);
432 #define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
434 BOOL WINAPI PathRelativePathToA(LPSTR,LPCSTR,DWORD,LPCSTR,DWORD);
435 BOOL WINAPI PathRelativePathToW(LPWSTR,LPCWSTR,DWORD,LPCWSTR,DWORD);
436 #define PathRelativePathTo WINELIB_NAME_AW(PathRelativePathTo)
438 VOID WINAPI PathRemoveArgsA(LPSTR);
439 VOID WINAPI PathRemoveArgsW(LPWSTR);
440 #define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
442 LPSTR WINAPI PathRemoveBackslashA(LPSTR);
443 LPWSTR WINAPI PathRemoveBackslashW(LPWSTR);
444 #define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
446 VOID WINAPI PathRemoveBlanksA(LPSTR);
447 VOID WINAPI PathRemoveBlanksW(LPWSTR);
448 #define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
450 VOID WINAPI PathRemoveExtensionA(LPSTR);
451 VOID WINAPI PathRemoveExtensionW(LPWSTR);
452 #define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
454 BOOL WINAPI PathRemoveFileSpecA(LPSTR);
455 BOOL WINAPI PathRemoveFileSpecW(LPWSTR);
456 #define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
458 BOOL WINAPI PathRenameExtensionA(LPSTR,LPCSTR);
459 BOOL WINAPI PathRenameExtensionW(LPWSTR,LPCWSTR);
460 #define PathRenameExtension WINELIB_NAME_AW(PathRenameExtension)
462 BOOL WINAPI PathSearchAndQualifyA(LPCSTR,LPSTR,UINT);
463 BOOL WINAPI PathSearchAndQualifyW(LPCWSTR,LPWSTR,UINT);
464 #define PathSearchAndQualify WINELIB_NAME_AW(PathSearchAndQualify)
466 VOID WINAPI PathSetDlgItemPathA(HWND,int,LPCSTR);
467 VOID WINAPI PathSetDlgItemPathW(HWND,int,LPCWSTR);
468 #define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
470 LPSTR WINAPI PathSkipRootA(LPCSTR);
471 LPWSTR WINAPI PathSkipRootW(LPCWSTR);
472 #define PathSkipRoot WINELIB_NAME_AW(PathSkipRoot)
474 VOID WINAPI PathStripPathA(LPSTR);
475 VOID WINAPI PathStripPathW(LPWSTR);
476 #define PathStripPath WINELIB_NAME_AW(PathStripPath)
478 BOOL WINAPI PathStripToRootA(LPSTR);
479 BOOL WINAPI PathStripToRootW(LPWSTR);
480 #define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
482 VOID WINAPI PathUnquoteSpacesA(LPSTR);
483 VOID WINAPI PathUnquoteSpacesW(LPWSTR);
484 #define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
486 BOOL WINAPI PathMakeSystemFolderA(LPCSTR);
487 BOOL WINAPI PathMakeSystemFolderW(LPCWSTR);
488 #define PathMakeSystemFolder WINELIB_NAME_AW(PathMakeSystemFolder)
490 BOOL WINAPI PathUnmakeSystemFolderA(LPCSTR);
491 BOOL WINAPI PathUnmakeSystemFolderW(LPCWSTR);
492 #define PathUnmakeSystemFolder WINELIB_NAME_AW(PathUnmakeSystemFolder)
494 BOOL WINAPI PathIsSystemFolderA(LPCSTR,DWORD);
495 BOOL WINAPI PathIsSystemFolderW(LPCWSTR,DWORD);
496 #define PathIsSystemFolder WINELIB_NAME_AW(PathIsSystemFolder)
498 BOOL WINAPI PathIsNetworkPathA(LPCSTR);
499 BOOL WINAPI PathIsNetworkPathW(LPCWSTR);
500 #define PathIsNetworkPath WINELIB_NAME_AW(PathIsNetworkPath)
502 BOOL WINAPI PathIsLFNFileSpecA(LPCSTR);
503 BOOL WINAPI PathIsLFNFileSpecW(LPCWSTR);
504 #define PathIsLFNFileSpec WINELIB_NAME_AW(PathIsLFNFileSpec)
506 LPCSTR WINAPI PathFindSuffixArrayA(LPCSTR,LPCSTR *,int);
507 LPCWSTR WINAPI PathFindSuffixArrayW(LPCWSTR,LPCWSTR *,int);
508 #define PathFindSuffixArray WINELIB_NAME_AW(PathFindSuffixArray)
510 VOID WINAPI PathUndecorateA(LPSTR);
511 VOID WINAPI PathUndecorateW(LPWSTR);
512 #define PathUndecorate WINELIB_NAME_AW(PathUndecorate)
514 BOOL WINAPI PathUnExpandEnvStringsA(LPCSTR,LPSTR,UINT);
515 BOOL WINAPI PathUnExpandEnvStringsW(LPCWSTR,LPWSTR,UINT);
516 #define PathUnExpandEnvStrings WINELIB_NAME_AW(PathUnExpandEnvStrings)
518 /* Url functions */
519 typedef enum {
520 URL_SCHEME_INVALID = -1,
521 URL_SCHEME_UNKNOWN = 0,
522 URL_SCHEME_FTP,
523 URL_SCHEME_HTTP,
524 URL_SCHEME_GOPHER,
525 URL_SCHEME_MAILTO,
526 URL_SCHEME_NEWS,
527 URL_SCHEME_NNTP,
528 URL_SCHEME_TELNET,
529 URL_SCHEME_WAIS,
530 URL_SCHEME_FILE,
531 URL_SCHEME_MK,
532 URL_SCHEME_HTTPS,
533 URL_SCHEME_SHELL,
534 URL_SCHEME_SNEWS,
535 URL_SCHEME_LOCAL,
536 URL_SCHEME_JAVASCRIPT,
537 URL_SCHEME_VBSCRIPT,
538 URL_SCHEME_ABOUT,
539 URL_SCHEME_RES,
540 URL_SCHEME_MSSHELLROOTED,
541 URL_SCHEME_MSSHELLIDLIST,
542 URL_SCHEME_MSHELP,
543 URL_SCHEME_MAXVALUE
544 } URL_SCHEME;
546 /* These are used by UrlGetPart routine */
547 typedef enum {
548 URL_PART_NONE = 0,
549 URL_PART_SCHEME = 1,
550 URL_PART_HOSTNAME,
551 URL_PART_USERNAME,
552 URL_PART_PASSWORD,
553 URL_PART_PORT,
554 URL_PART_QUERY
555 } URL_PART;
557 #define URL_PARTFLAG_KEEPSCHEME 0x00000001
559 /* These are used by the UrlIs... routines */
560 typedef enum {
561 URLIS_URL,
562 URLIS_OPAQUE,
563 URLIS_NOHISTORY,
564 URLIS_FILEURL,
565 URLIS_APPLIABLE,
566 URLIS_DIRECTORY,
567 URLIS_HASQUERY
568 } URLIS;
570 /* This is used by the UrlApplyScheme... routines */
571 #define URL_APPLY_FORCEAPPLY 0x00000008
572 #define URL_APPLY_GUESSFILE 0x00000004
573 #define URL_APPLY_GUESSSCHEME 0x00000002
574 #define URL_APPLY_DEFAULT 0x00000001
576 /* The following are used by UrlEscape..., UrlUnEscape...,
577 * UrlCanonicalize..., and UrlCombine... routines
579 #define URL_WININET_COMPATIBILITY 0x80000000
580 #define URL_PLUGGABLE_PROTOCOL 0x40000000
581 #define URL_ESCAPE_UNSAFE 0x20000000
582 #define URL_UNESCAPE 0x10000000
584 #define URL_DONT_SIMPLIFY 0x08000000
585 #define URL_NO_META URL_DONT_SIMPLIFY
586 #define URL_ESCAPE_SPACES_ONLY 0x04000000
587 #define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000
588 #define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
589 #define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO
591 #define URL_INTERNAL_PATH 0x00800000 /* Will escape #'s in paths */
592 #define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000
593 #define URL_CONVERT_IF_DOSPATH 0x00200000
594 #define URL_UNESCAPE_INPLACE 0x00100000
596 #define URL_FILE_USE_PATHURL 0x00010000
598 #define URL_ESCAPE_SEGMENT_ONLY 0x00002000
599 #define URL_ESCAPE_PERCENT 0x00001000
601 HRESULT WINAPI UrlApplySchemeA(LPCSTR,LPSTR,LPDWORD,DWORD);
602 HRESULT WINAPI UrlApplySchemeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
603 #define UrlApplyScheme WINELIB_NAME_AW(UrlApplyScheme)
605 HRESULT WINAPI UrlCanonicalizeA(LPCSTR,LPSTR,LPDWORD,DWORD);
606 HRESULT WINAPI UrlCanonicalizeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
607 #define UrlCanonicalize WINELIB_NAME_AW(UrlCanoncalize)
609 HRESULT WINAPI UrlCombineA(LPCSTR,LPCSTR,LPSTR,LPDWORD,DWORD);
610 HRESULT WINAPI UrlCombineW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,DWORD);
611 #define UrlCombine WINELIB_NAME_AW(UrlCombine)
613 INT WINAPI UrlCompareA(LPCSTR,LPCSTR,BOOL);
614 INT WINAPI UrlCompareW(LPCWSTR,LPCWSTR,BOOL);
615 #define UrlCompare WINELIB_NAME_AW(UrlCompare)
617 HRESULT WINAPI UrlEscapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
618 HRESULT WINAPI UrlEscapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
619 #define UrlEscape WINELIB_NAME_AW(UrlEscape)
621 #define UrlEscapeSpacesA(x,y,z) UrlCanonicalizeA(x, y, z, \
622 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
623 #define UrlEscapeSpacesW(x,y,z) UrlCanonicalizeW(x, y, z, \
624 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
625 #define UrlEscapeSpaces WINELIB_NAME_AW(UrlEscapeSpaces)
627 LPCSTR WINAPI UrlGetLocationA(LPCSTR);
628 LPCWSTR WINAPI UrlGetLocationW(LPCWSTR);
629 #define UrlGetLocation WINELIB_NAME_AW(UrlGetLocation)
631 HRESULT WINAPI UrlGetPartA(LPCSTR,LPSTR,LPDWORD,DWORD,DWORD);
632 HRESULT WINAPI UrlGetPartW(LPCWSTR,LPWSTR,LPDWORD,DWORD,DWORD);
633 #define UrlGetPart WINELIB_NAME_AW(UrlGetPart)
635 HRESULT WINAPI HashData(const unsigned char *,DWORD,unsigned char *lpDest,DWORD);
637 HRESULT WINAPI UrlHashA(LPCSTR,unsigned char *,DWORD);
638 HRESULT WINAPI UrlHashW(LPCWSTR,unsigned char *,DWORD);
639 #define UrlHash WINELIB_NAME_AW(UrlHash)
641 BOOL WINAPI UrlIsA(LPCSTR,URLIS);
642 BOOL WINAPI UrlIsW(LPCWSTR,URLIS);
643 #define UrlIs WINELIB_NAME_AW(UrlIs)
645 BOOL WINAPI UrlIsNoHistoryA(LPCSTR);
646 BOOL WINAPI UrlIsNoHistoryW(LPCWSTR);
647 #define UrlIsNoHistory WINELIB_NAME_AW(UrlIsNoHistory)
649 BOOL WINAPI UrlIsOpaqueA(LPCSTR);
650 BOOL WINAPI UrlIsOpaqueW(LPCWSTR);
651 #define UrlIsOpaque WINELIB_NAME_AW(UrlIsOpaque)
653 #define UrlIsFileUrlA(x) UrlIsA(x, URLIS_FILEURL)
654 #define UrlIsFileUrlW(y) UrlIsW(x, URLIS_FILEURL)
655 #define UrlIsFileUrl WINELIB_NAME_AW(UrlIsFileUrl)
657 HRESULT WINAPI UrlUnescapeA(LPSTR,LPSTR,LPDWORD,DWORD);
658 HRESULT WINAPI UrlUnescapeW(LPWSTR,LPWSTR,LPDWORD,DWORD);
659 #define UrlUnescape WINELIB_AW_NAME(UrlUnescape)
661 #define UrlUnescapeInPlaceA(x,y) UrlUnescapeA(x, NULL, NULL, \
662 y | URL_UNESCAPE_INPLACE)
663 #define UrlUnescapeInPlaceW(x,y) UrlUnescapeW(x, NULL, NULL, \
664 y | URL_UNESCAPE_INPLACE)
665 #define UrlUnescapeInPlace WINELIB_AW_NAME(UrlUnescapeInPlace)
667 HRESULT WINAPI UrlCreateFromPathA(LPCSTR,LPSTR,LPDWORD,DWORD);
668 HRESULT WINAPI UrlCreateFromPathW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
669 #define UrlCreateFromPath WINELIB_AW_NAME(UrlCreateFromPath)
671 #endif /* NO_SHLWAPI_PATH */
674 /* String functions */
675 #ifndef NO_SHLWAPI_STRFCNS
677 /* StrToIntEx flags */
678 #define STIF_DEFAULT 0x0L
679 #define STIF_SUPPORT_HEX 0x1L
681 BOOL WINAPI ChrCmpIA (WORD,WORD);
682 BOOL WINAPI ChrCmpIW (WCHAR,WCHAR);
683 #define ChrCmpI WINELIB_NAME_AW(ChrCmpI)
685 INT WINAPI StrCSpnA(LPCSTR,LPCSTR);
686 INT WINAPI StrCSpnW(LPCWSTR,LPCWSTR);
687 #define StrCSpn WINELIB_NAME_AW(StrCSpn)
689 INT WINAPI StrCSpnIA(LPCSTR,LPCSTR);
690 INT WINAPI StrCSpnIW(LPCWSTR,LPCWSTR);
691 #define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
693 #define StrCatA lstrcatA
694 LPWSTR WINAPI StrCatW(LPWSTR,LPCWSTR);
695 #define StrCat WINELIB_NAME_AW(StrCat)
697 LPSTR WINAPI StrCatBuffA(LPSTR,LPCSTR,INT);
698 LPWSTR WINAPI StrCatBuffW(LPWSTR,LPCWSTR,INT);
699 #define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
701 DWORD WINAPI StrCatChainW(LPWSTR,DWORD,DWORD,LPCWSTR);
703 LPSTR WINAPI StrChrA(LPCSTR,WORD);
704 LPWSTR WINAPI StrChrW(LPCWSTR,WCHAR);
705 #define StrChr WINELIB_NAME_AW(StrChr)
707 LPSTR WINAPI StrChrIA(LPCSTR,WORD);
708 LPWSTR WINAPI StrChrIW(LPCWSTR,WCHAR);
709 #define StrChrI WINELIB_NAME_AW(StrChrI)
711 #define StrCmpA lstrcmpA
712 int WINAPI StrCmpW(LPCWSTR,LPCWSTR);
713 #define StrCmp WINELIB_NAME_AW(StrCmp)
715 #define StrCmpIA lstrcmpiA
716 int WINAPI StrCmpIW(LPCWSTR,LPCWSTR);
717 #define StrCmpI WINELIB_NAME_AW(StrCmpI)
719 #define StrCpyA lstrcpyA
720 LPWSTR WINAPI StrCpyW(LPWSTR,LPCWSTR);
721 #define StrCpy WINELIB_NAME_AW(StrCpy)
723 #define StrCpyNA lstrcpynA
724 LPWSTR WINAPI StrCpyNW(LPWSTR,LPCWSTR,int);
725 #define StrCpyN WINELIB_NAME_AW(StrCpyN)
726 #define StrNCpy WINELIB_NAME_AW(StrCpyN)
728 INT WINAPI StrCmpLogicalW(LPCWSTR,LPCWSTR);
730 INT WINAPI StrCmpNA(LPCSTR,LPCSTR,INT);
731 INT WINAPI StrCmpNW(LPCWSTR,LPCWSTR,INT);
732 #define StrCmpN WINELIB_NAME_AW(StrCmpN)
733 #define StrNCmp WINELIB_NAME_AW(StrCmpN)
735 INT WINAPI StrCmpNIA(LPCSTR,LPCSTR,INT);
736 INT WINAPI StrCmpNIW(LPCWSTR,LPCWSTR,INT);
737 #define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
738 #define StrNCmpI WINELIB_NAME_AW(StrCmpNI)
740 LPSTR WINAPI StrDupA(LPCSTR);
741 LPWSTR WINAPI StrDupW(LPCWSTR);
742 #define StrDup WINELIB_NAME_AW(StrDup)
744 HRESULT WINAPI SHStrDupA(LPCSTR,WCHAR**);
745 HRESULT WINAPI SHStrDupW(LPCWSTR,WCHAR**);
746 #define SHStrDup WINELIB_NAME_AW(SHStrDup)
748 LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
750 /* A/W Pairing is broken for this function */
751 LPSTR WINAPI StrFormatByteSize64A (LONGLONG,LPSTR,UINT);
752 LPWSTR WINAPI StrFormatByteSizeW (LONGLONG,LPWSTR,UINT);
753 #ifndef __WINESRC__
754 #ifdef UNICODE
755 #define StrFormatByteSize StrFormatByteSizeW
756 #else
757 #define StrFormatByteSize StrFormatByteSize64A
758 #endif
759 #endif
761 LPSTR WINAPI StrFormatKBSizeA(LONGLONG,LPSTR,UINT);
762 LPWSTR WINAPI StrFormatKBSizeW(LONGLONG,LPWSTR,UINT);
763 #define StrFormatKBSize WINELIB_NAME_AW(StrFormatKBSize)
765 int WINAPI StrFromTimeIntervalA(LPSTR,UINT,DWORD,int);
766 int WINAPI StrFromTimeIntervalW(LPWSTR,UINT,DWORD,int);
767 #define StrFromTimeInterval WINELIB_NAME_AW(StrFromTimeInterval)
769 BOOL WINAPI StrIsIntlEqualA(BOOL,LPCSTR,LPCSTR,int);
770 BOOL WINAPI StrIsIntlEqualW(BOOL,LPCWSTR,LPCWSTR,int);
771 #define StrIsIntlEqual WINELIB_NAME_AW(StrIsIntlEqual)
773 #define StrIntlEqNA(a,b,c) StrIsIntlEqualA(TRUE,a,b,c)
774 #define StrIntlEqNW(a,b,c) StrIsIntlEqualW(TRUE,a,b,c)
776 #define StrIntlEqNIA(a,b,c) StrIsIntlEqualA(FALSE,a,b,c)
777 #define StrIntlEqNIW(a,b,c) StrIsIntlEqualW(FALSE,a,b,c)
779 LPSTR WINAPI StrNCatA(LPSTR,LPCSTR,int);
780 LPWSTR WINAPI StrNCatW(LPWSTR,LPCWSTR,int);
781 #define StrNCat WINELIB_NAME_AW(StrNCat)
782 #define StrCatN WINELIB_NAME_AW(StrNCat)
784 LPSTR WINAPI StrPBrkA(LPCSTR,LPCSTR);
785 LPWSTR WINAPI StrPBrkW(LPCWSTR,LPCWSTR);
786 #define StrPBrk WINELIB_NAME_AW(StrPBrk)
788 LPSTR WINAPI StrRChrA(LPCSTR,LPCSTR,WORD);
789 LPWSTR WINAPI StrRChrW(LPCWSTR,LPCWSTR,WORD);
790 #define StrRChr WINELIB_NAME_AW(StrRChr)
792 LPSTR WINAPI StrRChrIA(LPCSTR,LPCSTR,WORD);
793 LPWSTR WINAPI StrRChrIW(LPCWSTR,LPCWSTR,WORD);
794 #define StrRChrI WINELIB_NAME_AW(StrRChrI)
796 LPSTR WINAPI StrRStrIA(LPCSTR,LPCSTR,LPCSTR);
797 LPWSTR WINAPI StrRStrIW(LPCWSTR,LPCWSTR,LPCWSTR);
798 #define StrRStrI WINELIB_NAME_AW(StrRStrI)
800 int WINAPI StrSpnA(LPCSTR,LPCSTR);
801 int WINAPI StrSpnW(LPCWSTR,LPCWSTR);
802 #define StrSpn WINELIB_NAME_AW(StrSpn)
804 LPSTR WINAPI StrStrA(LPCSTR,LPCSTR);
805 LPWSTR WINAPI StrStrW(LPCWSTR,LPCWSTR);
806 #define StrStr WINELIB_NAME_AW(StrStr)
808 LPSTR WINAPI StrStrIA(LPCSTR,LPCSTR);
809 LPWSTR WINAPI StrStrIW(LPCWSTR,LPCWSTR);
810 #define StrStrI WINELIB_NAME_AW(StrStrI)
812 int WINAPI StrToIntA(LPCSTR);
813 int WINAPI StrToIntW(LPCWSTR);
814 #define StrToInt WINELIB_NAME_AW(StrToInt)
815 #define StrToLong WINELIB_NAME_AW(StrToInt)
817 BOOL WINAPI StrToIntExA(LPCSTR,DWORD,int*);
818 BOOL WINAPI StrToIntExW(LPCWSTR,DWORD,int*);
819 #define StrToIntEx WINELIB_NAME_AW(StrToIntEx)
821 BOOL WINAPI StrToInt64ExA(LPCSTR,DWORD,LONGLONG*);
822 BOOL WINAPI StrToInt64ExW(LPCWSTR,DWORD,LONGLONG*);
823 #define StrToIntEx64 WINELIB_NAME_AW(StrToIntEx64)
825 BOOL WINAPI StrTrimA(LPSTR,LPCSTR);
826 BOOL WINAPI StrTrimW(LPWSTR,LPCWSTR);
827 #define StrTrim WINELIB_NAME_AW(StrTrim)
829 INT WINAPI wvnsprintfA(LPSTR,INT,LPCSTR,va_list);
830 INT WINAPI wvnsprintfW(LPWSTR,INT,LPCWSTR,va_list);
831 #define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
833 INT WINAPIV wnsprintfA(LPSTR,INT,LPCSTR, ...);
834 INT WINAPIV wnsprintfW(LPWSTR,INT,LPCWSTR, ...);
835 #define wnsprintf WINELIB_NAME_AW(wnsprintf)
837 HRESULT WINAPI SHLoadIndirectString(LPCWSTR,LPWSTR,UINT,PVOID*);
839 BOOL WINAPI IntlStrEqWorkerA(BOOL,LPCSTR,LPCSTR,int);
840 BOOL WINAPI IntlStrEqWorkerW(BOOL,LPCWSTR,LPCWSTR,int);
841 #define IntlStrEqWorker WINELIB_NAME_AW(IntlStrEqWorker)
843 #define IntlStrEqNA(s1,s2,n) IntlStrEqWorkerA(TRUE,s1,s2,n)
844 #define IntlStrEqNW(s1,s2,n) IntlStrEqWorkerW(TRUE,s1,s2,n)
845 #define IntlStrEqN WINELIB_NAME_AW(IntlStrEqN)
847 #define IntlStrEqNIA(s1,s2,n) IntlStrEqWorkerA(FALSE,s1,s2,n)
848 #define IntlStrEqNIW(s1,s2,n) IntlStrEqWorkerW(FALSE,s1,s2,n)
849 #define IntlStrEqNI WINELIB_NAME_AW(IntlStrEqNI)
851 HRESULT WINAPI StrRetToStrA(STRRET*,LPCITEMIDLIST,LPSTR*);
852 HRESULT WINAPI StrRetToStrW(STRRET*,LPCITEMIDLIST,LPWSTR*);
853 #define StrRetToStr WINELIB_NAME_AW(StrRetToStr)
855 HRESULT WINAPI StrRetToBufA(STRRET*,LPCITEMIDLIST,LPSTR,UINT);
856 HRESULT WINAPI StrRetToBufW(STRRET*,LPCITEMIDLIST,LPWSTR,UINT);
857 #define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
859 HRESULT WINAPI StrRetToBSTR(STRRET*,LPCITEMIDLIST,BSTR*);
861 #endif /* NO_SHLWAPI_STRFCNS */
864 /* GDI functions */
865 #ifndef NO_SHLWAPI_GDI
867 HPALETTE WINAPI SHCreateShellPalette(HDC);
869 COLORREF WINAPI ColorHLSToRGB(WORD,WORD,WORD);
871 COLORREF WINAPI ColorAdjustLuma(COLORREF,int,BOOL);
873 VOID WINAPI ColorRGBToHLS(COLORREF,LPWORD,LPWORD,LPWORD);
875 #endif /* NO_SHLWAPI_GDI */
878 /* Stream functions */
879 #if !defined(NO_SHLWAPI_STREAM) && defined(IStream_METHODS)
881 IStream * WINAPI SHOpenRegStreamA(HKEY,LPCSTR,LPCSTR,DWORD);
882 IStream * WINAPI SHOpenRegStreamW(HKEY,LPCWSTR,LPCWSTR,DWORD);
883 #define SHOpenRegStream WINELIB_NAME_AW(SHOpenRegStream2) /* Uses version 2 */
885 IStream * WINAPI SHOpenRegStream2A(HKEY,LPCSTR,LPCSTR,DWORD);
886 IStream * WINAPI SHOpenRegStream2W(HKEY,LPCWSTR,LPCWSTR,DWORD);
887 #define SHOpenRegStream2 WINELIB_NAME_AW(SHOpenRegStream2)
889 HRESULT WINAPI SHCreateStreamOnFileA(LPCSTR,DWORD,IStream**);
890 HRESULT WINAPI SHCreateStreamOnFileW(LPCWSTR,DWORD,IStream**);
891 #define SHCreateStreamOnFile WINELIB_NAME_AW(SHCreateStreamOnFile)
893 HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR,DWORD,DWORD,BOOL,IStream*,IStream**);
895 HRESULT WINAPI SHCreateStreamWrapper(LPBYTE,DWORD,DWORD,IStream**);
897 #endif /* NO_SHLWAPI_STREAM */
899 /* SHAutoComplete flags */
900 #define SHACF_DEFAULT 0x00000000
901 #define SHACF_FILESYSTEM 0x00000001
902 #define SHACF_URLHISTORY 0x00000002
903 #define SHACF_URLMRU 0x00000004
904 #define SHACF_URLALL (SHACF_URLHISTORY|SHACF_URLMRU)
905 #define SHACF_USETAB 0x00000008
906 #define SHACF_FILESYS_ONLY 0x00000010
907 #define SHACF_FILESYS_DIRS 0x00000020
908 #define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000
909 #define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000
910 #define SHACF_AUTOAPPEND_FORCE_ON 0x40000000
911 #define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000
913 HRESULT WINAPI SHAutoComplete(HWND,DWORD);
915 /* Threads */
916 #if defined(IUnknown_METHODS)
917 HRESULT WINAPI SHGetThreadRef(IUnknown**);
918 HRESULT WINAPI SHSetThreadRef(IUnknown*);
919 #endif
920 HRESULT WINAPI SHReleaseThreadRef();
922 /* SHCreateThread flags */
923 #define CTF_INSIST 0x01 /* Always call */
924 #define CTF_THREAD_REF 0x02 /* Hold thread ref */
925 #define CTF_PROCESS_REF 0x04 /* Hold process ref */
926 #define CTF_COINIT 0x08 /* Startup COM first */
927 #define CTF_FREELIBANDEXIT 0x10 /* Hold DLL ref */
928 #define CTF_REF_COUNTED 0x20 /* Thread is ref counted */
929 #define CTF_WAIT_ALLOWCOM 0x40 /* Allow marshalling */
931 BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE,void*,DWORD,LPTHREAD_START_ROUTINE);
933 #if defined(IBindCtx_METHODS)
934 BOOL WINAPI SHSkipJunction(IBindCtx*,const CLSID*);
935 #endif
937 /* Version Information */
939 typedef struct _DllVersionInfo {
940 DWORD cbSize;
941 DWORD dwMajorVersion;
942 DWORD dwMinorVersion;
943 DWORD dwBuildNumber;
944 DWORD dwPlatformID;
945 } DLLVERSIONINFO;
947 #define DLLVER_PLATFORM_WINDOWS 0x01 /* Win9x */
948 #define DLLVER_PLATFORM_NT 0x02 /* WinNT */
950 typedef HRESULT (CALLBACK *DLLGETVERSIONPROC)(DLLVERSIONINFO *);
952 typedef struct _DLLVERSIONINFO2 {
953 DLLVERSIONINFO info1;
954 DWORD dwFlags; /* Reserved */
955 ULONGLONG DECLSPEC_ALIGN(8) ullVersion; /* 16 bits each for Major, Minor, Build, QFE */
956 } DLLVERSIONINFO2;
958 #define DLLVER_MAJOR_MASK 0xFFFF000000000000
959 #define DLLVER_MINOR_MASK 0x0000FFFF00000000
960 #define DLLVER_BUILD_MASK 0x00000000FFFF0000
961 #define DLLVER_QFE_MASK 0x000000000000FFFF
963 #define MAKEDLLVERULL(mjr, mnr, bld, qfe) (((ULONGLONG)(mjr)<< 48)| \
964 ((ULONGLONG)(mnr)<< 32) | ((ULONGLONG)(bld)<< 16) | (ULONGLONG)(qfe))
966 HRESULT WINAPI DllInstall(BOOL,LPCWSTR);
969 /* IsOS definitions */
971 #define OS_WIN32SORGREATER 0x00
972 #define OS_NT 0x01
973 #define OS_WIN95ORGREATER 0x02
974 #define OS_NT4ORGREATER 0x03
975 #define OS_WIN2000ORGREATER_ALT 0x04
976 #define OS_WIN98ORGREATER 0x05
977 #define OS_WIN98_GOLD 0x06
978 #define OS_WIN2000ORGREATER 0x07
979 #define OS_WIN2000PRO 0x08
980 #define OS_WIN2000SERVER 0x09
981 #define OS_WIN2000ADVSERVER 0x0A
982 #define OS_WIN2000DATACENTER 0x0B
983 #define OS_WIN2000TERMINAL 0x0C
984 #define OS_EMBEDDED 0x0D
985 #define OS_TERMINALCLIENT 0x0E
986 #define OS_TERMINALREMOTEADMIN 0x0F
987 #define OS_WIN95_GOLD 0x10
988 #define OS_MEORGREATER 0x11
989 #define OS_XPORGREATER 0x12
990 #define OS_HOME 0x13
991 #define OS_PROFESSIONAL 0x14
992 #define OS_DATACENTER 0x15
993 #define OS_ADVSERVER 0x16
994 #define OS_SERVER 0x17
995 #define OS_TERMINALSERVER 0x18
996 #define OS_PERSONALTERMINALSERVER 0x19
997 #define OS_FASTUSERSWITCHING 0x1A
998 #define OS_WELCOMELOGONUI 0x1B
999 #define OS_DOMAINMEMBER 0x1C
1000 #define OS_ANYSERVER 0x1D
1001 #define OS_WOW6432 0x1E
1002 #define OS_WEBSERVER 0x1F
1003 #define OS_SMALLBUSINESSSERVER 0x20
1004 #define OS_TABLETPC 0x21
1005 #define OS_SERVERADMINUI 0x22
1006 #define OS_MEDIACENTER 0x23
1007 #define OS_APPLIANCE 0x24
1009 BOOL WINAPI IsOS(DWORD);
1011 #include <poppack.h>
1013 #ifdef __cplusplus
1014 } /* extern "C" */
1015 #endif /* defined(__cplusplus) */
1017 #endif /* __WINE_SHLWAPI_H */