Fixed bug that could cause SendMessage to return too early in certain
[wine] / include / 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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #ifndef __WINE_SHLWAPI_H
22 #define __WINE_SHLWAPI_H
23
24 #include "objbase.h"
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif /* defined(__cplusplus) */
29
30 #include "pshpack1.h"
31
32 #ifndef NO_SHLWAPI_REG
33
34 /* Registry functions */
35
36 DWORD WINAPI SHDeleteEmptyKeyA(HKEY,LPCSTR);
37 DWORD WINAPI SHDeleteEmptyKeyW(HKEY,LPCWSTR);
38 #define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
39
40 DWORD WINAPI SHDeleteKeyA(HKEY,LPCSTR);
41 DWORD WINAPI SHDeleteKeyW(HKEY,LPCWSTR);
42 #define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
43
44 DWORD WINAPI SHDeleteValueA(HKEY,LPCSTR,LPCSTR);
45 DWORD WINAPI SHDeleteValueW(HKEY,LPCWSTR,LPCWSTR);
46 #define SHDeleteValue WINELIB_NAME_AW(SHDeleteValue)
47
48 DWORD WINAPI SHGetValueA(HKEY,LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD);
49 DWORD WINAPI SHGetValueW(HKEY,LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD);
50 #define SHGetValue WINELIB_NAME_AW(SHGetValue)
51
52 DWORD WINAPI SHSetValueA(HKEY,LPCSTR,LPCSTR,DWORD,LPCVOID,DWORD);
53 DWORD WINAPI SHSetValueW(HKEY,LPCWSTR,LPCWSTR,DWORD,LPCVOID,DWORD);
54 #define SHSetValue WINELIB_NAME_AW(SHSetValue)
55
56 DWORD WINAPI SHQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
57 DWORD WINAPI SHQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
58 #define SHQueryValueEx WINELIB_NAME_AW(SHQueryValueEx)
59
60 LONG WINAPI SHEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD);
61 LONG WINAPI SHEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD);
62 #define SHEnumKeyEx WINELIB_NAME_AW(SHEnumKeyEx)
63
64 LONG WINAPI SHEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
65 LONG WINAPI SHEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
66 #define SHEnumValue WINELIB_NAME_AW(SHEnumValue)
67
68 LONG WINAPI SHQueryInfoKeyA(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
69 LONG WINAPI SHQueryInfoKeyW(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
70 #define SHQueryInfoKey WINELIB_NAME_AW(SHQueryInfoKey)
71
72 DWORD WINAPI SHRegGetPathA(HKEY,LPCSTR,LPCSTR,LPSTR,DWORD);
73 DWORD WINAPI SHRegGetPathW(HKEY,LPCWSTR,LPCWSTR,LPWSTR,DWORD);
74 #define SHRegGetPath WINELIB_NAME_AW(SHRegGetPath)
75
76 DWORD WINAPI SHRegSetPathA(HKEY,LPCSTR,LPCSTR,LPCSTR,DWORD);
77 DWORD WINAPI SHRegSetPathW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR,DWORD);
78 #define SHRegSetPath WINELIB_NAME_AW(SHRegSetPath)
79
80 DWORD WINAPI SHCopyKeyA(HKEY,LPCSTR,HKEY,DWORD);
81 DWORD WINAPI SHCopyKeyW(HKEY,LPCWSTR,HKEY,DWORD);
82 #define SHCopyKey WINELIB_NAME_AW(SHCopyKey)
83
84 /* Undocumented registry functions */
85
86 HKEY WINAPI  SHRegDuplicateHKey(HKEY);
87
88 DWORD WINAPI SHDeleteOrphanKeyA(HKEY,LPCSTR);
89 DWORD WINAPI SHDeleteOrphanKeyW(HKEY,LPCWSTR);
90 #define SHDeleteOrphanKey WINELIB_NAME_AW(SHDeleteOrphanKey)
91
92
93 /* User registry functions */
94
95 typedef enum
96 {
97   SHREGDEL_DEFAULT = 0,
98   SHREGDEL_HKCU    = 0x1,
99   SHREGDEL_HKLM    = 0x10,
100   SHREGDEL_BOTH    = SHREGDEL_HKLM | SHREGDEL_HKCU
101 } SHREGDEL_FLAGS;
102
103 typedef enum
104 {
105   SHREGENUM_DEFAULT = 0,
106   SHREGENUM_HKCU    = 0x1,
107   SHREGENUM_HKLM    = 0x10,
108   SHREGENUM_BOTH    = SHREGENUM_HKLM | SHREGENUM_HKCU
109 } SHREGENUM_FLAGS;
110
111 #define SHREGSET_HKCU       0x1 /* Apply to HKCU if empty */
112 #define SHREGSET_FORCE_HKCU 0x2 /* Always apply to HKCU */
113 #define SHREGSET_HKLM       0x4 /* Apply to HKLM if empty */
114 #define SHREGSET_FORCE_HKLM 0x8 /* Always apply to HKLM */
115 #define SHREGSET_DEFAULT    (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
116
117 typedef HANDLE HUSKEY;
118 typedef HUSKEY *PHUSKEY;
119
120 LONG WINAPI SHRegCreateUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
121 LONG WINAPI SHRegCreateUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
122 #define SHRegCreateUSKey WINELIB_NAME_AW(SHRegCreateUSKey)
123
124 LONG WINAPI SHRegOpenUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
125 LONG WINAPI SHRegOpenUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
126 #define SHRegOpenUSKey WINELIB_NAME_AW(SHRegOpenUSKey)
127
128 LONG WINAPI SHRegQueryUSValueA(HUSKEY,LPCSTR,LPDWORD,LPVOID,LPDWORD,
129                                BOOL,LPVOID,DWORD);
130 LONG WINAPI SHRegQueryUSValueW(HUSKEY,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
131                                BOOL,LPVOID,DWORD);
132 #define SHRegQueryUSValue WINELIB_NAME_AW(SHRegQueryUSValue)
133
134 LONG WINAPI SHRegWriteUSValueA(HUSKEY,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
135 LONG WINAPI SHRegWriteUSValueW(HUSKEY,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
136 #define SHRegWriteUSValue WINELIB_NAME_AW(SHRegWriteUSValue)
137
138 LONG WINAPI SHRegDeleteUSValueA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
139 LONG WINAPI SHRegDeleteUSValueW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
140 #define SHRegDeleteUSValue WINELIB_NAME_AW(SHRegDeleteUSValue)
141
142 LONG WINAPI SHRegDeleteEmptyUSKeyA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
143 LONG WINAPI SHRegDeleteEmptyUSKeyW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
144 #define SHRegDeleteEmptyUSKey WINELIB_NAME_AW(SHRegDeleteEmptyUSKey)
145
146 LONG WINAPI SHRegEnumUSKeyA(HUSKEY,DWORD,LPSTR,LPDWORD,SHREGENUM_FLAGS);
147 LONG WINAPI SHRegEnumUSKeyW(HUSKEY,DWORD,LPWSTR,LPDWORD,SHREGENUM_FLAGS);
148 #define SHRegEnumUSKey WINELIB_NAME_AW(SHRegEnumUSKey)
149
150 LONG WINAPI SHRegEnumUSValueA(HUSKEY,DWORD,LPSTR,LPDWORD,LPDWORD,
151                               LPVOID,LPDWORD,SHREGENUM_FLAGS);
152 LONG WINAPI SHRegEnumUSValueW(HUSKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,
153                               LPVOID,LPDWORD,SHREGENUM_FLAGS);
154 #define SHRegEnumUSValue WINELIB_NAME_AW(SHRegEnumUSValue)
155
156 LONG WINAPI SHRegQueryInfoUSKeyA(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
157                                  LPDWORD,SHREGENUM_FLAGS);
158 LONG WINAPI SHRegQueryInfoUSKeyW(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
159                                  LPDWORD,SHREGENUM_FLAGS);
160 #define SHRegQueryInfoUSKey WINELIB_NAME_AW(SHRegQueryInfoUSKey)
161
162 LONG WINAPI SHRegCloseUSKey(HUSKEY);
163
164 LONG WINAPI SHRegGetUSValueA(LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD,
165                              BOOL,LPVOID,DWORD);
166 LONG WINAPI SHRegGetUSValueW(LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
167                              BOOL,LPVOID,DWORD);
168 #define SHRegGetUSValue WINELIB_NAME_AW(SHRegGetUSValue)
169
170 LONG WINAPI SHRegSetUSValueA(LPCSTR,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
171 LONG WINAPI SHRegSetUSValueW(LPCWSTR,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
172 #define SHRegSetUSValue WINELIB_NAME_AW(SHRegSetUSValue)
173
174 BOOL WINAPI SHRegGetBoolUSValueA(LPCSTR,LPCSTR,BOOL,BOOL);
175 BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR,LPCWSTR,BOOL,BOOL);
176 #define SHRegGetBoolUSValue WINELIB_NAME_AW(SHRegGetBoolUSValue)
177
178 int WINAPI SHRegGetIntW(HKEY,LPCWSTR,int);
179
180 /* IQueryAssociation and helpers */
181 enum
182 {
183     ASSOCF_INIT_NOREMAPCLSID    = 0x001, /* Don't map clsid->progid */
184     ASSOCF_INIT_BYEXENAME       = 0x002, /* .exe name given */
185     ASSOCF_OPEN_BYEXENAME       = 0x002, /* Synonym */
186     ASSOCF_INIT_DEFAULTTOSTAR   = 0x004, /* Use * as base */
187     ASSOCF_INIT_DEFAULTTOFOLDER = 0x008, /* Use folder as base */
188     ASSOCF_NOUSERSETTINGS       = 0x010, /* No HKCU reads */
189     ASSOCF_NOTRUNCATE           = 0x020, /* Don't truncate return */
190     ASSOCF_VERIFY               = 0x040, /* Verify data */
191     ASSOCF_REMAPRUNDLL          = 0x080, /* Get rundll args */
192     ASSOCF_NOFIXUPS             = 0x100, /* Don't fixup errors */
193     ASSOCF_IGNOREBASECLASS      = 0x200, /* Dont read baseclass */
194 };
195
196 typedef DWORD ASSOCF;
197
198 typedef enum
199 {
200     ASSOCSTR_COMMAND = 1,     /* Verb command */
201     ASSOCSTR_EXECUTABLE,      /* .exe from command string */
202     ASSOCSTR_FRIENDLYDOCNAME, /* Friendly doc type name */
203     ASSOCSTR_FRIENDLYAPPNAME, /* Friendly .exe name */
204     ASSOCSTR_NOOPEN,          /* noopen value */
205     ASSOCSTR_SHELLNEWVALUE,   /* Use shellnew key */
206     ASSOCSTR_DDECOMMAND,      /* DDE command template */
207     ASSOCSTR_DDEIFEXEC,       /* DDE command for process create */
208     ASSOCSTR_DDEAPPLICATION,  /* DDE app name */
209     ASSOCSTR_DDETOPIC,        /* DDE topic */
210     ASSOCSTR_INFOTIP,         /* Infotip */
211     ASSOCSTR_QUICKTIP,        /* Quick infotip */
212     ASSOCSTR_TILEINFO,        /* Properties for tileview */
213     ASSOCSTR_CONTENTTYPE,     /* Mimetype */
214     ASSOCSTR_DEFAULTICON,     /* Icon */
215     ASSOCSTR_SHELLEXTENSION,  /* GUID for shell extension handler */
216     ASSOCSTR_MAX
217 } ASSOCSTR;
218
219 typedef enum
220 {
221     ASSOCKEY_SHELLEXECCLASS = 1, /* Key for ShellExec */
222     ASSOCKEY_APP,                /* Application */
223     ASSOCKEY_CLASS,              /* Progid or class */
224     ASSOCKEY_BASECLASS,          /* Base class */
225     ASSOCKEY_MAX
226 } ASSOCKEY;
227
228 typedef enum
229 {
230     ASSOCDATA_MSIDESCRIPTOR = 1, /* Component descriptor */
231     ASSOCDATA_NOACTIVATEHANDLER, /* Don't activate */
232     ASSOCDATA_QUERYCLASSSTORE,   /* Look in Class Store */
233     ASSOCDATA_HASPERUSERASSOC,   /* Use user association */
234     ASSOCDATA_EDITFLAGS,         /* Edit flags */
235     ASSOCDATA_VALUE,             /* pszExtra is value */
236     ASSOCDATA_MAX
237 } ASSOCDATA;
238
239 typedef enum
240 {
241     ASSOCENUM_NONE
242 } ASSOCENUM;
243
244 typedef struct IQueryAssociations IQueryAssociations,*LPQUERYASSOCIATIONS;
245
246 #define ICOM_INTERFACE IQueryAssociations
247 #define IQueryAssociations_METHODS \
248     ICOM_METHOD4 (HRESULT, Init, ASSOCF, flags, LPCWSTR, pszAssoc, HKEY, hkProgid, HWND, hwnd) \
249     ICOM_METHOD5 (HRESULT, GetString, ASSOCF, flags, ASSOCSTR, str, LPCWSTR, pszExtra, LPWSTR, pszOut, DWORD*, pcchOut) \
250     ICOM_METHOD4 (HRESULT, GetKey, ASSOCF, flags, ASSOCKEY, key, LPCWSTR, pszExtra, HKEY*, phkeyOut) \
251     ICOM_METHOD5 (HRESULT, GetData, ASSOCF, flags, ASSOCDATA, data, LPCWSTR, pszExtra, LPVOID, pvOut, DWORD*, pcbOut) \
252     ICOM_METHOD5 (HRESULT, GetEnum, ASSOCF, flags, ASSOCENUM, assocenum, LPCWSTR, pszExtra, REFIID, riid, LPVOID*, ppvOut)
253 #define IQueryAssociations_IMETHODS \
254         IUnknown_IMETHODS \
255         IQueryAssociations_METHODS
256 ICOM_DEFINE(IQueryAssociations,IUnknown)
257 #undef ICOM_INTERFACE
258
259 #define IQueryAssociations_QueryInterface(p,a,b)   ICOM_CALL2(QueryInterface,p,a,b)
260 #define IQueryAssociations_AddRef(p)               ICOM_CALL(AddRef,p)
261 #define IQueryAssociations_Release(p)              ICOM_CALL(Release,p)
262 #define IQueryAssociations_Init(p,a,b,c,d)         ICOM_CALL4(Init,p,a,b,c,d)
263 #define IQueryAssociations_GetString(p,a,b,c,d,e)  ICOM_CALL5(GetString,p,a,b,c,d,e)
264 #define IQueryAssociations_GetKey(p,a,b,c,d)       ICOM_CALL4(GetKey,p,a,b,c,d)
265 #define IQueryAssociations_GetData(p,a,b,c,d,e)    ICOM_CALL5(GetData,p,a,b,c,d,e)
266 #define IQueryAssociations_GetEnum(p,a,b,c,d,e)    ICOM_CALL5(GetEnum,p,a,b,c,d,e)
267
268 HRESULT WINAPI AssocCreate(CLSID,REFIID,LPVOID*);
269
270 HRESULT WINAPI AssocQueryStringA(ASSOCF,ASSOCSTR,LPCSTR,LPCSTR,LPSTR,LPDWORD);
271 HRESULT WINAPI AssocQueryStringW(ASSOCF,ASSOCSTR,LPCWSTR,LPCWSTR,LPWSTR,LPDWORD);
272 #define AssocQueryString WINELIB_NAME_AW(AssocQueryString)
273
274 HRESULT WINAPI AssocQueryStringByKeyA(ASSOCF,ASSOCSTR,HKEY,LPCSTR,LPSTR,LPDWORD);
275 HRESULT WINAPI AssocQueryStringByKeyW(ASSOCF,ASSOCSTR,HKEY,LPCWSTR,LPWSTR,LPDWORD);
276 #define AssocQueryStringByKey WINELIB_NAME_AW(AssocQueryStringByKey)
277
278 HRESULT WINAPI AssocQueryKeyA(ASSOCF,ASSOCKEY,LPCSTR,LPCSTR,PHKEY);
279 HRESULT WINAPI AssocQueryKeyW(ASSOCF,ASSOCKEY,LPCWSTR,LPCWSTR,PHKEY);
280 #define AssocQueryKey WINELIB_NAME_AW(AssocQueryKey)
281
282 #endif /* NO_SHLWAPI_REG */
283
284
285 /* Path functions */
286 #ifndef NO_SHLWAPI_PATH
287
288 /* GetPathCharType return flags */
289 #define GCT_INVALID     0x0
290 #define GCT_LFNCHAR     0x1
291 #define GCT_SHORTCHAR   0x2
292 #define GCT_WILD        0x4
293 #define GCT_SEPARATOR   0x8
294
295 LPSTR  WINAPI PathAddBackslashA(LPSTR);
296 LPWSTR WINAPI PathAddBackslashW(LPWSTR);
297 #define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
298
299 BOOL WINAPI PathAddExtensionA(LPSTR,LPCSTR);
300 BOOL WINAPI PathAddExtensionW(LPWSTR,LPCWSTR);
301 #define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
302
303 BOOL WINAPI PathAppendA(LPSTR,LPCSTR);
304 BOOL WINAPI PathAppendW(LPWSTR,LPCWSTR);
305 #define PathAppend WINELIB_NAME_AW(PathAppend)
306
307 LPSTR  WINAPI PathBuildRootA(LPSTR,int);
308 LPWSTR WINAPI PathBuildRootW(LPWSTR,int);
309 #define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
310
311 BOOL WINAPI PathCanonicalizeA(LPSTR,LPCSTR);
312 BOOL WINAPI PathCanonicalizeW(LPWSTR,LPCWSTR);
313 #define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
314
315 LPSTR  WINAPI PathCombineA(LPSTR,LPCSTR,LPCSTR);
316 LPWSTR WINAPI PathCombineW(LPWSTR,LPCWSTR,LPCWSTR);
317 #define PathCombine WINELIB_NAME_AW(PathCombine)
318
319 BOOL WINAPI PathCompactPathA(HDC,LPSTR,UINT);
320 BOOL WINAPI PathCompactPathW(HDC,LPWSTR,UINT);
321 #define PathCompactPath WINELIB_NAME_AW(PathCompactPath)
322
323 BOOL WINAPI PathCompactPathExA(LPSTR,LPCSTR,UINT,DWORD);
324 BOOL WINAPI PathCompactPathExW(LPWSTR,LPCWSTR,UINT,DWORD);
325 #define PathCompactPathEx WINELIB_NAME_AW(PathCompactPathEx)
326
327 int WINAPI PathCommonPrefixA(LPCSTR,LPCSTR,LPSTR);
328 int WINAPI PathCommonPrefixW(LPCWSTR,LPCWSTR,LPWSTR);
329 #define PathCommonPrefix WINELIB_NAME_AW(PathCommonPrefix)
330
331 BOOL WINAPI PathFileExistsA(LPCSTR);
332 BOOL WINAPI PathFileExistsW(LPCWSTR);
333 #define PathFileExists WINELIB_NAME_AW(PathFileExists)
334
335 LPSTR  WINAPI PathFindExtensionA(LPCSTR);
336 LPWSTR WINAPI PathFindExtensionW(LPCWSTR);
337 #define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
338
339 LPSTR  WINAPI PathFindFileNameA(LPCSTR);
340 LPWSTR WINAPI PathFindFileNameW(LPCWSTR);
341 #define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
342
343 LPSTR  WINAPI PathFindNextComponentA(LPCSTR);
344 LPWSTR WINAPI PathFindNextComponentW(LPCWSTR);
345 #define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
346
347 BOOL WINAPI PathFindOnPathA(LPSTR,LPCSTR*);
348 BOOL WINAPI PathFindOnPathW(LPWSTR,LPCWSTR*);
349 #define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
350
351 LPSTR  WINAPI PathGetArgsA(LPCSTR);
352 LPWSTR WINAPI PathGetArgsW(LPCWSTR);
353 #define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
354
355 UINT WINAPI PathGetCharTypeA(UCHAR);
356 UINT WINAPI PathGetCharTypeW(WCHAR);
357 #define PathGetCharType WINELIB_NAME_AW(PathGetCharType)
358
359 int WINAPI PathGetDriveNumberA(LPCSTR);
360 int WINAPI PathGetDriveNumberW(LPCWSTR);
361 #define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
362
363 BOOL WINAPI PathIsDirectoryA(LPCSTR);
364 BOOL WINAPI PathIsDirectoryW(LPCWSTR);
365 #define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
366
367 BOOL WINAPI PathIsDirectoryEmptyA(LPCSTR);
368 BOOL WINAPI PathIsDirectoryEmptyW(LPCWSTR);
369 #define PathIsDirectoryEmpty WINELIB_NAME_AW(PathIsDirectoryEmpty)
370
371 BOOL WINAPI PathIsFileSpecA(LPCSTR);
372 BOOL WINAPI PathIsFileSpecW(LPCWSTR);
373 #define PathIsFileSpec WINELIB_NAME_AW(PathIsFileSpec);
374
375 BOOL WINAPI PathIsPrefixA(LPCSTR,LPCSTR);
376 BOOL WINAPI PathIsPrefixW(LPCWSTR,LPCWSTR);
377 #define PathIsPrefix WINELIB_NAME_AW(PathIsPrefix)
378
379 BOOL WINAPI PathIsRelativeA(LPCSTR);
380 BOOL WINAPI PathIsRelativeW(LPCWSTR);
381 #define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
382
383 BOOL WINAPI PathIsRootA(LPCSTR);
384 BOOL WINAPI PathIsRootW(LPCWSTR);
385 #define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
386
387 BOOL WINAPI PathIsSameRootA(LPCSTR,LPCSTR);
388 BOOL WINAPI PathIsSameRootW(LPCWSTR,LPCWSTR);
389 #define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
390
391 BOOL WINAPI PathIsUNCA(LPCSTR);
392 BOOL WINAPI PathIsUNCW(LPCWSTR);
393 #define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
394
395 BOOL WINAPI PathIsUNCServerA(LPCSTR);
396 BOOL WINAPI PathIsUNCServerW(LPCWSTR);
397 #define PathIsUNCServer WINELIB_NAME_AW(PathIsUNCServer)
398
399 BOOL WINAPI PathIsUNCServerShareA(LPCSTR);
400 BOOL WINAPI PathIsUNCServerShareW(LPCWSTR);
401 #define PathIsUNCServerShare WINELIB_NAME_AW(PathIsUNCServerShare)
402
403 BOOL WINAPI PathIsContentTypeA(LPCSTR,LPCSTR);
404 BOOL WINAPI PathIsContentTypeW(LPCWSTR,LPCWSTR);
405 #define PathIsContentType WINELIB_NAME_AW(PathIsContentType)
406
407 BOOL WINAPI PathIsURLA(LPCSTR);
408 BOOL WINAPI PathIsURLW(LPCWSTR);
409 #define PathIsURL WINELIB_NAME_AW(PathIsURL)
410
411 BOOL WINAPI PathMakePrettyA(LPSTR);
412 BOOL WINAPI PathMakePrettyW(LPWSTR);
413 #define PathMakePretty WINELIB_NAME_AW(PathMakePretty)
414
415 BOOL WINAPI PathMatchSpecA(LPCSTR,LPCSTR);
416 BOOL WINAPI PathMatchSpecW(LPCWSTR,LPCWSTR);
417 #define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
418
419 int WINAPI PathParseIconLocationA(LPSTR);
420 int WINAPI PathParseIconLocationW(LPWSTR);
421 #define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
422
423 VOID WINAPI PathQuoteSpacesA(LPSTR);
424 VOID WINAPI PathQuoteSpacesW(LPWSTR);
425 #define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
426
427 BOOL WINAPI PathRelativePathToA(LPSTR,LPCSTR,DWORD,LPCSTR,DWORD);
428 BOOL WINAPI PathRelativePathToW(LPWSTR,LPCWSTR,DWORD,LPCWSTR,DWORD);
429 #define PathRelativePathTo WINELIB_NAME_AW(PathRelativePathTo)
430
431 VOID WINAPI PathRemoveArgsA(LPSTR);
432 VOID WINAPI PathRemoveArgsW(LPWSTR);
433 #define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
434
435 LPSTR  WINAPI PathRemoveBackslashA(LPSTR);
436 LPWSTR WINAPI PathRemoveBackslashW(LPWSTR);
437 #define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
438
439 VOID WINAPI PathRemoveBlanksA(LPSTR);
440 VOID WINAPI PathRemoveBlanksW(LPWSTR);
441 #define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
442
443 VOID WINAPI PathRemoveExtensionA(LPSTR);
444 VOID WINAPI PathRemoveExtensionW(LPWSTR);
445 #define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
446
447 BOOL WINAPI PathRemoveFileSpecA(LPSTR);
448 BOOL WINAPI PathRemoveFileSpecW(LPWSTR);
449 #define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
450
451 BOOL WINAPI PathRenameExtensionA(LPSTR,LPCSTR);
452 BOOL WINAPI PathRenameExtensionW(LPWSTR,LPCWSTR);
453 #define PathRenameExtension WINELIB_NAME_AW(PathRenameExtension)
454
455 BOOL WINAPI PathSearchAndQualifyA(LPCSTR,LPSTR,UINT);
456 BOOL WINAPI PathSearchAndQualifyW(LPCWSTR,LPWSTR,UINT);
457 #define PathSearchAndQualify WINELIB_NAME_AW(PathSearchAndQualify)
458
459 VOID WINAPI PathSetDlgItemPathA(HWND,int,LPCSTR);
460 VOID WINAPI PathSetDlgItemPathW(HWND,int,LPCWSTR);
461 #define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
462
463 LPSTR  WINAPI PathSkipRootA(LPCSTR);
464 LPWSTR WINAPI PathSkipRootW(LPCWSTR);
465 #define PathSkipRoot WINELIB_NAME_AW(PathSkipRoot)
466
467 VOID WINAPI PathStripPathA(LPSTR);
468 VOID WINAPI PathStripPathW(LPWSTR);
469 #define PathStripPath WINELIB_NAME_AW(PathStripPath)
470
471 BOOL WINAPI PathStripToRootA(LPSTR);
472 BOOL WINAPI PathStripToRootW(LPWSTR);
473 #define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
474
475 VOID WINAPI PathUnquoteSpacesA(LPSTR);
476 VOID WINAPI PathUnquoteSpacesW(LPWSTR);
477 #define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
478
479 BOOL WINAPI PathMakeSystemFolderA(LPCSTR);
480 BOOL WINAPI PathMakeSystemFolderW(LPCWSTR);
481 #define PathMakeSystemFolder WINELIB_NAME_AW(PathMakeSystemFolder)
482
483 BOOL WINAPI PathUnmakeSystemFolderA(LPCSTR);
484 BOOL WINAPI PathUnmakeSystemFolderW(LPCWSTR);
485 #define PathUnmakeSystemFolder WINELIB_NAME_AW(PathUnmakeSystemFolder)
486
487 BOOL WINAPI PathIsSystemFolderA(LPCSTR,DWORD);
488 BOOL WINAPI PathIsSystemFolderW(LPCWSTR,DWORD);
489 #define PathIsSystemFolder WINELIB_NAME_AW(PathIsSystemFolder)
490
491 BOOL WINAPI PathIsNetworkPathA(LPCSTR);
492 BOOL WINAPI PathIsNetworkPathW(LPCWSTR);
493 #define PathIsNetworkPath WINELIB_NAME_AW(PathIsNetworkPath)
494
495 BOOL WINAPI PathIsLFNFileSpecA(LPCSTR);
496 BOOL WINAPI PathIsLFNFileSpecW(LPCWSTR);
497 #define PathIsLFNFileSpec WINELIB_NAME_AW(PathIsLFNFileSpec)
498
499 int WINAPI PathFindSuffixArrayA(LPCSTR,LPCSTR *,int);
500 int WINAPI PathFindSuffixArrayW(LPCWSTR,LPCWSTR *,int);
501 #define PathFindSuffixArray WINELIB_NAME_AW(PathFindSuffixArray)
502
503 VOID WINAPI PathUndecorateA(LPSTR);
504 VOID WINAPI PathUndecorateW(LPWSTR);
505 #define PathUndecorate WINELIB_NAME_AW(PathUndecorate)
506
507 BOOL WINAPI PathUnExpandEnvStringsA(LPCSTR,LPSTR,UINT);
508 BOOL WINAPI PathUnExpandEnvStringsW(LPCWSTR,LPWSTR,UINT);
509 #define PathUnExpandEnvStrings WINELIB_NAME_AW(PathUnExpandEnvStrings)
510
511 /* Url functions */
512
513 /* These are used by UrlGetPart routine */
514 typedef enum {
515     URL_PART_NONE    = 0,
516     URL_PART_SCHEME  = 1,
517     URL_PART_HOSTNAME,
518     URL_PART_USERNAME,
519     URL_PART_PASSWORD,
520     URL_PART_PORT,
521     URL_PART_QUERY
522 } URL_PART;
523
524 #define URL_PARTFLAG_KEEPSCHEME  0x00000001
525
526 /* These are used by the UrlIs... routines */
527 typedef enum {
528     URLIS_URL,
529     URLIS_OPAQUE,
530     URLIS_NOHISTORY,
531     URLIS_FILEURL,
532     URLIS_APPLIABLE,
533     URLIS_DIRECTORY,
534     URLIS_HASQUERY
535 } URLIS;
536
537 /* This is used by the UrlApplyScheme... routines */
538 #define URL_APPLY_FORCEAPPLY         0x00000008
539 #define URL_APPLY_GUESSFILE          0x00000004
540 #define URL_APPLY_GUESSSCHEME        0x00000002
541 #define URL_APPLY_DEFAULT            0x00000001
542
543 /* The following are used by UrlEscape..., UrlUnEscape...,
544  * UrlCanonicalize..., and UrlCombine... routines
545  */
546 #define URL_WININET_COMPATIBILITY    0x80000000
547 #define URL_PLUGGABLE_PROTOCOL       0x40000000
548 #define URL_ESCAPE_UNSAFE            0x20000000
549 #define URL_UNESCAPE                 0x10000000
550
551 #define URL_DONT_SIMPLIFY            0x08000000
552 #define URL_NO_META                  URL_DONT_SIMPLIFY
553 #define URL_ESCAPE_SPACES_ONLY       0x04000000
554 #define URL_DONT_ESCAPE_EXTRA_INFO   0x02000000
555 #define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
556 #define URL_BROWSER_MODE             URL_DONT_ESCAPE_EXTRA_INFO
557
558 #define URL_INTERNAL_PATH            0x00800000  /* Will escape #'s in paths */
559 #define URL_UNESCAPE_HIGH_ANSI_ONLY  0x00400000
560 #define URL_CONVERT_IF_DOSPATH       0x00200000
561 #define URL_UNESCAPE_INPLACE         0x00100000
562
563 #define URL_FILE_USE_PATHURL         0x00010000
564
565 #define URL_ESCAPE_SEGMENT_ONLY      0x00002000
566 #define URL_ESCAPE_PERCENT           0x00001000
567
568 HRESULT WINAPI UrlApplySchemeA(LPCSTR,LPSTR,LPDWORD,DWORD);
569 HRESULT WINAPI UrlApplySchemeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
570 #define UrlApplyScheme WINELIB_NAME_AW(UrlApplyScheme)
571
572 HRESULT WINAPI UrlCanonicalizeA(LPCSTR,LPSTR,LPDWORD,DWORD);
573 HRESULT WINAPI UrlCanonicalizeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
574 #define UrlCanonicalize WINELIB_NAME_AW(UrlCanoncalize)
575
576 HRESULT WINAPI UrlCombineA(LPCSTR,LPCSTR,LPSTR,LPDWORD,DWORD);
577 HRESULT WINAPI UrlCombineW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,DWORD);
578 #define UrlCombine WINELIB_NAME_AW(UrlCombine)
579
580 INT WINAPI UrlCompareA(LPCSTR,LPCSTR,BOOL);
581 INT WINAPI UrlCompareW(LPCWSTR,LPCWSTR,BOOL);
582 #define UrlCompare WINELIB_NAME_AW(UrlCompare)
583
584 HRESULT WINAPI UrlEscapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
585 HRESULT WINAPI UrlEscapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
586 #define UrlEscape WINELIB_NAME_AW(UrlEscape)
587
588 #define UrlEscapeSpacesA(x,y,z) UrlCanonicalizeA(x, y, z, \
589                          URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
590 #define UrlEscapeSpacesW(x,y,z) UrlCanonicalizeW(x, y, z, \
591                          URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
592 #define UrlEscapeSpaces WINELIB_NAME_AW(UrlEscapeSpaces)
593
594 LPCSTR  WINAPI UrlGetLocationA(LPCSTR);
595 LPCWSTR WINAPI UrlGetLocationW(LPCWSTR);
596 #define UrlGetLocation WINELIB_NAME_AW(UrlGetLocation)
597
598 HRESULT WINAPI UrlGetPartA(LPCSTR,LPSTR,LPDWORD,DWORD,DWORD);
599 HRESULT WINAPI UrlGetPartW(LPCWSTR,LPWSTR,LPDWORD,DWORD,DWORD);
600 #define UrlGetPart WINELIB_NAME_AW(UrlGetPart)
601
602 BOOL    WINAPI HashData(const unsigned char *,INT,unsigned char *lpDest,INT);
603
604 HRESULT WINAPI UrlHashA(LPCSTR,unsigned char *,INT);
605 HRESULT WINAPI UrlHashW(LPCWSTR,unsigned char *,INT);
606 #define UrlHash WINELIB_NAME_AW(UrlHash)
607
608 BOOL    WINAPI UrlIsA(LPCSTR,URLIS);
609 BOOL    WINAPI UrlIsW(LPCWSTR,URLIS);
610 #define UrlIs WINELIB_NAME_AW(UrlIs)
611
612 BOOL    WINAPI UrlIsNoHistoryA(LPCSTR);
613 BOOL    WINAPI UrlIsNoHistoryW(LPCWSTR);
614 #define UrlIsNoHistory WINELIB_NAME_AW(UrlIsNoHistory)
615
616 BOOL    WINAPI UrlIsOpaqueA(LPCSTR);
617 BOOL    WINAPI UrlIsOpaqueW(LPCWSTR);
618 #define UrlIsOpaque WINELIB_NAME_AW(UrlIsOpaque)
619
620 #define UrlIsFileUrlA(x) UrlIsA(x, URLIS_FILEURL)
621 #define UrlIsFileUrlW(y) UrlIsW(x, URLIS_FILEURL)
622 #define UrlIsFileUrl WINELIB_NAME_AW(UrlIsFileUrl)
623
624 HRESULT WINAPI UrlUnescapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
625 HRESULT WINAPI UrlUnescapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
626 #define UrlUnescape WINELIB_AW_NAME(UrlUnescape)
627
628 #define UrlUnescapeInPlaceA(x,y) UrlUnescapeA(x, NULL, NULL, \
629                                               y | URL_UNESCAPE_INPLACE)
630 #define UrlUnescapeInPlaceW(x,y) UrlUnescapeW(x, NULL, NULL, \
631                                               y | URL_UNESCAPE_INPLACE)
632 #define UrlUnescapeInPlace WINELIB_AW_NAME(UrlUnescapeInPlace)
633
634 HRESULT WINAPI UrlCreateFromPathA(LPCSTR,LPSTR,LPDWORD,DWORD);
635 HRESULT WINAPI UrlCreateFromPathW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
636 #define UrlCreateFromPath WINELIB_AW_NAME(UrlCreateFromPath)
637
638 #endif /* NO_SHLWAPI_PATH */
639
640
641 /* String functions */
642 #ifndef NO_SHLWAPI_STRFCNS
643
644 /* StrToIntEx flags */
645 #define STIF_DEFAULT     0x0L
646 #define STIF_SUPPORT_HEX 0x1L
647
648 BOOL WINAPI ChrCmpIA (WORD,WORD);
649 BOOL WINAPI ChrCmpIW (WCHAR,WCHAR);
650 #define ChrCmpI WINELIB_NAME_AW(ChrCmpI)
651
652 INT WINAPI StrCSpnA(LPCSTR,LPCSTR);
653 INT WINAPI StrCSpnW(LPCWSTR,LPCWSTR);
654 #define StrCSpn WINELIB_NAME_AW(StrCSpn)
655
656 INT WINAPI StrCSpnIA(LPCSTR,LPCSTR);
657 INT WINAPI StrCSpnIW(LPCWSTR,LPCWSTR);
658 #define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
659
660 #define StrCatA lstrcatA
661 LPWSTR WINAPI StrCatW(LPWSTR,LPCWSTR);
662 #define StrCat WINELIB_NAME_AW(StrCat)
663
664 LPSTR WINAPI StrCatBuffA(LPSTR,LPCSTR,INT);
665 LPWSTR WINAPI StrCatBuffW(LPWSTR,LPCWSTR,INT);
666 #define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
667
668 DWORD WINAPI StrCatChainW(LPWSTR,DWORD,DWORD,LPCWSTR);
669
670 LPSTR WINAPI StrChrA(LPCSTR,WORD);
671 LPWSTR WINAPI StrChrW(LPCWSTR,WCHAR);
672 #define StrChr WINELIB_NAME_AW(StrChr)
673
674 LPSTR WINAPI StrChrIA(LPCSTR,WORD);
675 LPWSTR WINAPI StrChrIW(LPCWSTR,WCHAR);
676 #define StrChrI WINELIB_NAME_AW(StrChrI)
677
678 #define StrCmpA lstrcmpA
679 int WINAPI StrCmpW(LPCWSTR,LPCWSTR);
680 #define StrCmp WINELIB_NAME_AW(StrCmp)
681
682 #define StrCmpIA lstrcmpiA
683 int WINAPI StrCmpIW(LPCWSTR,LPCWSTR);
684 #define StrCmpI WINELIB_NAME_AW(StrCmpI)
685
686 #define StrCpyA lstrcpyA
687 LPWSTR WINAPI StrCpyW(LPWSTR,LPCWSTR);
688 #define StrCpy WINELIB_NAME_AW(StrCpy)
689
690 #define StrCpyNA lstrcpynA
691 LPWSTR WINAPI StrCpyNW(LPWSTR,LPCWSTR,int);
692 #define StrCpyN WINELIB_NAME_AW(StrCpyN)
693 #define StrNCpy WINELIB_NAME_AW(StrCpyN)
694
695 INT WINAPI StrCmpLogicalW(LPCWSTR,LPCWSTR);
696
697 INT WINAPI StrCmpNA(LPCSTR,LPCSTR,INT);
698 INT WINAPI StrCmpNW(LPCWSTR,LPCWSTR,INT);
699 #define StrCmpN WINELIB_NAME_AW(StrCmpN)
700 #define StrNCmp WINELIB_NAME_AW(StrCmpN)
701
702 INT WINAPI StrCmpNIA(LPCSTR,LPCSTR,INT);
703 INT WINAPI StrCmpNIW(LPCWSTR,LPCWSTR,INT);
704 #define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
705 #define StrNCmpI WINELIB_NAME_AW(StrCmpNI)
706
707 LPSTR WINAPI StrDupA(LPCSTR);
708 LPWSTR WINAPI StrDupW(LPCWSTR);
709 #define StrDup WINELIB_NAME_AW(StrDup)
710
711 HRESULT WINAPI SHStrDupA(LPCSTR,WCHAR**);
712 HRESULT WINAPI SHStrDupW(LPCWSTR,WCHAR**);
713 #define SHStrDup WINELIB_NAME_AW(SHStrDup)
714
715 LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
716
717 /* A/W Pairing is broken for this function */
718 LPSTR WINAPI StrFormatByteSize64A (LONGLONG,LPSTR,UINT);
719 LPWSTR WINAPI StrFormatByteSizeW (LONGLONG,LPWSTR,UINT);
720 #ifndef __WINESRC__
721 #ifdef UNICODE
722 #define StrFormatByteSize StrFormatByteSizeW
723 #else
724 #define StrFormatByteSize StrFormatByteSize64A
725 #endif
726 #endif
727
728 int WINAPI StrFromTimeIntervalA(LPSTR,UINT,DWORD,int);
729 int WINAPI StrFromTimeIntervalW(LPWSTR,UINT,DWORD,int);
730 #define StrFromTimeInterval WINELIB_NAME_AW(StrFromTimeInterval)
731
732 BOOL WINAPI StrIsIntlEqualA(BOOL,LPCSTR,LPCSTR,int);
733 BOOL WINAPI StrIsIntlEqualW(BOOL,LPCWSTR,LPCWSTR,int);
734 #define StrIsIntlEqual WINELIB_NAME_AW(StrIsIntlEqual)
735
736 #define StrIntlEqNA(a,b,c) StrIsIntlEqualA(TRUE,a,b,c)
737 #define StrIntlEqNW(a,b,c) StrIsIntlEqualW(TRUE,a,b,c)
738
739 #define StrIntlEqNIA(a,b,c) StrIsIntlEqualA(FALSE,a,b,c)
740 #define StrIntlEqNIW(a,b,c) StrIsIntlEqualW(FALSE,a,b,c)
741
742 LPSTR  WINAPI StrNCatA(LPSTR,LPCSTR,int);
743 LPWSTR WINAPI StrNCatW(LPWSTR,LPCWSTR,int);
744 #define StrNCat WINELIB_NAME_AW(StrNCat)
745 #define StrCatN WINELIB_NAME_AW(StrNCat)
746
747 LPSTR  WINAPI StrPBrkA(LPCSTR,LPCSTR);
748 LPWSTR WINAPI StrPBrkW(LPCWSTR,LPCWSTR);
749 #define StrPBrk WINELIB_NAME_AW(StrPBrk)
750
751 LPSTR  WINAPI StrRChrA(LPCSTR,LPCSTR,WORD);
752 LPWSTR WINAPI StrRChrW(LPCWSTR,LPCWSTR,WORD);
753 #define StrRChr WINELIB_NAME_AW(StrRChr)
754
755 LPSTR  WINAPI StrRChrIA(LPCSTR,LPCSTR,WORD);
756 LPWSTR WINAPI StrRChrIW(LPCWSTR,LPCWSTR,WORD);
757 #define StrRChrI WINELIB_NAME_AW(StrRChrI)
758
759 LPSTR  WINAPI StrRStrIA(LPCSTR,LPCSTR,LPCSTR);
760 LPWSTR WINAPI StrRStrIW(LPCWSTR,LPCWSTR,LPCWSTR);
761 #define StrRStrI WINELIB_NAME_AW(StrRStrI)
762
763 int WINAPI StrSpnA(LPCSTR,LPCSTR);
764 int WINAPI StrSpnW(LPCWSTR,LPCWSTR);
765 #define StrSpn WINELIB_NAME_AW(StrSpn)
766
767 LPSTR  WINAPI StrStrA(LPCSTR,LPCSTR);
768 LPWSTR WINAPI StrStrW(LPCWSTR,LPCWSTR);
769 #define StrStr WINELIB_NAME_AW(StrStr)
770
771 LPSTR  WINAPI StrStrIA(LPCSTR,LPCSTR);
772 LPWSTR WINAPI StrStrIW(LPCWSTR,LPCWSTR);
773 #define StrStrI WINELIB_NAME_AW(StrStrI)
774
775 int WINAPI StrToIntA(LPCSTR);
776 int WINAPI StrToIntW(LPCWSTR);
777 #define StrToInt WINELIB_NAME_AW(StrToInt)
778 #define StrToLong WINELIB_NAME_AW(StrToInt)
779
780 BOOL WINAPI StrToIntExA(LPCSTR,DWORD,int*);
781 BOOL WINAPI StrToIntExW(LPCWSTR,DWORD,int*);
782 #define StrToIntEx WINELIB_NAME_AW(StrToIntEx)
783
784 BOOL WINAPI StrToInt64ExA(LPCSTR,DWORD,LONGLONG*);
785 BOOL WINAPI StrToInt64ExW(LPCWSTR,DWORD,LONGLONG*);
786 #define StrToIntEx64 WINELIB_NAME_AW(StrToIntEx64)
787
788 BOOL WINAPI StrTrimA(LPSTR,LPCSTR);
789 BOOL WINAPI StrTrimW(LPWSTR,LPCWSTR);
790 #define StrTrim WINELIB_NAME_AW(StrTrim)
791
792 INT WINAPI wvnsprintfA(LPSTR,INT,LPCSTR,va_list);
793 INT WINAPI wvnsprintfW(LPWSTR,INT,LPCWSTR,va_list);
794 #define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
795
796 INT WINAPIV wnsprintfA(LPSTR,INT,LPCSTR, ...);
797 INT WINAPIV wnsprintfW(LPWSTR,INT,LPCWSTR, ...);
798 #define wnsprintf WINELIB_NAME_AW(wnsprintf)
799
800 HRESULT WINAPI SHLoadIndirectString(LPCWSTR,LPWSTR,UINT,PVOID*);
801
802 BOOL IntlStrEqWorkerA(BOOL,LPCSTR,LPCSTR,int);
803 BOOL IntlStrEqWorkerW(BOOL,LPCWSTR,LPCWSTR,int);
804 #define IntlStrEqWorker WINELIB_NAME_AW(IntlStrEqWorker)
805
806 #define IntlStrEqNA(s1,s2,n) IntlStrEqWorkerA(TRUE,s1,s2,n)
807 #define IntlStrEqNW(s1,s2,n) IntlStrEqWorkerW(TRUE,s1,s2,n)
808 #define IntlStrEqN WINELIB_NAME_AW(IntlStrEqN)
809
810 #define IntlStrEqNIA(s1,s2,n) IntlStrEqWorkerA(FALSE,s1,s2,n)
811 #define IntlStrEqNIW(s1,s2,n) IntlStrEqWorkerW(FALSE,s1,s2,n)
812 #define IntlStrEqNI WINELIB_NAME_AW(IntlStrEqNI)
813
814 /* Undocumented */
815 struct _STRRET;
816 struct _ITEMIDLIST;
817
818 HRESULT WINAPI StrRetToStrA(struct _STRRET*,const struct _ITEMIDLIST*,LPSTR*);
819 HRESULT WINAPI StrRetToStrW(struct _STRRET*,const struct _ITEMIDLIST*,LPWSTR*);
820 #define StrRetToStr WINELIB_NAME_AW(StrRetToStr)
821
822 HRESULT WINAPI StrRetToBufA(struct _STRRET*,const struct _ITEMIDLIST*,LPSTR,DWORD);
823 HRESULT WINAPI StrRetToBufW(struct _STRRET*,const struct _ITEMIDLIST*,LPWSTR,DWORD);
824 #define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
825
826 #endif /* NO_SHLWAPI_STRFCNS */
827
828
829 /* GDI functions */
830 #ifndef NO_SHLWAPI_GDI
831
832 HPALETTE WINAPI SHCreateShellPalette(HDC);
833
834 COLORREF WINAPI ColorHLSToRGB(WORD,WORD,WORD);
835
836 COLORREF WINAPI ColorAdjustLuma(COLORREF,int,BOOL);
837
838 VOID WINAPI ColorRGBToHLS(COLORREF,LPWORD,LPWORD,LPWORD);
839
840 #endif /* NO_SHLWAPI_GDI */
841
842
843 /* Stream functions */
844 #if !defined(NO_SHLWAPI_STREAM) && defined(IStream_IMETHODS)
845
846 IStream * WINAPI SHOpenRegStreamA(HKEY,LPCSTR,LPCSTR,DWORD);
847 IStream * WINAPI SHOpenRegStreamW(HKEY,LPCWSTR,LPCWSTR,DWORD);
848 #define SHOpenRegStream WINELIB_NAME_AW(SHOpenRegStream2) /* Uses version 2 */
849
850 IStream * WINAPI SHOpenRegStream2A(HKEY,LPCSTR,LPCSTR,DWORD);
851 IStream * WINAPI SHOpenRegStream2W(HKEY,LPCWSTR,LPCWSTR,DWORD);
852 #define SHOpenRegStream2 WINELIB_NAME_AW(SHOpenRegStream2)
853
854 HRESULT WINAPI SHCreateStreamOnFileA(LPCSTR,DWORD,IStream**);
855 HRESULT WINAPI SHCreateStreamOnFileW(LPCWSTR,DWORD,IStream**);
856 #define SHCreateStreamOnFile WINELIB_NAME_AW(SHCreateStreamOnFile)
857
858 HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR,DWORD,DWORD,BOOL,IStream*,IStream**);
859
860 HRESULT WINAPI SHCreateStreamWrapper(LPBYTE,DWORD,DWORD,IStream**);
861
862 #endif /* NO_SHLWAPI_STREAM */
863
864 /* SHAutoComplete flags */
865 #define SHACF_DEFAULT               0x00000000
866 #define SHACF_FILESYSTEM            0x00000001
867 #define SHACF_URLHISTORY            0x00000002
868 #define SHACF_URLMRU                0x00000004
869 #define SHACF_URLALL                (SHACF_URLHISTORY|SHACF_URLMRU)
870 #define SHACF_USETAB                0x00000008
871 #define SHACF_FILESYS_ONLY          0x00000010
872 #define SHACF_FILESYS_DIRS          0x00000020
873 #define SHACF_AUTOSUGGEST_FORCE_ON  0x10000000
874 #define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000
875 #define SHACF_AUTOAPPEND_FORCE_ON   0x40000000
876 #define SHACF_AUTOAPPEND_FORCE_OFF  0x80000000
877
878 HRESULT WINAPI SHAutoComplete(HWND,DWORD);
879
880 /* Threads */
881 #if defined(IUnknown_IMETHODS)
882 HRESULT WINAPI SHGetThreadRef(IUnknown**);
883 HRESULT WINAPI SHSetThreadRef(IUnknown*);
884 #endif
885 HRESULT WINAPI SHReleaseThreadRef();
886
887 /* SHCreateThread flags */
888 #define CTF_INSIST          0x01 /* Allways call */
889 #define CTF_THREAD_REF      0x02 /* Hold thread ref */
890 #define CTF_PROCESS_REF     0x04 /* Hold process ref */
891 #define CTF_COINIT          0x08 /* Startup COM first */
892 #define CTF_FREELIBANDEXIT  0x10 /* Hold DLL ref */
893 #define CTF_REF_COUNTED     0x20 /* Thread is ref counted */
894 #define CTF_WAIT_ALLOWCOM   0x40 /* Allow marshalling */
895
896 BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE,void*,DWORD,LPTHREAD_START_ROUTINE);
897
898 #if defined(IBindCtx_IMETHODS)
899 BOOL WINAPI SHSkipJunction(IBindCtx*,const CLSID*);
900 #endif
901
902 /* Version Information */
903
904 typedef struct _DllVersionInfo {
905     DWORD cbSize;
906     DWORD dwMajorVersion;
907     DWORD dwMinorVersion;
908     DWORD dwBuildNumber;
909     DWORD dwPlatformID;
910 } DLLVERSIONINFO;
911
912 #define DLLVER_PLATFORM_WINDOWS 0x01 /* Win9x */
913 #define DLLVER_PLATFORM_NT      0x02 /* WinNT */
914
915 typedef HRESULT (CALLBACK *DLLGETVERSIONPROC)(DLLVERSIONINFO *);
916
917 typedef struct _DLLVERSIONINFO2 {
918     DLLVERSIONINFO info1;
919     DWORD          dwFlags;    /* Reserved */
920     ULONGLONG      ullVersion; /* 16 bits each for Major, Minor, Build, QFE */
921 } DLLVERSIONINFO2;
922
923 #define DLLVER_MAJOR_MASK 0xFFFF000000000000
924 #define DLLVER_MINOR_MASK 0x0000FFFF00000000
925 #define DLLVER_BUILD_MASK 0x00000000FFFF0000
926 #define DLLVER_QFE_MASK   0x000000000000FFFF
927
928 #define MAKEDLLVERULL(mjr, mnr, bld, qfe) (((ULONGLONG)(mjr)<< 48)| \
929   ((ULONGLONG)(mnr)<< 32) | ((ULONGLONG)(bld)<< 16) | (ULONGLONG)(qfe))
930
931 HRESULT WINAPI DllInstall(BOOL,LPCWSTR);
932
933 #include "poppack.h" 
934
935 #ifdef __cplusplus
936 } /* extern "C" */
937 #endif /* defined(__cplusplus) */
938
939 #endif /* __WINE_SHLWAPI_H */