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