dplayx: Merge the IDirectPlay4_SendEx helper.
[wine] / include / shlwapi.h
CommitLineData
603f20fc
JG
1/*
2 * SHLWAPI.DLL functions
0799c1a7
AJ
3 *
4 * Copyright (C) 2000 Juergen Schmied
5 *
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.
10 *
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.
15 *
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
360a3f91 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
603f20fc 19 */
0799c1a7 20
51c74d82
JS
21#ifndef __WINE_SHLWAPI_H
22#define __WINE_SHLWAPI_H
23
ad09fd49 24/* FIXME: #include <specstrings.h> */
53f9c21f 25#include <objbase.h>
d015d3b9 26#include <shtypes.h>
5cdda82a 27
51c74d82
JS
28#ifdef __cplusplus
29extern "C" {
30#endif /* defined(__cplusplus) */
31
96a5c442 32#include <pshpack8.h>
ced69a9c 33
603f20fc
JG
34#ifndef NO_SHLWAPI_REG
35
36/* Registry functions */
37
38DWORD WINAPI SHDeleteEmptyKeyA(HKEY,LPCSTR);
39DWORD WINAPI SHDeleteEmptyKeyW(HKEY,LPCWSTR);
40#define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
41
42DWORD WINAPI SHDeleteKeyA(HKEY,LPCSTR);
43DWORD WINAPI SHDeleteKeyW(HKEY,LPCWSTR);
44#define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
45
46DWORD WINAPI SHDeleteValueA(HKEY,LPCSTR,LPCSTR);
47DWORD WINAPI SHDeleteValueW(HKEY,LPCWSTR,LPCWSTR);
48#define SHDeleteValue WINELIB_NAME_AW(SHDeleteValue)
49
50DWORD WINAPI SHGetValueA(HKEY,LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD);
51DWORD WINAPI SHGetValueW(HKEY,LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD);
52#define SHGetValue WINELIB_NAME_AW(SHGetValue)
53
54DWORD WINAPI SHSetValueA(HKEY,LPCSTR,LPCSTR,DWORD,LPCVOID,DWORD);
55DWORD WINAPI SHSetValueW(HKEY,LPCWSTR,LPCWSTR,DWORD,LPCVOID,DWORD);
56#define SHSetValue WINELIB_NAME_AW(SHSetValue)
57
de51f615
JG
58DWORD WINAPI SHQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
59DWORD WINAPI SHQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
603f20fc
JG
60#define SHQueryValueEx WINELIB_NAME_AW(SHQueryValueEx)
61
62LONG WINAPI SHEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD);
63LONG WINAPI SHEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD);
64#define SHEnumKeyEx WINELIB_NAME_AW(SHEnumKeyEx)
65
66LONG WINAPI SHEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
67LONG WINAPI SHEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
68#define SHEnumValue WINELIB_NAME_AW(SHEnumValue)
69
70LONG WINAPI SHQueryInfoKeyA(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
71LONG WINAPI SHQueryInfoKeyW(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
72#define SHQueryInfoKey WINELIB_NAME_AW(SHQueryInfoKey)
73
74DWORD WINAPI SHRegGetPathA(HKEY,LPCSTR,LPCSTR,LPSTR,DWORD);
75DWORD WINAPI SHRegGetPathW(HKEY,LPCWSTR,LPCWSTR,LPWSTR,DWORD);
76#define SHRegGetPath WINELIB_NAME_AW(SHRegGetPath)
77
78DWORD WINAPI SHRegSetPathA(HKEY,LPCSTR,LPCSTR,LPCSTR,DWORD);
79DWORD WINAPI SHRegSetPathW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR,DWORD);
80#define SHRegSetPath WINELIB_NAME_AW(SHRegSetPath)
81
82DWORD WINAPI SHCopyKeyA(HKEY,LPCSTR,HKEY,DWORD);
83DWORD WINAPI SHCopyKeyW(HKEY,LPCWSTR,HKEY,DWORD);
84#define SHCopyKey WINELIB_NAME_AW(SHCopyKey)
85
ab9bb9c1 86HKEY WINAPI SHRegDuplicateHKey(HKEY);
603f20fc 87
dfe53522
PC
88/* SHRegGetValue flags */
89typedef INT SRRF;
90
91#define SRRF_RT_REG_NONE 0x1
92#define SRRF_RT_REG_SZ 0x2
93#define SRRF_RT_REG_EXPAND_SZ 0x4
94#define SRRF_RT_REG_BINARY 0x8
95#define SRRF_RT_REG_DWORD 0x10
96#define SRRF_RT_REG_MULTI_SZ 0x20
97#define SRRF_RT_REG_QWORD 0x40
98
99#define SRRF_RT_DWORD (SRRF_RT_REG_BINARY|SRRF_RT_REG_DWORD)
100#define SRRF_RT_QWORD (SRRF_RT_REG_BINARY|SRRF_RT_REG_QWORD)
101#define SRRF_RT_ANY 0xffff
102
103#define SRRF_RM_ANY 0
104#define SRRF_RM_NORMAL 0x10000
105#define SRRF_RM_SAFE 0x20000
106#define SRRF_RM_SAFENETWORK 0x40000
107
108#define SRRF_NOEXPAND 0x10000000
109#define SRRF_ZEROONFAILURE 0x20000000
110#define SRRF_NOVIRT 0x40000000
111
112LSTATUS WINAPI SHRegGetValueA(HKEY,LPCSTR,LPCSTR,SRRF,LPDWORD,LPVOID,LPDWORD);
113LSTATUS WINAPI SHRegGetValueW(HKEY,LPCWSTR,LPCWSTR,SRRF,LPDWORD,LPVOID,LPDWORD);
114#define SHRegGetValue WINELIB_NAME_AW(SHRegGetValue)
115
74c5d175
BJ
116/* Undocumented registry functions */
117
ab9bb9c1
JG
118DWORD WINAPI SHDeleteOrphanKeyA(HKEY,LPCSTR);
119DWORD WINAPI SHDeleteOrphanKeyW(HKEY,LPCWSTR);
120#define SHDeleteOrphanKey WINELIB_NAME_AW(SHDeleteOrphanKey)
603f20fc
JG
121
122
123/* User registry functions */
124
125typedef enum
126{
127 SHREGDEL_DEFAULT = 0,
128 SHREGDEL_HKCU = 0x1,
129 SHREGDEL_HKLM = 0x10,
5837e8b1 130 SHREGDEL_BOTH = SHREGDEL_HKLM | SHREGDEL_HKCU
603f20fc
JG
131} SHREGDEL_FLAGS;
132
133typedef enum
134{
135 SHREGENUM_DEFAULT = 0,
136 SHREGENUM_HKCU = 0x1,
137 SHREGENUM_HKLM = 0x10,
5837e8b1 138 SHREGENUM_BOTH = SHREGENUM_HKLM | SHREGENUM_HKCU
603f20fc
JG
139} SHREGENUM_FLAGS;
140
141#define SHREGSET_HKCU 0x1 /* Apply to HKCU if empty */
142#define SHREGSET_FORCE_HKCU 0x2 /* Always apply to HKCU */
143#define SHREGSET_HKLM 0x4 /* Apply to HKLM if empty */
144#define SHREGSET_FORCE_HKLM 0x8 /* Always apply to HKLM */
145#define SHREGSET_DEFAULT (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
146
147typedef HANDLE HUSKEY;
148typedef HUSKEY *PHUSKEY;
149
150LONG WINAPI SHRegCreateUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
151LONG WINAPI SHRegCreateUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
152#define SHRegCreateUSKey WINELIB_NAME_AW(SHRegCreateUSKey)
153
154LONG WINAPI SHRegOpenUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
155LONG WINAPI SHRegOpenUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
156#define SHRegOpenUSKey WINELIB_NAME_AW(SHRegOpenUSKey)
157
158LONG WINAPI SHRegQueryUSValueA(HUSKEY,LPCSTR,LPDWORD,LPVOID,LPDWORD,
159 BOOL,LPVOID,DWORD);
160LONG WINAPI SHRegQueryUSValueW(HUSKEY,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
161 BOOL,LPVOID,DWORD);
162#define SHRegQueryUSValue WINELIB_NAME_AW(SHRegQueryUSValue)
163
164LONG WINAPI SHRegWriteUSValueA(HUSKEY,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
165LONG WINAPI SHRegWriteUSValueW(HUSKEY,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
166#define SHRegWriteUSValue WINELIB_NAME_AW(SHRegWriteUSValue)
167
168LONG WINAPI SHRegDeleteUSValueA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
169LONG WINAPI SHRegDeleteUSValueW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
170#define SHRegDeleteUSValue WINELIB_NAME_AW(SHRegDeleteUSValue)
171
172LONG WINAPI SHRegDeleteEmptyUSKeyA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
173LONG WINAPI SHRegDeleteEmptyUSKeyW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
174#define SHRegDeleteEmptyUSKey WINELIB_NAME_AW(SHRegDeleteEmptyUSKey)
175
176LONG WINAPI SHRegEnumUSKeyA(HUSKEY,DWORD,LPSTR,LPDWORD,SHREGENUM_FLAGS);
177LONG WINAPI SHRegEnumUSKeyW(HUSKEY,DWORD,LPWSTR,LPDWORD,SHREGENUM_FLAGS);
178#define SHRegEnumUSKey WINELIB_NAME_AW(SHRegEnumUSKey)
179
180LONG WINAPI SHRegEnumUSValueA(HUSKEY,DWORD,LPSTR,LPDWORD,LPDWORD,
181 LPVOID,LPDWORD,SHREGENUM_FLAGS);
182LONG WINAPI SHRegEnumUSValueW(HUSKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,
183 LPVOID,LPDWORD,SHREGENUM_FLAGS);
184#define SHRegEnumUSValue WINELIB_NAME_AW(SHRegEnumUSValue)
185
186LONG WINAPI SHRegQueryInfoUSKeyA(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
187 LPDWORD,SHREGENUM_FLAGS);
188LONG WINAPI SHRegQueryInfoUSKeyW(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
189 LPDWORD,SHREGENUM_FLAGS);
190#define SHRegQueryInfoUSKey WINELIB_NAME_AW(SHRegQueryInfoUSKey)
191
192LONG WINAPI SHRegCloseUSKey(HUSKEY);
193
194LONG WINAPI SHRegGetUSValueA(LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD,
195 BOOL,LPVOID,DWORD);
196LONG WINAPI SHRegGetUSValueW(LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
197 BOOL,LPVOID,DWORD);
198#define SHRegGetUSValue WINELIB_NAME_AW(SHRegGetUSValue)
199
200LONG WINAPI SHRegSetUSValueA(LPCSTR,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
201LONG WINAPI SHRegSetUSValueW(LPCWSTR,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
202#define SHRegSetUSValue WINELIB_NAME_AW(SHRegSetUSValue)
203
204BOOL WINAPI SHRegGetBoolUSValueA(LPCSTR,LPCSTR,BOOL,BOOL);
205BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR,LPCWSTR,BOOL,BOOL);
206#define SHRegGetBoolUSValue WINELIB_NAME_AW(SHRegGetBoolUSValue)
207
b8a70d89
JG
208int WINAPI SHRegGetIntW(HKEY,LPCWSTR,int);
209
210/* IQueryAssociation and helpers */
211enum
212{
213 ASSOCF_INIT_NOREMAPCLSID = 0x001, /* Don't map clsid->progid */
214 ASSOCF_INIT_BYEXENAME = 0x002, /* .exe name given */
215 ASSOCF_OPEN_BYEXENAME = 0x002, /* Synonym */
216 ASSOCF_INIT_DEFAULTTOSTAR = 0x004, /* Use * as base */
217 ASSOCF_INIT_DEFAULTTOFOLDER = 0x008, /* Use folder as base */
218 ASSOCF_NOUSERSETTINGS = 0x010, /* No HKCU reads */
219 ASSOCF_NOTRUNCATE = 0x020, /* Don't truncate return */
220 ASSOCF_VERIFY = 0x040, /* Verify data */
221 ASSOCF_REMAPRUNDLL = 0x080, /* Get rundll args */
222 ASSOCF_NOFIXUPS = 0x100, /* Don't fixup errors */
640cc3f3 223 ASSOCF_IGNOREBASECLASS = 0x200, /* Don't read baseclass */
0c568c2a 224 ASSOCF_INIT_IGNOREUNKNOWN = 0x400, /* Fail for unknown progid */
b8a70d89
JG
225};
226
227typedef DWORD ASSOCF;
228
229typedef enum
230{
231 ASSOCSTR_COMMAND = 1, /* Verb command */
232 ASSOCSTR_EXECUTABLE, /* .exe from command string */
233 ASSOCSTR_FRIENDLYDOCNAME, /* Friendly doc type name */
234 ASSOCSTR_FRIENDLYAPPNAME, /* Friendly .exe name */
235 ASSOCSTR_NOOPEN, /* noopen value */
236 ASSOCSTR_SHELLNEWVALUE, /* Use shellnew key */
237 ASSOCSTR_DDECOMMAND, /* DDE command template */
238 ASSOCSTR_DDEIFEXEC, /* DDE command for process create */
239 ASSOCSTR_DDEAPPLICATION, /* DDE app name */
240 ASSOCSTR_DDETOPIC, /* DDE topic */
241 ASSOCSTR_INFOTIP, /* Infotip */
242 ASSOCSTR_QUICKTIP, /* Quick infotip */
243 ASSOCSTR_TILEINFO, /* Properties for tileview */
244 ASSOCSTR_CONTENTTYPE, /* Mimetype */
245 ASSOCSTR_DEFAULTICON, /* Icon */
246 ASSOCSTR_SHELLEXTENSION, /* GUID for shell extension handler */
247 ASSOCSTR_MAX
248} ASSOCSTR;
249
250typedef enum
251{
252 ASSOCKEY_SHELLEXECCLASS = 1, /* Key for ShellExec */
253 ASSOCKEY_APP, /* Application */
254 ASSOCKEY_CLASS, /* Progid or class */
255 ASSOCKEY_BASECLASS, /* Base class */
256 ASSOCKEY_MAX
257} ASSOCKEY;
258
259typedef enum
260{
261 ASSOCDATA_MSIDESCRIPTOR = 1, /* Component descriptor */
262 ASSOCDATA_NOACTIVATEHANDLER, /* Don't activate */
263 ASSOCDATA_QUERYCLASSSTORE, /* Look in Class Store */
264 ASSOCDATA_HASPERUSERASSOC, /* Use user association */
265 ASSOCDATA_EDITFLAGS, /* Edit flags */
266 ASSOCDATA_VALUE, /* pszExtra is value */
267 ASSOCDATA_MAX
268} ASSOCDATA;
269
270typedef enum
271{
272 ASSOCENUM_NONE
273} ASSOCENUM;
274
b8d3075d 275typedef struct IQueryAssociations *LPQUERYASSOCIATIONS;
5cdda82a 276
f00c46f0 277#define INTERFACE IQueryAssociations
5d0160ea
AJ
278DECLARE_INTERFACE_(IQueryAssociations,IUnknown)
279{
280 /*** IUnknown methods ***/
281 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
282 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
283 STDMETHOD_(ULONG,Release)(THIS) PURE;
284 /*** IQueryAssociations methods ***/
285 STDMETHOD(Init)(THIS_ ASSOCF flags, LPCWSTR pszAssoc, HKEY hkProgid, HWND hwnd) PURE;
286 STDMETHOD(GetString)(THIS_ ASSOCF flags, ASSOCSTR str, LPCWSTR pszExtra, LPWSTR pszOut, DWORD * pcchOut) PURE;
287 STDMETHOD(GetKey)(THIS_ ASSOCF flags, ASSOCKEY key, LPCWSTR pszExtra, HKEY * phkeyOut) PURE;
288 STDMETHOD(GetData)(THIS_ ASSOCF flags, ASSOCDATA data, LPCWSTR pszExtra, LPVOID pvOut, DWORD * pcbOut) PURE;
f00c46f0 289 STDMETHOD(GetEnum)(THIS_ ASSOCF flags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID * ppvOut) PURE;
5d0160ea 290};
f00c46f0 291#undef INTERFACE
5cdda82a 292
52ecbf73 293#if !defined(__cplusplus) || defined(CINTERFACE)
55379110
AJ
294#define IQueryAssociations_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
295#define IQueryAssociations_AddRef(p) (p)->lpVtbl->AddRef(p)
296#define IQueryAssociations_Release(p) (p)->lpVtbl->Release(p)
297#define IQueryAssociations_Init(p,a,b,c,d) (p)->lpVtbl->Init(p,a,b,c,d)
298#define IQueryAssociations_GetString(p,a,b,c,d,e) (p)->lpVtbl->GetString(p,a,b,c,d,e)
299#define IQueryAssociations_GetKey(p,a,b,c,d) (p)->lpVtbl->GetKey(p,a,b,c,d)
300#define IQueryAssociations_GetData(p,a,b,c,d,e) (p)->lpVtbl->GetData(p,a,b,c,d,e)
301#define IQueryAssociations_GetEnum(p,a,b,c,d,e) (p)->lpVtbl->GetEnum(p,a,b,c,d,e)
302#endif
5cdda82a 303
b8a70d89
JG
304HRESULT WINAPI AssocCreate(CLSID,REFIID,LPVOID*);
305
306HRESULT WINAPI AssocQueryStringA(ASSOCF,ASSOCSTR,LPCSTR,LPCSTR,LPSTR,LPDWORD);
307HRESULT WINAPI AssocQueryStringW(ASSOCF,ASSOCSTR,LPCWSTR,LPCWSTR,LPWSTR,LPDWORD);
308#define AssocQueryString WINELIB_NAME_AW(AssocQueryString)
309
310HRESULT WINAPI AssocQueryStringByKeyA(ASSOCF,ASSOCSTR,HKEY,LPCSTR,LPSTR,LPDWORD);
311HRESULT WINAPI AssocQueryStringByKeyW(ASSOCF,ASSOCSTR,HKEY,LPCWSTR,LPWSTR,LPDWORD);
312#define AssocQueryStringByKey WINELIB_NAME_AW(AssocQueryStringByKey)
313
314HRESULT WINAPI AssocQueryKeyA(ASSOCF,ASSOCKEY,LPCSTR,LPCSTR,PHKEY);
315HRESULT WINAPI AssocQueryKeyW(ASSOCF,ASSOCKEY,LPCWSTR,LPCWSTR,PHKEY);
316#define AssocQueryKey WINELIB_NAME_AW(AssocQueryKey)
317
d015d3b9
JG
318BOOL WINAPI AssocIsDangerous(LPCWSTR);
319
603f20fc
JG
320#endif /* NO_SHLWAPI_REG */
321
a93f54bb
DH
322void WINAPI IUnknown_Set(IUnknown **ppunk, IUnknown *punk);
323void WINAPI IUnknown_AtomicRelease(IUnknown **punk);
324HRESULT WINAPI IUnknown_GetWindow(IUnknown *punk, HWND *phwnd);
325HRESULT WINAPI IUnknown_SetSite(IUnknown *punk, IUnknown *punkSite);
326HRESULT WINAPI IUnknown_GetSite(IUnknown *punk, REFIID riid, void **ppv);
327HRESULT WINAPI IUnknown_QueryService(IUnknown *punk, REFGUID guidService, REFIID riid, void **ppvOut);
603f20fc
JG
328
329/* Path functions */
330#ifndef NO_SHLWAPI_PATH
331
332/* GetPathCharType return flags */
333#define GCT_INVALID 0x0
334#define GCT_LFNCHAR 0x1
335#define GCT_SHORTCHAR 0x2
336#define GCT_WILD 0x4
337#define GCT_SEPARATOR 0x8
338
339LPSTR WINAPI PathAddBackslashA(LPSTR);
340LPWSTR WINAPI PathAddBackslashW(LPWSTR);
341#define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
342
343BOOL WINAPI PathAddExtensionA(LPSTR,LPCSTR);
344BOOL WINAPI PathAddExtensionW(LPWSTR,LPCWSTR);
345#define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
346
347BOOL WINAPI PathAppendA(LPSTR,LPCSTR);
348BOOL WINAPI PathAppendW(LPWSTR,LPCWSTR);
349#define PathAppend WINELIB_NAME_AW(PathAppend)
350
351LPSTR WINAPI PathBuildRootA(LPSTR,int);
352LPWSTR WINAPI PathBuildRootW(LPWSTR,int);
353#define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
354
355BOOL WINAPI PathCanonicalizeA(LPSTR,LPCSTR);
356BOOL WINAPI PathCanonicalizeW(LPWSTR,LPCWSTR);
357#define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
358
359LPSTR WINAPI PathCombineA(LPSTR,LPCSTR,LPCSTR);
360LPWSTR WINAPI PathCombineW(LPWSTR,LPCWSTR,LPCWSTR);
361#define PathCombine WINELIB_NAME_AW(PathCombine)
f6c7222f 362
603f20fc
JG
363BOOL WINAPI PathCompactPathA(HDC,LPSTR,UINT);
364BOOL WINAPI PathCompactPathW(HDC,LPWSTR,UINT);
365#define PathCompactPath WINELIB_NAME_AW(PathCompactPath)
784fd59e 366
603f20fc
JG
367BOOL WINAPI PathCompactPathExA(LPSTR,LPCSTR,UINT,DWORD);
368BOOL WINAPI PathCompactPathExW(LPWSTR,LPCWSTR,UINT,DWORD);
369#define PathCompactPathEx WINELIB_NAME_AW(PathCompactPathEx)
370
371int WINAPI PathCommonPrefixA(LPCSTR,LPCSTR,LPSTR);
372int WINAPI PathCommonPrefixW(LPCWSTR,LPCWSTR,LPWSTR);
373#define PathCommonPrefix WINELIB_NAME_AW(PathCommonPrefix)
374
58c77f61
FG
375HRESULT WINAPI PathCreateFromUrlA(LPCSTR,LPSTR,LPDWORD,DWORD);
376HRESULT WINAPI PathCreateFromUrlW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
2618bd1a 377#define PathCreateFromUrl WINELIB_NAME_AW(PathCreateFromUrl)
1685e8c6 378
58c77f61
FG
379HRESULT WINAPI PathCreateFromUrlAlloc(LPCWSTR,LPWSTR*,DWORD);
380
603f20fc
JG
381BOOL WINAPI PathFileExistsA(LPCSTR);
382BOOL WINAPI PathFileExistsW(LPCWSTR);
383#define PathFileExists WINELIB_NAME_AW(PathFileExists)
384
58c77f61
FG
385BOOL WINAPI PathFileExistsAndAttributesA(LPCSTR,DWORD*);
386BOOL WINAPI PathFileExistsAndAttributesW(LPCWSTR,DWORD*);
ed325359
RK
387#define PathFileExistsAndAttributes WINELIB_NAME_AW(PathFileExistsAndAttributes)
388
603f20fc
JG
389LPSTR WINAPI PathFindExtensionA(LPCSTR);
390LPWSTR WINAPI PathFindExtensionW(LPCWSTR);
391#define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
392
393LPSTR WINAPI PathFindFileNameA(LPCSTR);
394LPWSTR WINAPI PathFindFileNameW(LPCWSTR);
395#define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
396
397LPSTR WINAPI PathFindNextComponentA(LPCSTR);
398LPWSTR WINAPI PathFindNextComponentW(LPCWSTR);
399#define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
400
401BOOL WINAPI PathFindOnPathA(LPSTR,LPCSTR*);
402BOOL WINAPI PathFindOnPathW(LPWSTR,LPCWSTR*);
403#define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
404
405LPSTR WINAPI PathGetArgsA(LPCSTR);
406LPWSTR WINAPI PathGetArgsW(LPCWSTR);
407#define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
408
409UINT WINAPI PathGetCharTypeA(UCHAR);
410UINT WINAPI PathGetCharTypeW(WCHAR);
411#define PathGetCharType WINELIB_NAME_AW(PathGetCharType)
412
413int WINAPI PathGetDriveNumberA(LPCSTR);
414int WINAPI PathGetDriveNumberW(LPCWSTR);
415#define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
416
417BOOL WINAPI PathIsDirectoryA(LPCSTR);
418BOOL WINAPI PathIsDirectoryW(LPCWSTR);
419#define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
420
421BOOL WINAPI PathIsDirectoryEmptyA(LPCSTR);
422BOOL WINAPI PathIsDirectoryEmptyW(LPCWSTR);
423#define PathIsDirectoryEmpty WINELIB_NAME_AW(PathIsDirectoryEmpty)
424
425BOOL WINAPI PathIsFileSpecA(LPCSTR);
426BOOL WINAPI PathIsFileSpecW(LPCWSTR);
427#define PathIsFileSpec WINELIB_NAME_AW(PathIsFileSpec);
428
429BOOL WINAPI PathIsPrefixA(LPCSTR,LPCSTR);
430BOOL WINAPI PathIsPrefixW(LPCWSTR,LPCWSTR);
431#define PathIsPrefix WINELIB_NAME_AW(PathIsPrefix)
432
433BOOL WINAPI PathIsRelativeA(LPCSTR);
434BOOL WINAPI PathIsRelativeW(LPCWSTR);
435#define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
436
437BOOL WINAPI PathIsRootA(LPCSTR);
438BOOL WINAPI PathIsRootW(LPCWSTR);
439#define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
440
441BOOL WINAPI PathIsSameRootA(LPCSTR,LPCSTR);
442BOOL WINAPI PathIsSameRootW(LPCWSTR,LPCWSTR);
443#define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
444
445BOOL WINAPI PathIsUNCA(LPCSTR);
446BOOL WINAPI PathIsUNCW(LPCWSTR);
447#define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
448
449BOOL WINAPI PathIsUNCServerA(LPCSTR);
450BOOL WINAPI PathIsUNCServerW(LPCWSTR);
451#define PathIsUNCServer WINELIB_NAME_AW(PathIsUNCServer)
452
453BOOL WINAPI PathIsUNCServerShareA(LPCSTR);
454BOOL WINAPI PathIsUNCServerShareW(LPCWSTR);
455#define PathIsUNCServerShare WINELIB_NAME_AW(PathIsUNCServerShare)
456
457BOOL WINAPI PathIsContentTypeA(LPCSTR,LPCSTR);
458BOOL WINAPI PathIsContentTypeW(LPCWSTR,LPCWSTR);
459#define PathIsContentType WINELIB_NAME_AW(PathIsContentType)
460
461BOOL WINAPI PathIsURLA(LPCSTR);
462BOOL WINAPI PathIsURLW(LPCWSTR);
463#define PathIsURL WINELIB_NAME_AW(PathIsURL)
464
465BOOL WINAPI PathMakePrettyA(LPSTR);
466BOOL WINAPI PathMakePrettyW(LPWSTR);
467#define PathMakePretty WINELIB_NAME_AW(PathMakePretty)
468
469BOOL WINAPI PathMatchSpecA(LPCSTR,LPCSTR);
470BOOL WINAPI PathMatchSpecW(LPCWSTR,LPCWSTR);
471#define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
472
473int WINAPI PathParseIconLocationA(LPSTR);
474int WINAPI PathParseIconLocationW(LPWSTR);
475#define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
476
4e75d124
JG
477VOID WINAPI PathQuoteSpacesA(LPSTR);
478VOID WINAPI PathQuoteSpacesW(LPWSTR);
603f20fc
JG
479#define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
480
481BOOL WINAPI PathRelativePathToA(LPSTR,LPCSTR,DWORD,LPCSTR,DWORD);
482BOOL WINAPI PathRelativePathToW(LPWSTR,LPCWSTR,DWORD,LPCWSTR,DWORD);
483#define PathRelativePathTo WINELIB_NAME_AW(PathRelativePathTo)
484
485VOID WINAPI PathRemoveArgsA(LPSTR);
486VOID WINAPI PathRemoveArgsW(LPWSTR);
487#define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
488
489LPSTR WINAPI PathRemoveBackslashA(LPSTR);
490LPWSTR WINAPI PathRemoveBackslashW(LPWSTR);
491#define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
492
493VOID WINAPI PathRemoveBlanksA(LPSTR);
494VOID WINAPI PathRemoveBlanksW(LPWSTR);
495#define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
496
497VOID WINAPI PathRemoveExtensionA(LPSTR);
498VOID WINAPI PathRemoveExtensionW(LPWSTR);
499#define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
500
501BOOL WINAPI PathRemoveFileSpecA(LPSTR);
502BOOL WINAPI PathRemoveFileSpecW(LPWSTR);
503#define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
504
505BOOL WINAPI PathRenameExtensionA(LPSTR,LPCSTR);
506BOOL WINAPI PathRenameExtensionW(LPWSTR,LPCWSTR);
507#define PathRenameExtension WINELIB_NAME_AW(PathRenameExtension)
508
509BOOL WINAPI PathSearchAndQualifyA(LPCSTR,LPSTR,UINT);
510BOOL WINAPI PathSearchAndQualifyW(LPCWSTR,LPWSTR,UINT);
511#define PathSearchAndQualify WINELIB_NAME_AW(PathSearchAndQualify)
512
4e75d124
JG
513VOID WINAPI PathSetDlgItemPathA(HWND,int,LPCSTR);
514VOID WINAPI PathSetDlgItemPathW(HWND,int,LPCWSTR);
603f20fc
JG
515#define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
516
517LPSTR WINAPI PathSkipRootA(LPCSTR);
518LPWSTR WINAPI PathSkipRootW(LPCWSTR);
519#define PathSkipRoot WINELIB_NAME_AW(PathSkipRoot)
520
521VOID WINAPI PathStripPathA(LPSTR);
522VOID WINAPI PathStripPathW(LPWSTR);
523#define PathStripPath WINELIB_NAME_AW(PathStripPath)
524
525BOOL WINAPI PathStripToRootA(LPSTR);
526BOOL WINAPI PathStripToRootW(LPWSTR);
527#define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
528
529VOID WINAPI PathUnquoteSpacesA(LPSTR);
530VOID WINAPI PathUnquoteSpacesW(LPWSTR);
531#define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
532
533BOOL WINAPI PathMakeSystemFolderA(LPCSTR);
534BOOL WINAPI PathMakeSystemFolderW(LPCWSTR);
535#define PathMakeSystemFolder WINELIB_NAME_AW(PathMakeSystemFolder)
536
537BOOL WINAPI PathUnmakeSystemFolderA(LPCSTR);
538BOOL WINAPI PathUnmakeSystemFolderW(LPCWSTR);
539#define PathUnmakeSystemFolder WINELIB_NAME_AW(PathUnmakeSystemFolder)
540
541BOOL WINAPI PathIsSystemFolderA(LPCSTR,DWORD);
542BOOL WINAPI PathIsSystemFolderW(LPCWSTR,DWORD);
543#define PathIsSystemFolder WINELIB_NAME_AW(PathIsSystemFolder)
544
545BOOL WINAPI PathIsNetworkPathA(LPCSTR);
546BOOL WINAPI PathIsNetworkPathW(LPCWSTR);
547#define PathIsNetworkPath WINELIB_NAME_AW(PathIsNetworkPath)
548
549BOOL WINAPI PathIsLFNFileSpecA(LPCSTR);
550BOOL WINAPI PathIsLFNFileSpecW(LPCWSTR);
551#define PathIsLFNFileSpec WINELIB_NAME_AW(PathIsLFNFileSpec)
552
100e1130
GG
553LPCSTR WINAPI PathFindSuffixArrayA(LPCSTR,LPCSTR *,int);
554LPCWSTR WINAPI PathFindSuffixArrayW(LPCWSTR,LPCWSTR *,int);
603f20fc
JG
555#define PathFindSuffixArray WINELIB_NAME_AW(PathFindSuffixArray)
556
557VOID WINAPI PathUndecorateA(LPSTR);
558VOID WINAPI PathUndecorateW(LPWSTR);
559#define PathUndecorate WINELIB_NAME_AW(PathUndecorate)
560
561BOOL WINAPI PathUnExpandEnvStringsA(LPCSTR,LPSTR,UINT);
562BOOL WINAPI PathUnExpandEnvStringsW(LPCWSTR,LPWSTR,UINT);
563#define PathUnExpandEnvStrings WINELIB_NAME_AW(PathUnExpandEnvStrings)
564
565/* Url functions */
76e00d62
SE
566typedef enum {
567 URL_SCHEME_INVALID = -1,
568 URL_SCHEME_UNKNOWN = 0,
569 URL_SCHEME_FTP,
570 URL_SCHEME_HTTP,
571 URL_SCHEME_GOPHER,
572 URL_SCHEME_MAILTO,
573 URL_SCHEME_NEWS,
574 URL_SCHEME_NNTP,
575 URL_SCHEME_TELNET,
576 URL_SCHEME_WAIS,
577 URL_SCHEME_FILE,
578 URL_SCHEME_MK,
579 URL_SCHEME_HTTPS,
580 URL_SCHEME_SHELL,
581 URL_SCHEME_SNEWS,
582 URL_SCHEME_LOCAL,
583 URL_SCHEME_JAVASCRIPT,
584 URL_SCHEME_VBSCRIPT,
585 URL_SCHEME_ABOUT,
586 URL_SCHEME_RES,
587 URL_SCHEME_MSSHELLROOTED,
588 URL_SCHEME_MSSHELLIDLIST,
589 URL_SCHEME_MSHELP,
53ee717d
TM
590 URL_SCHEME_MSSHELLDEVICE,
591 URL_SCHEME_WILDCARD,
592 URL_SCHEME_SEARCH_MS,
593 URL_SCHEME_SEARCH,
594 URL_SCHEME_KNOWNFOLDER,
76e00d62
SE
595 URL_SCHEME_MAXVALUE
596} URL_SCHEME;
ad381592
GA
597
598/* These are used by UrlGetPart routine */
599typedef enum {
600 URL_PART_NONE = 0,
601 URL_PART_SCHEME = 1,
602 URL_PART_HOSTNAME,
603 URL_PART_USERNAME,
604 URL_PART_PASSWORD,
605 URL_PART_PORT,
5837e8b1 606 URL_PART_QUERY
ad381592 607} URL_PART;
603f20fc 608
ad381592
GA
609#define URL_PARTFLAG_KEEPSCHEME 0x00000001
610
611/* These are used by the UrlIs... routines */
612typedef enum {
613 URLIS_URL,
614 URLIS_OPAQUE,
615 URLIS_NOHISTORY,
616 URLIS_FILEURL,
617 URLIS_APPLIABLE,
618 URLIS_DIRECTORY,
5837e8b1 619 URLIS_HASQUERY
ad381592
GA
620} URLIS;
621
905f04a9
GA
622/* This is used by the UrlApplyScheme... routines */
623#define URL_APPLY_FORCEAPPLY 0x00000008
624#define URL_APPLY_GUESSFILE 0x00000004
625#define URL_APPLY_GUESSSCHEME 0x00000002
626#define URL_APPLY_DEFAULT 0x00000001
627
905f04a9
GA
628/* The following are used by UrlEscape..., UrlUnEscape...,
629 * UrlCanonicalize..., and UrlCombine... routines
630 */
aafec988
GA
631#define URL_WININET_COMPATIBILITY 0x80000000
632#define URL_PLUGGABLE_PROTOCOL 0x40000000
633#define URL_ESCAPE_UNSAFE 0x20000000
634#define URL_UNESCAPE 0x10000000
f6c7222f 635
aafec988
GA
636#define URL_DONT_SIMPLIFY 0x08000000
637#define URL_NO_META URL_DONT_SIMPLIFY
f6c7222f 638#define URL_ESCAPE_SPACES_ONLY 0x04000000
aafec988
GA
639#define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000
640#define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
641#define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO
f6c7222f 642
aafec988
GA
643#define URL_INTERNAL_PATH 0x00800000 /* Will escape #'s in paths */
644#define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000
645#define URL_CONVERT_IF_DOSPATH 0x00200000
646#define URL_UNESCAPE_INPLACE 0x00100000
647
648#define URL_FILE_USE_PATHURL 0x00010000
649
650#define URL_ESCAPE_SEGMENT_ONLY 0x00002000
651#define URL_ESCAPE_PERCENT 0x00001000
f6c7222f 652
603f20fc
JG
653HRESULT WINAPI UrlApplySchemeA(LPCSTR,LPSTR,LPDWORD,DWORD);
654HRESULT WINAPI UrlApplySchemeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
655#define UrlApplyScheme WINELIB_NAME_AW(UrlApplyScheme)
51c74d82 656
603f20fc
JG
657HRESULT WINAPI UrlCanonicalizeA(LPCSTR,LPSTR,LPDWORD,DWORD);
658HRESULT WINAPI UrlCanonicalizeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
f4f9b1ac 659#define UrlCanonicalize WINELIB_NAME_AW(UrlCanonicalize)
51c74d82 660
603f20fc
JG
661HRESULT WINAPI UrlCombineA(LPCSTR,LPCSTR,LPSTR,LPDWORD,DWORD);
662HRESULT WINAPI UrlCombineW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,DWORD);
663#define UrlCombine WINELIB_NAME_AW(UrlCombine)
62519abb 664
603f20fc
JG
665INT WINAPI UrlCompareA(LPCSTR,LPCSTR,BOOL);
666INT WINAPI UrlCompareW(LPCWSTR,LPCWSTR,BOOL);
667#define UrlCompare WINELIB_NAME_AW(UrlCompare)
62519abb 668
603f20fc
JG
669HRESULT WINAPI UrlEscapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
670HRESULT WINAPI UrlEscapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
671#define UrlEscape WINELIB_NAME_AW(UrlEscape)
62519abb 672
603f20fc
JG
673#define UrlEscapeSpacesA(x,y,z) UrlCanonicalizeA(x, y, z, \
674 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
675#define UrlEscapeSpacesW(x,y,z) UrlCanonicalizeW(x, y, z, \
676 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
677#define UrlEscapeSpaces WINELIB_NAME_AW(UrlEscapeSpaces)
51c74d82 678
603f20fc
JG
679LPCSTR WINAPI UrlGetLocationA(LPCSTR);
680LPCWSTR WINAPI UrlGetLocationW(LPCWSTR);
681#define UrlGetLocation WINELIB_NAME_AW(UrlGetLocation)
51c74d82 682
603f20fc
JG
683HRESULT WINAPI UrlGetPartA(LPCSTR,LPSTR,LPDWORD,DWORD,DWORD);
684HRESULT WINAPI UrlGetPartW(LPCWSTR,LPWSTR,LPDWORD,DWORD,DWORD);
685#define UrlGetPart WINELIB_NAME_AW(UrlGetPart)
62519abb 686
100e1130 687HRESULT WINAPI HashData(const unsigned char *,DWORD,unsigned char *lpDest,DWORD);
62519abb 688
100e1130
GG
689HRESULT WINAPI UrlHashA(LPCSTR,unsigned char *,DWORD);
690HRESULT WINAPI UrlHashW(LPCWSTR,unsigned char *,DWORD);
603f20fc 691#define UrlHash WINELIB_NAME_AW(UrlHash)
62519abb 692
603f20fc
JG
693BOOL WINAPI UrlIsA(LPCSTR,URLIS);
694BOOL WINAPI UrlIsW(LPCWSTR,URLIS);
695#define UrlIs WINELIB_NAME_AW(UrlIs)
62519abb 696
603f20fc
JG
697BOOL WINAPI UrlIsNoHistoryA(LPCSTR);
698BOOL WINAPI UrlIsNoHistoryW(LPCWSTR);
699#define UrlIsNoHistory WINELIB_NAME_AW(UrlIsNoHistory)
62519abb 700
603f20fc
JG
701BOOL WINAPI UrlIsOpaqueA(LPCSTR);
702BOOL WINAPI UrlIsOpaqueW(LPCWSTR);
703#define UrlIsOpaque WINELIB_NAME_AW(UrlIsOpaque)
62519abb 704
603f20fc 705#define UrlIsFileUrlA(x) UrlIsA(x, URLIS_FILEURL)
340dee86 706#define UrlIsFileUrlW(x) UrlIsW(x, URLIS_FILEURL)
603f20fc 707#define UrlIsFileUrl WINELIB_NAME_AW(UrlIsFileUrl)
62519abb 708
100e1130
GG
709HRESULT WINAPI UrlUnescapeA(LPSTR,LPSTR,LPDWORD,DWORD);
710HRESULT WINAPI UrlUnescapeW(LPWSTR,LPWSTR,LPDWORD,DWORD);
2618bd1a 711#define UrlUnescape WINELIB_NAME_AW(UrlUnescape)
62519abb 712
603f20fc
JG
713#define UrlUnescapeInPlaceA(x,y) UrlUnescapeA(x, NULL, NULL, \
714 y | URL_UNESCAPE_INPLACE)
715#define UrlUnescapeInPlaceW(x,y) UrlUnescapeW(x, NULL, NULL, \
716 y | URL_UNESCAPE_INPLACE)
2618bd1a 717#define UrlUnescapeInPlace WINELIB_NAME_AW(UrlUnescapeInPlace)
905f04a9 718
603f20fc
JG
719HRESULT WINAPI UrlCreateFromPathA(LPCSTR,LPSTR,LPDWORD,DWORD);
720HRESULT WINAPI UrlCreateFromPathW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
2618bd1a 721#define UrlCreateFromPath WINELIB_NAME_AW(UrlCreateFromPath)
62519abb 722
57cb25c0
HD
723typedef struct tagPARSEDURLA {
724 DWORD cbSize;
725 LPCSTR pszProtocol;
726 UINT cchProtocol;
727 LPCSTR pszSuffix;
728 UINT cchSuffix;
729 UINT nScheme;
730} PARSEDURLA, *PPARSEDURLA;
731
732typedef struct tagPARSEDURLW {
733 DWORD cbSize;
734 LPCWSTR pszProtocol;
735 UINT cchProtocol;
736 LPCWSTR pszSuffix;
737 UINT cchSuffix;
738 UINT nScheme;
739} PARSEDURLW, *PPARSEDURLW;
740
741HRESULT WINAPI ParseURLA(LPCSTR pszUrl, PARSEDURLA *ppu);
742HRESULT WINAPI ParseURLW(LPCWSTR pszUrl, PARSEDURLW *ppu);
2618bd1a 743#define ParseURL WINELIB_NAME_AW(ParseUrl)
57cb25c0 744
603f20fc 745#endif /* NO_SHLWAPI_PATH */
0d18aad1 746
0d18aad1 747
603f20fc
JG
748/* String functions */
749#ifndef NO_SHLWAPI_STRFCNS
62519abb 750
603f20fc 751/* StrToIntEx flags */
3e1ee5b8
MS
752#define STIF_DEFAULT __MSABI_LONG(0x0)
753#define STIF_SUPPORT_HEX __MSABI_LONG(0x1)
62519abb 754
b8a70d89
JG
755BOOL WINAPI ChrCmpIA (WORD,WORD);
756BOOL WINAPI ChrCmpIW (WCHAR,WCHAR);
905f04a9
GA
757#define ChrCmpI WINELIB_NAME_AW(ChrCmpI)
758
603f20fc
JG
759INT WINAPI StrCSpnA(LPCSTR,LPCSTR);
760INT WINAPI StrCSpnW(LPCWSTR,LPCWSTR);
52b2d2cf
HD
761#define StrCSpn WINELIB_NAME_AW(StrCSpn)
762
603f20fc
JG
763INT WINAPI StrCSpnIA(LPCSTR,LPCSTR);
764INT WINAPI StrCSpnIW(LPCWSTR,LPCWSTR);
52b2d2cf
HD
765#define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
766
767#define StrCatA lstrcatA
603f20fc 768LPWSTR WINAPI StrCatW(LPWSTR,LPCWSTR);
52b2d2cf
HD
769#define StrCat WINELIB_NAME_AW(StrCat)
770
603f20fc
JG
771LPSTR WINAPI StrCatBuffA(LPSTR,LPCSTR,INT);
772LPWSTR WINAPI StrCatBuffW(LPWSTR,LPCWSTR,INT);
52b2d2cf
HD
773#define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
774
b8a70d89
JG
775DWORD WINAPI StrCatChainW(LPWSTR,DWORD,DWORD,LPCWSTR);
776
603f20fc
JG
777LPSTR WINAPI StrChrA(LPCSTR,WORD);
778LPWSTR WINAPI StrChrW(LPCWSTR,WCHAR);
13d74c5f
JS
779#define StrChr WINELIB_NAME_AW(StrChr)
780
18176e3c 781LPSTR WINAPI StrChrIA(LPCSTR,WORD);
603f20fc 782LPWSTR WINAPI StrChrIW(LPCWSTR,WCHAR);
52b2d2cf
HD
783#define StrChrI WINELIB_NAME_AW(StrChrI)
784
603f20fc
JG
785#define StrCmpA lstrcmpA
786int WINAPI StrCmpW(LPCWSTR,LPCWSTR);
787#define StrCmp WINELIB_NAME_AW(StrCmp)
ad381592 788
603f20fc
JG
789#define StrCmpIA lstrcmpiA
790int WINAPI StrCmpIW(LPCWSTR,LPCWSTR);
791#define StrCmpI WINELIB_NAME_AW(StrCmpI)
52b2d2cf 792
603f20fc
JG
793#define StrCpyA lstrcpyA
794LPWSTR WINAPI StrCpyW(LPWSTR,LPCWSTR);
795#define StrCpy WINELIB_NAME_AW(StrCpy)
52b2d2cf 796
603f20fc
JG
797#define StrCpyNA lstrcpynA
798LPWSTR WINAPI StrCpyNW(LPWSTR,LPCWSTR,int);
799#define StrCpyN WINELIB_NAME_AW(StrCpyN)
800#define StrNCpy WINELIB_NAME_AW(StrCpyN)
ad381592 801
b8a70d89
JG
802INT WINAPI StrCmpLogicalW(LPCWSTR,LPCWSTR);
803
603f20fc
JG
804INT WINAPI StrCmpNA(LPCSTR,LPCSTR,INT);
805INT WINAPI StrCmpNW(LPCWSTR,LPCWSTR,INT);
806#define StrCmpN WINELIB_NAME_AW(StrCmpN)
807#define StrNCmp WINELIB_NAME_AW(StrCmpN)
ad381592 808
603f20fc
JG
809INT WINAPI StrCmpNIA(LPCSTR,LPCSTR,INT);
810INT WINAPI StrCmpNIW(LPCWSTR,LPCWSTR,INT);
811#define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
812#define StrNCmpI WINELIB_NAME_AW(StrCmpNI)
ad381592 813
603f20fc
JG
814LPSTR WINAPI StrDupA(LPCSTR);
815LPWSTR WINAPI StrDupW(LPCWSTR);
52b2d2cf
HD
816#define StrDup WINELIB_NAME_AW(StrDup)
817
b8a70d89
JG
818HRESULT WINAPI SHStrDupA(LPCSTR,WCHAR**);
819HRESULT WINAPI SHStrDupW(LPCWSTR,WCHAR**);
820#define SHStrDup WINELIB_NAME_AW(SHStrDup)
821
603f20fc 822LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
91ec8e14
JG
823
824/* A/W Pairing is broken for this function */
825LPSTR WINAPI StrFormatByteSize64A (LONGLONG,LPSTR,UINT);
826LPWSTR WINAPI StrFormatByteSizeW (LONGLONG,LPWSTR,UINT);
a2ba7dcf 827#ifndef WINE_NO_UNICODE_MACROS
91ec8e14
JG
828#ifdef UNICODE
829#define StrFormatByteSize StrFormatByteSizeW
830#else
831#define StrFormatByteSize StrFormatByteSize64A
832#endif
833#endif
fc049ecd
JG
834
835LPSTR WINAPI StrFormatKBSizeA(LONGLONG,LPSTR,UINT);
836LPWSTR WINAPI StrFormatKBSizeW(LONGLONG,LPWSTR,UINT);
837#define StrFormatKBSize WINELIB_NAME_AW(StrFormatKBSize)
62519abb 838
603f20fc
JG
839int WINAPI StrFromTimeIntervalA(LPSTR,UINT,DWORD,int);
840int WINAPI StrFromTimeIntervalW(LPWSTR,UINT,DWORD,int);
841#define StrFromTimeInterval WINELIB_NAME_AW(StrFromTimeInterval)
842
843BOOL WINAPI StrIsIntlEqualA(BOOL,LPCSTR,LPCSTR,int);
844BOOL WINAPI StrIsIntlEqualW(BOOL,LPCWSTR,LPCWSTR,int);
845#define StrIsIntlEqual WINELIB_NAME_AW(StrIsIntlEqual)
846
847#define StrIntlEqNA(a,b,c) StrIsIntlEqualA(TRUE,a,b,c)
848#define StrIntlEqNW(a,b,c) StrIsIntlEqualW(TRUE,a,b,c)
849
850#define StrIntlEqNIA(a,b,c) StrIsIntlEqualA(FALSE,a,b,c)
851#define StrIntlEqNIW(a,b,c) StrIsIntlEqualW(FALSE,a,b,c)
852
853LPSTR WINAPI StrNCatA(LPSTR,LPCSTR,int);
854LPWSTR WINAPI StrNCatW(LPWSTR,LPCWSTR,int);
ad381592 855#define StrNCat WINELIB_NAME_AW(StrNCat)
603f20fc 856#define StrCatN WINELIB_NAME_AW(StrNCat)
ad381592 857
603f20fc
JG
858LPSTR WINAPI StrPBrkA(LPCSTR,LPCSTR);
859LPWSTR WINAPI StrPBrkW(LPCWSTR,LPCWSTR);
860#define StrPBrk WINELIB_NAME_AW(StrPBrk)
861
862LPSTR WINAPI StrRChrA(LPCSTR,LPCSTR,WORD);
863LPWSTR WINAPI StrRChrW(LPCWSTR,LPCWSTR,WORD);
ad381592
GA
864#define StrRChr WINELIB_NAME_AW(StrRChr)
865
603f20fc
JG
866LPSTR WINAPI StrRChrIA(LPCSTR,LPCSTR,WORD);
867LPWSTR WINAPI StrRChrIW(LPCWSTR,LPCWSTR,WORD);
ad381592
GA
868#define StrRChrI WINELIB_NAME_AW(StrRChrI)
869
603f20fc
JG
870LPSTR WINAPI StrRStrIA(LPCSTR,LPCSTR,LPCSTR);
871LPWSTR WINAPI StrRStrIW(LPCWSTR,LPCWSTR,LPCWSTR);
872#define StrRStrI WINELIB_NAME_AW(StrRStrI)
873
874int WINAPI StrSpnA(LPCSTR,LPCSTR);
875int WINAPI StrSpnW(LPCWSTR,LPCWSTR);
876#define StrSpn WINELIB_NAME_AW(StrSpn)
877
878LPSTR WINAPI StrStrA(LPCSTR,LPCSTR);
879LPWSTR WINAPI StrStrW(LPCWSTR,LPCWSTR);
ad381592
GA
880#define StrStr WINELIB_NAME_AW(StrStr)
881
603f20fc
JG
882LPSTR WINAPI StrStrIA(LPCSTR,LPCSTR);
883LPWSTR WINAPI StrStrIW(LPCWSTR,LPCWSTR);
ad381592
GA
884#define StrStrI WINELIB_NAME_AW(StrStrI)
885
9bd13c93 886LPWSTR WINAPI StrStrNW(LPCWSTR,LPCWSTR,UINT);
15c6057c 887LPWSTR WINAPI StrStrNIW(LPCWSTR,LPCWSTR,UINT);
9bd13c93 888
603f20fc
JG
889int WINAPI StrToIntA(LPCSTR);
890int WINAPI StrToIntW(LPCWSTR);
ad381592 891#define StrToInt WINELIB_NAME_AW(StrToInt)
603f20fc 892#define StrToLong WINELIB_NAME_AW(StrToInt)
ad381592 893
603f20fc
JG
894BOOL WINAPI StrToIntExA(LPCSTR,DWORD,int*);
895BOOL WINAPI StrToIntExW(LPCWSTR,DWORD,int*);
ad381592
GA
896#define StrToIntEx WINELIB_NAME_AW(StrToIntEx)
897
b8a70d89
JG
898BOOL WINAPI StrToInt64ExA(LPCSTR,DWORD,LONGLONG*);
899BOOL WINAPI StrToInt64ExW(LPCWSTR,DWORD,LONGLONG*);
900#define StrToIntEx64 WINELIB_NAME_AW(StrToIntEx64)
901
603f20fc
JG
902BOOL WINAPI StrTrimA(LPSTR,LPCSTR);
903BOOL WINAPI StrTrimW(LPWSTR,LPCWSTR);
ad381592
GA
904#define StrTrim WINELIB_NAME_AW(StrTrim)
905
b9f0ee96
AJ
906INT WINAPI wvnsprintfA(LPSTR,INT,LPCSTR,__ms_va_list);
907INT WINAPI wvnsprintfW(LPWSTR,INT,LPCWSTR,__ms_va_list);
d50a5b3f
PH
908#define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
909
b8a70d89
JG
910INT WINAPIV wnsprintfA(LPSTR,INT,LPCSTR, ...);
911INT WINAPIV wnsprintfW(LPWSTR,INT,LPCWSTR, ...);
d50a5b3f 912#define wnsprintf WINELIB_NAME_AW(wnsprintf)
62519abb 913
b8a70d89
JG
914HRESULT WINAPI SHLoadIndirectString(LPCWSTR,LPWSTR,UINT,PVOID*);
915
1415a110
AJ
916BOOL WINAPI IntlStrEqWorkerA(BOOL,LPCSTR,LPCSTR,int);
917BOOL WINAPI IntlStrEqWorkerW(BOOL,LPCWSTR,LPCWSTR,int);
b8a70d89
JG
918#define IntlStrEqWorker WINELIB_NAME_AW(IntlStrEqWorker)
919
920#define IntlStrEqNA(s1,s2,n) IntlStrEqWorkerA(TRUE,s1,s2,n)
921#define IntlStrEqNW(s1,s2,n) IntlStrEqWorkerW(TRUE,s1,s2,n)
922#define IntlStrEqN WINELIB_NAME_AW(IntlStrEqN)
923
924#define IntlStrEqNIA(s1,s2,n) IntlStrEqWorkerA(FALSE,s1,s2,n)
925#define IntlStrEqNIW(s1,s2,n) IntlStrEqWorkerW(FALSE,s1,s2,n)
926#define IntlStrEqNI WINELIB_NAME_AW(IntlStrEqNI)
927
d015d3b9
JG
928HRESULT WINAPI StrRetToStrA(STRRET*,LPCITEMIDLIST,LPSTR*);
929HRESULT WINAPI StrRetToStrW(STRRET*,LPCITEMIDLIST,LPWSTR*);
b8a70d89
JG
930#define StrRetToStr WINELIB_NAME_AW(StrRetToStr)
931
d015d3b9
JG
932HRESULT WINAPI StrRetToBufA(STRRET*,LPCITEMIDLIST,LPSTR,UINT);
933HRESULT WINAPI StrRetToBufW(STRRET*,LPCITEMIDLIST,LPWSTR,UINT);
52b2d2cf
HD
934#define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
935
d015d3b9
JG
936HRESULT WINAPI StrRetToBSTR(STRRET*,LPCITEMIDLIST,BSTR*);
937
16cc2b87
NS
938BOOL WINAPI IsCharSpaceA(CHAR);
939BOOL WINAPI IsCharSpaceW(WCHAR);
940#define IsCharSpace WINELIB_NAME_AW(IsCharSpace)
941
603f20fc 942#endif /* NO_SHLWAPI_STRFCNS */
06fb2139 943
aafec988 944
603f20fc
JG
945/* GDI functions */
946#ifndef NO_SHLWAPI_GDI
905f04a9 947
603f20fc 948HPALETTE WINAPI SHCreateShellPalette(HDC);
aafec988 949
603f20fc 950COLORREF WINAPI ColorHLSToRGB(WORD,WORD,WORD);
aafec988 951
603f20fc 952COLORREF WINAPI ColorAdjustLuma(COLORREF,int,BOOL);
aafec988 953
603f20fc 954VOID WINAPI ColorRGBToHLS(COLORREF,LPWORD,LPWORD,LPWORD);
aafec988 955
603f20fc 956#endif /* NO_SHLWAPI_GDI */
06fb2139 957
b8f072e9
AE
958/* Security functions */
959BOOL WINAPI IsInternetESCEnabled(void);
06fb2139 960
603f20fc 961/* Stream functions */
5d0160ea 962#ifndef NO_SHLWAPI_STREAM
06fb2139 963
5d0160ea
AJ
964struct IStream * WINAPI SHOpenRegStreamA(HKEY,LPCSTR,LPCSTR,DWORD);
965struct IStream * WINAPI SHOpenRegStreamW(HKEY,LPCWSTR,LPCWSTR,DWORD);
b8a70d89 966#define SHOpenRegStream WINELIB_NAME_AW(SHOpenRegStream2) /* Uses version 2 */
aafec988 967
5d0160ea
AJ
968struct IStream * WINAPI SHOpenRegStream2A(HKEY,LPCSTR,LPCSTR,DWORD);
969struct IStream * WINAPI SHOpenRegStream2W(HKEY,LPCWSTR,LPCWSTR,DWORD);
603f20fc 970#define SHOpenRegStream2 WINELIB_NAME_AW(SHOpenRegStream2)
aafec988 971
5d0160ea
AJ
972HRESULT WINAPI SHCreateStreamOnFileA(LPCSTR,DWORD,struct IStream**);
973HRESULT WINAPI SHCreateStreamOnFileW(LPCWSTR,DWORD,struct IStream**);
b8a70d89
JG
974#define SHCreateStreamOnFile WINELIB_NAME_AW(SHCreateStreamOnFile)
975
5d0160ea 976HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR,DWORD,DWORD,BOOL,struct IStream*,struct IStream**);
b8a70d89 977
5d0160ea 978HRESULT WINAPI SHCreateStreamWrapper(LPBYTE,DWORD,DWORD,struct IStream**);
ab9bb9c1 979
603f20fc 980#endif /* NO_SHLWAPI_STREAM */
aafec988 981
b8a70d89
JG
982/* SHAutoComplete flags */
983#define SHACF_DEFAULT 0x00000000
984#define SHACF_FILESYSTEM 0x00000001
985#define SHACF_URLHISTORY 0x00000002
986#define SHACF_URLMRU 0x00000004
987#define SHACF_URLALL (SHACF_URLHISTORY|SHACF_URLMRU)
988#define SHACF_USETAB 0x00000008
989#define SHACF_FILESYS_ONLY 0x00000010
990#define SHACF_FILESYS_DIRS 0x00000020
991#define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000
992#define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000
993#define SHACF_AUTOAPPEND_FORCE_ON 0x40000000
994#define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000
995
996HRESULT WINAPI SHAutoComplete(HWND,DWORD);
997
998/* Threads */
bb1ca6e0 999HRESULT WINAPI SHCreateThreadRef(LONG*, IUnknown**);
b8a70d89
JG
1000HRESULT WINAPI SHGetThreadRef(IUnknown**);
1001HRESULT WINAPI SHSetThreadRef(IUnknown*);
4056d7ef 1002HRESULT WINAPI SHReleaseThreadRef(void);
b8a70d89
JG
1003
1004/* SHCreateThread flags */
ca942f16 1005#define CTF_INSIST 0x01 /* Always call */
b8a70d89
JG
1006#define CTF_THREAD_REF 0x02 /* Hold thread ref */
1007#define CTF_PROCESS_REF 0x04 /* Hold process ref */
1008#define CTF_COINIT 0x08 /* Startup COM first */
1009#define CTF_FREELIBANDEXIT 0x10 /* Hold DLL ref */
1010#define CTF_REF_COUNTED 0x20 /* Thread is ref counted */
1011#define CTF_WAIT_ALLOWCOM 0x40 /* Allow marshalling */
1012
1013BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE,void*,DWORD,LPTHREAD_START_ROUTINE);
1014
5d0160ea 1015BOOL WINAPI SHSkipJunction(struct IBindCtx*,const CLSID*);
aafec988 1016
603f20fc 1017/* Version Information */
f6c7222f 1018
8aa79fbe
FG
1019typedef struct _DllVersionInfo {
1020 DWORD cbSize;
1021 DWORD dwMajorVersion;
1022 DWORD dwMinorVersion;
1023 DWORD dwBuildNumber;
1024 DWORD dwPlatformID;
1025} DLLVERSIONINFO;
1026
603f20fc
JG
1027#define DLLVER_PLATFORM_WINDOWS 0x01 /* Win9x */
1028#define DLLVER_PLATFORM_NT 0x02 /* WinNT */
8aa79fbe 1029
f94462fb 1030typedef HRESULT (CALLBACK *DLLGETVERSIONPROC)(DLLVERSIONINFO *);
8aa79fbe 1031
5f4cdfcd
AJ
1032#ifdef __WINESRC__
1033/* shouldn't be here, but is nice for type checking */
9936feef 1034HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *) DECLSPEC_HIDDEN;
5f4cdfcd
AJ
1035#endif
1036
b8a70d89
JG
1037typedef struct _DLLVERSIONINFO2 {
1038 DLLVERSIONINFO info1;
1039 DWORD dwFlags; /* Reserved */
96a5c442 1040 ULONGLONG DECLSPEC_ALIGN(8) ullVersion; /* 16 bits each for Major, Minor, Build, QFE */
b8a70d89
JG
1041} DLLVERSIONINFO2;
1042
1043#define DLLVER_MAJOR_MASK 0xFFFF000000000000
1044#define DLLVER_MINOR_MASK 0x0000FFFF00000000
1045#define DLLVER_BUILD_MASK 0x00000000FFFF0000
1046#define DLLVER_QFE_MASK 0x000000000000FFFF
1047
1048#define MAKEDLLVERULL(mjr, mnr, bld, qfe) (((ULONGLONG)(mjr)<< 48)| \
1049 ((ULONGLONG)(mnr)<< 32) | ((ULONGLONG)(bld)<< 16) | (ULONGLONG)(qfe))
1050
9936feef 1051HRESULT WINAPI DllInstall(BOOL,LPCWSTR) DECLSPEC_HIDDEN;
b8a70d89 1052
edd49c78
JC
1053
1054/* IsOS definitions */
1055
1056#define OS_WIN32SORGREATER 0x00
1057#define OS_NT 0x01
1058#define OS_WIN95ORGREATER 0x02
1059#define OS_NT4ORGREATER 0x03
1060#define OS_WIN2000ORGREATER_ALT 0x04
1061#define OS_WIN98ORGREATER 0x05
1062#define OS_WIN98_GOLD 0x06
1063#define OS_WIN2000ORGREATER 0x07
1064#define OS_WIN2000PRO 0x08
1065#define OS_WIN2000SERVER 0x09
1066#define OS_WIN2000ADVSERVER 0x0A
1067#define OS_WIN2000DATACENTER 0x0B
1068#define OS_WIN2000TERMINAL 0x0C
1069#define OS_EMBEDDED 0x0D
1070#define OS_TERMINALCLIENT 0x0E
1071#define OS_TERMINALREMOTEADMIN 0x0F
1072#define OS_WIN95_GOLD 0x10
1073#define OS_MEORGREATER 0x11
1074#define OS_XPORGREATER 0x12
1075#define OS_HOME 0x13
1076#define OS_PROFESSIONAL 0x14
1077#define OS_DATACENTER 0x15
1078#define OS_ADVSERVER 0x16
1079#define OS_SERVER 0x17
1080#define OS_TERMINALSERVER 0x18
1081#define OS_PERSONALTERMINALSERVER 0x19
1082#define OS_FASTUSERSWITCHING 0x1A
1083#define OS_WELCOMELOGONUI 0x1B
1084#define OS_DOMAINMEMBER 0x1C
1085#define OS_ANYSERVER 0x1D
1086#define OS_WOW6432 0x1E
1087#define OS_WEBSERVER 0x1F
1088#define OS_SMALLBUSINESSSERVER 0x20
1089#define OS_TABLETPC 0x21
1090#define OS_SERVERADMINUI 0x22
1091#define OS_MEDIACENTER 0x23
1092#define OS_APPLIANCE 0x24
1093
1094BOOL WINAPI IsOS(DWORD);
1095
ddbb3179
NL
1096/* SHSetTimerQueueTimer definitions */
1097#define TPS_EXECUTEIO 0x00000001
1098#define TPS_LONGEXECTIME 0x00000008
1099
cf663d17
NS
1100/* SHFormatDateTimeA/SHFormatDateTimeW flags */
1101#define FDTF_SHORTTIME 0x00000001
1102#define FDTF_SHORTDATE 0x00000002
1103#define FDTF_DEFAULT (FDTF_SHORTDATE | FDTF_SHORTTIME)
1104#define FDTF_LONGDATE 0x00000004
1105#define FDTF_LONGTIME 0x00000008
1106#define FDTF_RELATIVE 0x00000010
1107#define FDTF_LTRDATE 0x00000100
1108#define FDTF_RTLDATE 0x00000200
1109#define FDTF_NOAUTOREADINGORDER 0x00000400
1110
1372806e
NS
1111
1112typedef struct
1113{
1114 const IID *piid;
1115 int dwOffset;
1116} QITAB, *LPQITAB;
1117
1118HRESULT WINAPI QISearch(void* base, const QITAB *pqit, REFIID riid, void **ppv);
1119
53f9c21f 1120#include <poppack.h>
ced69a9c 1121
51c74d82
JS
1122#ifdef __cplusplus
1123} /* extern "C" */
1124#endif /* defined(__cplusplus) */
1125
1126#endif /* __WINE_SHLWAPI_H */