joy.cpl: Fix pulsing buttons in joystick button state display.
[wine/zf.git] / include / shlwapi.h
blobca15bd207778a7c6335e523f67977f95cb855d35
1 /*
2 * SHLWAPI.DLL functions
4 * Copyright (C) 2000 Juergen Schmied
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_SHLWAPI_H
22 #define __WINE_SHLWAPI_H
24 /* FIXME: #include <specstrings.h> */
25 #include <objbase.h>
26 #include <shtypes.h>
28 #ifdef __cplusplus
29 extern "C" {
30 #endif /* defined(__cplusplus) */
32 #include <pshpack8.h>
34 #ifndef NO_SHLWAPI_HTTP
36 HRESULT WINAPI GetAcceptLanguagesA(char *buffer, DWORD *buff_len);
37 HRESULT WINAPI GetAcceptLanguagesW(WCHAR *buffer, DWORD *buff_len);
38 #define GetAcceptLanguages WINELIB_NAME_AW(GetAcceptLanguages)
40 #endif /* NO_SHLWAPI_HTTP */
42 #ifndef NO_SHLWAPI_REG
44 /* Registry functions */
46 DWORD WINAPI SHDeleteEmptyKeyA(HKEY,LPCSTR);
47 DWORD WINAPI SHDeleteEmptyKeyW(HKEY,LPCWSTR);
48 #define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
50 DWORD WINAPI SHDeleteKeyA(HKEY,LPCSTR);
51 DWORD WINAPI SHDeleteKeyW(HKEY,LPCWSTR);
52 #define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
54 DWORD WINAPI SHDeleteValueA(HKEY,LPCSTR,LPCSTR);
55 DWORD WINAPI SHDeleteValueW(HKEY,LPCWSTR,LPCWSTR);
56 #define SHDeleteValue WINELIB_NAME_AW(SHDeleteValue)
58 DWORD WINAPI SHGetValueA(HKEY,LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD);
59 DWORD WINAPI SHGetValueW(HKEY,LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD);
60 #define SHGetValue WINELIB_NAME_AW(SHGetValue)
62 DWORD WINAPI SHSetValueA(HKEY,LPCSTR,LPCSTR,DWORD,LPCVOID,DWORD);
63 DWORD WINAPI SHSetValueW(HKEY,LPCWSTR,LPCWSTR,DWORD,LPCVOID,DWORD);
64 #define SHSetValue WINELIB_NAME_AW(SHSetValue)
66 DWORD WINAPI SHQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
67 DWORD WINAPI SHQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
68 #define SHQueryValueEx WINELIB_NAME_AW(SHQueryValueEx)
70 LONG WINAPI SHEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD);
71 LONG WINAPI SHEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD);
72 #define SHEnumKeyEx WINELIB_NAME_AW(SHEnumKeyEx)
74 LONG WINAPI SHEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
75 LONG WINAPI SHEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
76 #define SHEnumValue WINELIB_NAME_AW(SHEnumValue)
78 LONG WINAPI SHQueryInfoKeyA(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
79 LONG WINAPI SHQueryInfoKeyW(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
80 #define SHQueryInfoKey WINELIB_NAME_AW(SHQueryInfoKey)
82 DWORD WINAPI SHRegGetPathA(HKEY,LPCSTR,LPCSTR,LPSTR,DWORD);
83 DWORD WINAPI SHRegGetPathW(HKEY,LPCWSTR,LPCWSTR,LPWSTR,DWORD);
84 #define SHRegGetPath WINELIB_NAME_AW(SHRegGetPath)
86 DWORD WINAPI SHRegSetPathA(HKEY,LPCSTR,LPCSTR,LPCSTR,DWORD);
87 DWORD WINAPI SHRegSetPathW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR,DWORD);
88 #define SHRegSetPath WINELIB_NAME_AW(SHRegSetPath)
90 DWORD WINAPI SHCopyKeyA(HKEY,LPCSTR,HKEY,DWORD);
91 DWORD WINAPI SHCopyKeyW(HKEY,LPCWSTR,HKEY,DWORD);
92 #define SHCopyKey WINELIB_NAME_AW(SHCopyKey)
94 HKEY WINAPI SHRegDuplicateHKey(HKEY);
96 /* SHRegGetValue flags */
97 typedef INT SRRF;
99 #define SRRF_RT_REG_NONE 0x1
100 #define SRRF_RT_REG_SZ 0x2
101 #define SRRF_RT_REG_EXPAND_SZ 0x4
102 #define SRRF_RT_REG_BINARY 0x8
103 #define SRRF_RT_REG_DWORD 0x10
104 #define SRRF_RT_REG_MULTI_SZ 0x20
105 #define SRRF_RT_REG_QWORD 0x40
107 #define SRRF_RT_DWORD (SRRF_RT_REG_BINARY|SRRF_RT_REG_DWORD)
108 #define SRRF_RT_QWORD (SRRF_RT_REG_BINARY|SRRF_RT_REG_QWORD)
109 #define SRRF_RT_ANY 0xffff
111 #define SRRF_RM_ANY 0
112 #define SRRF_RM_NORMAL 0x10000
113 #define SRRF_RM_SAFE 0x20000
114 #define SRRF_RM_SAFENETWORK 0x40000
116 #define SRRF_NOEXPAND 0x10000000
117 #define SRRF_ZEROONFAILURE 0x20000000
118 #define SRRF_NOVIRT 0x40000000
120 LSTATUS WINAPI SHRegGetValueA(HKEY,LPCSTR,LPCSTR,SRRF,LPDWORD,LPVOID,LPDWORD);
121 LSTATUS WINAPI SHRegGetValueW(HKEY,LPCWSTR,LPCWSTR,SRRF,LPDWORD,LPVOID,LPDWORD);
122 #define SHRegGetValue WINELIB_NAME_AW(SHRegGetValue)
124 /* Undocumented registry functions */
126 DWORD WINAPI SHDeleteOrphanKeyA(HKEY,LPCSTR);
127 DWORD WINAPI SHDeleteOrphanKeyW(HKEY,LPCWSTR);
128 #define SHDeleteOrphanKey WINELIB_NAME_AW(SHDeleteOrphanKey)
131 /* User registry functions */
133 typedef enum
135 SHREGDEL_DEFAULT = 0,
136 SHREGDEL_HKCU = 0x1,
137 SHREGDEL_HKLM = 0x10,
138 SHREGDEL_BOTH = SHREGDEL_HKLM | SHREGDEL_HKCU
139 } SHREGDEL_FLAGS;
141 typedef enum
143 SHREGENUM_DEFAULT = 0,
144 SHREGENUM_HKCU = 0x1,
145 SHREGENUM_HKLM = 0x10,
146 SHREGENUM_BOTH = SHREGENUM_HKLM | SHREGENUM_HKCU
147 } SHREGENUM_FLAGS;
149 #define SHREGSET_HKCU 0x1 /* Apply to HKCU if empty */
150 #define SHREGSET_FORCE_HKCU 0x2 /* Always apply to HKCU */
151 #define SHREGSET_HKLM 0x4 /* Apply to HKLM if empty */
152 #define SHREGSET_FORCE_HKLM 0x8 /* Always apply to HKLM */
153 #define SHREGSET_DEFAULT (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
155 typedef HANDLE HUSKEY;
156 typedef HUSKEY *PHUSKEY;
158 LONG WINAPI SHRegCreateUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
159 LONG WINAPI SHRegCreateUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
160 #define SHRegCreateUSKey WINELIB_NAME_AW(SHRegCreateUSKey)
162 LONG WINAPI SHRegOpenUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
163 LONG WINAPI SHRegOpenUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
164 #define SHRegOpenUSKey WINELIB_NAME_AW(SHRegOpenUSKey)
166 LONG WINAPI SHRegQueryUSValueA(HUSKEY,LPCSTR,LPDWORD,LPVOID,LPDWORD,
167 BOOL,LPVOID,DWORD);
168 LONG WINAPI SHRegQueryUSValueW(HUSKEY,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
169 BOOL,LPVOID,DWORD);
170 #define SHRegQueryUSValue WINELIB_NAME_AW(SHRegQueryUSValue)
172 LONG WINAPI SHRegWriteUSValueA(HUSKEY,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
173 LONG WINAPI SHRegWriteUSValueW(HUSKEY,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
174 #define SHRegWriteUSValue WINELIB_NAME_AW(SHRegWriteUSValue)
176 LONG WINAPI SHRegDeleteUSValueA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
177 LONG WINAPI SHRegDeleteUSValueW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
178 #define SHRegDeleteUSValue WINELIB_NAME_AW(SHRegDeleteUSValue)
180 LONG WINAPI SHRegDeleteEmptyUSKeyA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
181 LONG WINAPI SHRegDeleteEmptyUSKeyW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
182 #define SHRegDeleteEmptyUSKey WINELIB_NAME_AW(SHRegDeleteEmptyUSKey)
184 LONG WINAPI SHRegEnumUSKeyA(HUSKEY,DWORD,LPSTR,LPDWORD,SHREGENUM_FLAGS);
185 LONG WINAPI SHRegEnumUSKeyW(HUSKEY,DWORD,LPWSTR,LPDWORD,SHREGENUM_FLAGS);
186 #define SHRegEnumUSKey WINELIB_NAME_AW(SHRegEnumUSKey)
188 LONG WINAPI SHRegEnumUSValueA(HUSKEY,DWORD,LPSTR,LPDWORD,LPDWORD,
189 LPVOID,LPDWORD,SHREGENUM_FLAGS);
190 LONG WINAPI SHRegEnumUSValueW(HUSKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,
191 LPVOID,LPDWORD,SHREGENUM_FLAGS);
192 #define SHRegEnumUSValue WINELIB_NAME_AW(SHRegEnumUSValue)
194 LONG WINAPI SHRegQueryInfoUSKeyA(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
195 LPDWORD,SHREGENUM_FLAGS);
196 LONG WINAPI SHRegQueryInfoUSKeyW(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
197 LPDWORD,SHREGENUM_FLAGS);
198 #define SHRegQueryInfoUSKey WINELIB_NAME_AW(SHRegQueryInfoUSKey)
200 LONG WINAPI SHRegCloseUSKey(HUSKEY);
202 LONG WINAPI SHRegGetUSValueA(LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD,
203 BOOL,LPVOID,DWORD);
204 LONG WINAPI SHRegGetUSValueW(LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
205 BOOL,LPVOID,DWORD);
206 #define SHRegGetUSValue WINELIB_NAME_AW(SHRegGetUSValue)
208 LONG WINAPI SHRegSetUSValueA(LPCSTR,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
209 LONG WINAPI SHRegSetUSValueW(LPCWSTR,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
210 #define SHRegSetUSValue WINELIB_NAME_AW(SHRegSetUSValue)
212 BOOL WINAPI SHRegGetBoolUSValueA(LPCSTR,LPCSTR,BOOL,BOOL);
213 BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR,LPCWSTR,BOOL,BOOL);
214 #define SHRegGetBoolUSValue WINELIB_NAME_AW(SHRegGetBoolUSValue)
216 int WINAPI SHRegGetIntW(HKEY,LPCWSTR,int);
218 /* IQueryAssociation and helpers */
219 enum
221 ASSOCF_NONE = 0x0000,
222 ASSOCF_INIT_NOREMAPCLSID = 0x0001, /* Don't map clsid->progid */
223 ASSOCF_INIT_BYEXENAME = 0x0002, /* .exe name given */
224 ASSOCF_OPEN_BYEXENAME = 0x0002, /* Synonym */
225 ASSOCF_INIT_DEFAULTTOSTAR = 0x0004, /* Use * as base */
226 ASSOCF_INIT_DEFAULTTOFOLDER = 0x0008, /* Use folder as base */
227 ASSOCF_NOUSERSETTINGS = 0x0010, /* No HKCU reads */
228 ASSOCF_NOTRUNCATE = 0x0020, /* Don't truncate return */
229 ASSOCF_VERIFY = 0x0040, /* Verify data */
230 ASSOCF_REMAPRUNDLL = 0x0080, /* Get rundll args */
231 ASSOCF_NOFIXUPS = 0x0100, /* Don't fixup errors */
232 ASSOCF_IGNOREBASECLASS = 0x0200, /* Don't read baseclass */
233 ASSOCF_INIT_IGNOREUNKNOWN = 0x0400, /* Fail for unknown progid */
234 ASSOCF_INIT_FIXED_PROGID = 0x0800, /* Used passed string as progid, don't try to map it */
235 ASSOCF_IS_PROTOCOL = 0x1000, /* Treat as protocol, that should be mapped */
236 ASSOCF_INIT_FOR_FILE = 0x2000, /* progid is for file extension association */
239 typedef DWORD ASSOCF;
241 typedef enum
243 ASSOCSTR_COMMAND = 1, /* Verb command */
244 ASSOCSTR_EXECUTABLE, /* .exe from command string */
245 ASSOCSTR_FRIENDLYDOCNAME, /* Friendly doc type name */
246 ASSOCSTR_FRIENDLYAPPNAME, /* Friendly .exe name */
247 ASSOCSTR_NOOPEN, /* noopen value */
248 ASSOCSTR_SHELLNEWVALUE, /* Use shellnew key */
249 ASSOCSTR_DDECOMMAND, /* DDE command template */
250 ASSOCSTR_DDEIFEXEC, /* DDE command for process create */
251 ASSOCSTR_DDEAPPLICATION, /* DDE app name */
252 ASSOCSTR_DDETOPIC, /* DDE topic */
253 ASSOCSTR_INFOTIP, /* Infotip */
254 ASSOCSTR_QUICKTIP, /* Quick infotip */
255 ASSOCSTR_TILEINFO, /* Properties for tileview */
256 ASSOCSTR_CONTENTTYPE, /* Mimetype */
257 ASSOCSTR_DEFAULTICON, /* Icon */
258 ASSOCSTR_SHELLEXTENSION, /* GUID for shell extension handler */
259 ASSOCSTR_MAX
260 } ASSOCSTR;
262 typedef enum
264 ASSOCKEY_SHELLEXECCLASS = 1, /* Key for ShellExec */
265 ASSOCKEY_APP, /* Application */
266 ASSOCKEY_CLASS, /* Progid or class */
267 ASSOCKEY_BASECLASS, /* Base class */
268 ASSOCKEY_MAX
269 } ASSOCKEY;
271 typedef enum
273 ASSOCDATA_MSIDESCRIPTOR = 1, /* Component descriptor */
274 ASSOCDATA_NOACTIVATEHANDLER, /* Don't activate */
275 ASSOCDATA_QUERYCLASSSTORE, /* Look in Class Store */
276 ASSOCDATA_HASPERUSERASSOC, /* Use user association */
277 ASSOCDATA_EDITFLAGS, /* Edit flags */
278 ASSOCDATA_VALUE, /* pszExtra is value */
279 ASSOCDATA_MAX
280 } ASSOCDATA;
282 typedef enum
284 ASSOCENUM_NONE
285 } ASSOCENUM;
287 typedef struct IQueryAssociations *LPQUERYASSOCIATIONS;
289 #define INTERFACE IQueryAssociations
290 DECLARE_INTERFACE_(IQueryAssociations,IUnknown)
292 /*** IUnknown methods ***/
293 STDMETHOD_(HRESULT,QueryInterface)(THIS_ REFIID riid, void** ppvObject) PURE;
294 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
295 STDMETHOD_(ULONG,Release)(THIS) PURE;
296 /*** IQueryAssociations methods ***/
297 STDMETHOD(Init)(THIS_ ASSOCF flags, LPCWSTR pszAssoc, HKEY hkProgid, HWND hwnd) PURE;
298 STDMETHOD(GetString)(THIS_ ASSOCF flags, ASSOCSTR str, LPCWSTR pszExtra, LPWSTR pszOut, DWORD * pcchOut) PURE;
299 STDMETHOD(GetKey)(THIS_ ASSOCF flags, ASSOCKEY key, LPCWSTR pszExtra, HKEY * phkeyOut) PURE;
300 STDMETHOD(GetData)(THIS_ ASSOCF flags, ASSOCDATA data, LPCWSTR pszExtra, LPVOID pvOut, DWORD * pcbOut) PURE;
301 STDMETHOD(GetEnum)(THIS_ ASSOCF flags, ASSOCENUM assocenum, LPCWSTR pszExtra, REFIID riid, LPVOID * ppvOut) PURE;
303 #undef INTERFACE
305 #if !defined(__cplusplus) || defined(CINTERFACE)
306 #define IQueryAssociations_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
307 #define IQueryAssociations_AddRef(p) (p)->lpVtbl->AddRef(p)
308 #define IQueryAssociations_Release(p) (p)->lpVtbl->Release(p)
309 #define IQueryAssociations_Init(p,a,b,c,d) (p)->lpVtbl->Init(p,a,b,c,d)
310 #define IQueryAssociations_GetString(p,a,b,c,d,e) (p)->lpVtbl->GetString(p,a,b,c,d,e)
311 #define IQueryAssociations_GetKey(p,a,b,c,d) (p)->lpVtbl->GetKey(p,a,b,c,d)
312 #define IQueryAssociations_GetData(p,a,b,c,d,e) (p)->lpVtbl->GetData(p,a,b,c,d,e)
313 #define IQueryAssociations_GetEnum(p,a,b,c,d,e) (p)->lpVtbl->GetEnum(p,a,b,c,d,e)
314 #endif
316 HRESULT WINAPI AssocCreate(CLSID,REFIID,LPVOID*);
318 HRESULT WINAPI AssocQueryStringA(ASSOCF,ASSOCSTR,LPCSTR,LPCSTR,LPSTR,LPDWORD);
319 HRESULT WINAPI AssocQueryStringW(ASSOCF,ASSOCSTR,LPCWSTR,LPCWSTR,LPWSTR,LPDWORD);
320 #define AssocQueryString WINELIB_NAME_AW(AssocQueryString)
322 HRESULT WINAPI AssocQueryStringByKeyA(ASSOCF,ASSOCSTR,HKEY,LPCSTR,LPSTR,LPDWORD);
323 HRESULT WINAPI AssocQueryStringByKeyW(ASSOCF,ASSOCSTR,HKEY,LPCWSTR,LPWSTR,LPDWORD);
324 #define AssocQueryStringByKey WINELIB_NAME_AW(AssocQueryStringByKey)
326 HRESULT WINAPI AssocQueryKeyA(ASSOCF,ASSOCKEY,LPCSTR,LPCSTR,PHKEY);
327 HRESULT WINAPI AssocQueryKeyW(ASSOCF,ASSOCKEY,LPCWSTR,LPCWSTR,PHKEY);
328 #define AssocQueryKey WINELIB_NAME_AW(AssocQueryKey)
330 BOOL WINAPI AssocIsDangerous(LPCWSTR);
332 #endif /* NO_SHLWAPI_REG */
334 void WINAPI IUnknown_Set(IUnknown **ppunk, IUnknown *punk);
335 void WINAPI IUnknown_AtomicRelease(IUnknown **punk);
336 HRESULT WINAPI IUnknown_GetWindow(IUnknown *punk, HWND *phwnd);
337 HRESULT WINAPI IUnknown_SetSite(IUnknown *punk, IUnknown *punkSite);
338 HRESULT WINAPI IUnknown_GetSite(IUnknown *punk, REFIID riid, void **ppv);
339 HRESULT WINAPI IUnknown_QueryService(IUnknown *punk, REFGUID guidService, REFIID riid, void **ppvOut);
341 /* Path functions */
342 #ifndef NO_SHLWAPI_PATH
344 /* GetPathCharType return flags */
345 #define GCT_INVALID 0x0
346 #define GCT_LFNCHAR 0x1
347 #define GCT_SHORTCHAR 0x2
348 #define GCT_WILD 0x4
349 #define GCT_SEPARATOR 0x8
351 LPSTR WINAPI PathAddBackslashA(LPSTR);
352 LPWSTR WINAPI PathAddBackslashW(LPWSTR);
353 #define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
355 BOOL WINAPI PathAddExtensionA(LPSTR,LPCSTR);
356 BOOL WINAPI PathAddExtensionW(LPWSTR,LPCWSTR);
357 #define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
359 BOOL WINAPI PathAppendA(LPSTR,LPCSTR);
360 BOOL WINAPI PathAppendW(LPWSTR,LPCWSTR);
361 #define PathAppend WINELIB_NAME_AW(PathAppend)
363 LPSTR WINAPI PathBuildRootA(LPSTR,int);
364 LPWSTR WINAPI PathBuildRootW(LPWSTR,int);
365 #define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
367 BOOL WINAPI PathCanonicalizeA(LPSTR,LPCSTR);
368 BOOL WINAPI PathCanonicalizeW(LPWSTR,LPCWSTR);
369 #define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
371 LPSTR WINAPI PathCombineA(LPSTR,LPCSTR,LPCSTR);
372 LPWSTR WINAPI PathCombineW(LPWSTR,LPCWSTR,LPCWSTR);
373 #define PathCombine WINELIB_NAME_AW(PathCombine)
375 BOOL WINAPI PathCompactPathA(HDC,LPSTR,UINT);
376 BOOL WINAPI PathCompactPathW(HDC,LPWSTR,UINT);
377 #define PathCompactPath WINELIB_NAME_AW(PathCompactPath)
379 BOOL WINAPI PathCompactPathExA(LPSTR,LPCSTR,UINT,DWORD);
380 BOOL WINAPI PathCompactPathExW(LPWSTR,LPCWSTR,UINT,DWORD);
381 #define PathCompactPathEx WINELIB_NAME_AW(PathCompactPathEx)
383 int WINAPI PathCommonPrefixA(LPCSTR,LPCSTR,LPSTR);
384 int WINAPI PathCommonPrefixW(LPCWSTR,LPCWSTR,LPWSTR);
385 #define PathCommonPrefix WINELIB_NAME_AW(PathCommonPrefix)
387 HRESULT WINAPI PathCreateFromUrlA(LPCSTR,LPSTR,LPDWORD,DWORD);
388 HRESULT WINAPI PathCreateFromUrlW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
389 #define PathCreateFromUrl WINELIB_NAME_AW(PathCreateFromUrl)
391 HRESULT WINAPI PathCreateFromUrlAlloc(LPCWSTR,LPWSTR*,DWORD);
393 BOOL WINAPI PathFileExistsA(LPCSTR);
394 BOOL WINAPI PathFileExistsW(LPCWSTR);
395 #define PathFileExists WINELIB_NAME_AW(PathFileExists)
397 BOOL WINAPI PathFileExistsAndAttributesA(LPCSTR,DWORD*);
398 BOOL WINAPI PathFileExistsAndAttributesW(LPCWSTR,DWORD*);
399 #define PathFileExistsAndAttributes WINELIB_NAME_AW(PathFileExistsAndAttributes)
401 LPSTR WINAPI PathFindExtensionA(LPCSTR);
402 LPWSTR WINAPI PathFindExtensionW(LPCWSTR);
403 #define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
405 LPSTR WINAPI PathFindFileNameA(LPCSTR);
406 LPWSTR WINAPI PathFindFileNameW(LPCWSTR);
407 #define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
409 LPSTR WINAPI PathFindNextComponentA(LPCSTR);
410 LPWSTR WINAPI PathFindNextComponentW(LPCWSTR);
411 #define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
413 BOOL WINAPI PathFindOnPathA(LPSTR,LPCSTR*);
414 BOOL WINAPI PathFindOnPathW(LPWSTR,LPCWSTR*);
415 #define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
417 LPSTR WINAPI PathGetArgsA(LPCSTR);
418 LPWSTR WINAPI PathGetArgsW(LPCWSTR);
419 #define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
421 UINT WINAPI PathGetCharTypeA(UCHAR);
422 UINT WINAPI PathGetCharTypeW(WCHAR);
423 #define PathGetCharType WINELIB_NAME_AW(PathGetCharType)
425 int WINAPI PathGetDriveNumberA(LPCSTR);
426 int WINAPI PathGetDriveNumberW(LPCWSTR);
427 #define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
429 BOOL WINAPI PathIsDirectoryA(LPCSTR);
430 BOOL WINAPI PathIsDirectoryW(LPCWSTR);
431 #define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
433 BOOL WINAPI PathIsDirectoryEmptyA(LPCSTR);
434 BOOL WINAPI PathIsDirectoryEmptyW(LPCWSTR);
435 #define PathIsDirectoryEmpty WINELIB_NAME_AW(PathIsDirectoryEmpty)
437 BOOL WINAPI PathIsFileSpecA(LPCSTR);
438 BOOL WINAPI PathIsFileSpecW(LPCWSTR);
439 #define PathIsFileSpec WINELIB_NAME_AW(PathIsFileSpec)
441 BOOL WINAPI PathIsPrefixA(LPCSTR,LPCSTR);
442 BOOL WINAPI PathIsPrefixW(LPCWSTR,LPCWSTR);
443 #define PathIsPrefix WINELIB_NAME_AW(PathIsPrefix)
445 BOOL WINAPI PathIsRelativeA(LPCSTR);
446 BOOL WINAPI PathIsRelativeW(LPCWSTR);
447 #define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
449 BOOL WINAPI PathIsRootA(LPCSTR);
450 BOOL WINAPI PathIsRootW(LPCWSTR);
451 #define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
453 BOOL WINAPI PathIsSameRootA(LPCSTR,LPCSTR);
454 BOOL WINAPI PathIsSameRootW(LPCWSTR,LPCWSTR);
455 #define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
457 BOOL WINAPI PathIsUNCA(LPCSTR);
458 BOOL WINAPI PathIsUNCW(LPCWSTR);
459 #define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
461 BOOL WINAPI PathIsUNCServerA(LPCSTR);
462 BOOL WINAPI PathIsUNCServerW(LPCWSTR);
463 #define PathIsUNCServer WINELIB_NAME_AW(PathIsUNCServer)
465 BOOL WINAPI PathIsUNCServerShareA(LPCSTR);
466 BOOL WINAPI PathIsUNCServerShareW(LPCWSTR);
467 #define PathIsUNCServerShare WINELIB_NAME_AW(PathIsUNCServerShare)
469 BOOL WINAPI PathIsContentTypeA(LPCSTR,LPCSTR);
470 BOOL WINAPI PathIsContentTypeW(LPCWSTR,LPCWSTR);
471 #define PathIsContentType WINELIB_NAME_AW(PathIsContentType)
473 BOOL WINAPI PathIsURLA(LPCSTR);
474 BOOL WINAPI PathIsURLW(LPCWSTR);
475 #define PathIsURL WINELIB_NAME_AW(PathIsURL)
477 BOOL WINAPI PathMakePrettyA(LPSTR);
478 BOOL WINAPI PathMakePrettyW(LPWSTR);
479 #define PathMakePretty WINELIB_NAME_AW(PathMakePretty)
481 BOOL WINAPI PathMatchSpecA(LPCSTR,LPCSTR);
482 BOOL WINAPI PathMatchSpecW(LPCWSTR,LPCWSTR);
483 #define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
485 int WINAPI PathParseIconLocationA(LPSTR);
486 int WINAPI PathParseIconLocationW(LPWSTR);
487 #define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
489 VOID WINAPI PathQuoteSpacesA(LPSTR);
490 VOID WINAPI PathQuoteSpacesW(LPWSTR);
491 #define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
493 BOOL WINAPI PathRelativePathToA(LPSTR,LPCSTR,DWORD,LPCSTR,DWORD);
494 BOOL WINAPI PathRelativePathToW(LPWSTR,LPCWSTR,DWORD,LPCWSTR,DWORD);
495 #define PathRelativePathTo WINELIB_NAME_AW(PathRelativePathTo)
497 VOID WINAPI PathRemoveArgsA(LPSTR);
498 VOID WINAPI PathRemoveArgsW(LPWSTR);
499 #define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
501 LPSTR WINAPI PathRemoveBackslashA(LPSTR);
502 LPWSTR WINAPI PathRemoveBackslashW(LPWSTR);
503 #define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
505 VOID WINAPI PathRemoveBlanksA(LPSTR);
506 VOID WINAPI PathRemoveBlanksW(LPWSTR);
507 #define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
509 VOID WINAPI PathRemoveExtensionA(LPSTR);
510 VOID WINAPI PathRemoveExtensionW(LPWSTR);
511 #define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
513 BOOL WINAPI PathRemoveFileSpecA(LPSTR);
514 BOOL WINAPI PathRemoveFileSpecW(LPWSTR);
515 #define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
517 BOOL WINAPI PathRenameExtensionA(LPSTR,LPCSTR);
518 BOOL WINAPI PathRenameExtensionW(LPWSTR,LPCWSTR);
519 #define PathRenameExtension WINELIB_NAME_AW(PathRenameExtension)
521 BOOL WINAPI PathSearchAndQualifyA(LPCSTR,LPSTR,UINT);
522 BOOL WINAPI PathSearchAndQualifyW(LPCWSTR,LPWSTR,UINT);
523 #define PathSearchAndQualify WINELIB_NAME_AW(PathSearchAndQualify)
525 VOID WINAPI PathSetDlgItemPathA(HWND,int,LPCSTR);
526 VOID WINAPI PathSetDlgItemPathW(HWND,int,LPCWSTR);
527 #define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
529 LPSTR WINAPI PathSkipRootA(LPCSTR);
530 LPWSTR WINAPI PathSkipRootW(LPCWSTR);
531 #define PathSkipRoot WINELIB_NAME_AW(PathSkipRoot)
533 VOID WINAPI PathStripPathA(LPSTR);
534 VOID WINAPI PathStripPathW(LPWSTR);
535 #define PathStripPath WINELIB_NAME_AW(PathStripPath)
537 BOOL WINAPI PathStripToRootA(LPSTR);
538 BOOL WINAPI PathStripToRootW(LPWSTR);
539 #define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
541 VOID WINAPI PathUnquoteSpacesA(LPSTR);
542 VOID WINAPI PathUnquoteSpacesW(LPWSTR);
543 #define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
545 BOOL WINAPI PathMakeSystemFolderA(LPCSTR);
546 BOOL WINAPI PathMakeSystemFolderW(LPCWSTR);
547 #define PathMakeSystemFolder WINELIB_NAME_AW(PathMakeSystemFolder)
549 BOOL WINAPI PathUnmakeSystemFolderA(LPCSTR);
550 BOOL WINAPI PathUnmakeSystemFolderW(LPCWSTR);
551 #define PathUnmakeSystemFolder WINELIB_NAME_AW(PathUnmakeSystemFolder)
553 BOOL WINAPI PathIsSystemFolderA(LPCSTR,DWORD);
554 BOOL WINAPI PathIsSystemFolderW(LPCWSTR,DWORD);
555 #define PathIsSystemFolder WINELIB_NAME_AW(PathIsSystemFolder)
557 BOOL WINAPI PathIsNetworkPathA(LPCSTR);
558 BOOL WINAPI PathIsNetworkPathW(LPCWSTR);
559 #define PathIsNetworkPath WINELIB_NAME_AW(PathIsNetworkPath)
561 BOOL WINAPI PathIsLFNFileSpecA(LPCSTR);
562 BOOL WINAPI PathIsLFNFileSpecW(LPCWSTR);
563 #define PathIsLFNFileSpec WINELIB_NAME_AW(PathIsLFNFileSpec)
565 LPCSTR WINAPI PathFindSuffixArrayA(LPCSTR,LPCSTR *,int);
566 LPCWSTR WINAPI PathFindSuffixArrayW(LPCWSTR,LPCWSTR *,int);
567 #define PathFindSuffixArray WINELIB_NAME_AW(PathFindSuffixArray)
569 VOID WINAPI PathUndecorateA(LPSTR);
570 VOID WINAPI PathUndecorateW(LPWSTR);
571 #define PathUndecorate WINELIB_NAME_AW(PathUndecorate)
573 BOOL WINAPI PathUnExpandEnvStringsA(LPCSTR,LPSTR,UINT);
574 BOOL WINAPI PathUnExpandEnvStringsW(LPCWSTR,LPWSTR,UINT);
575 #define PathUnExpandEnvStrings WINELIB_NAME_AW(PathUnExpandEnvStrings)
577 /* Url functions */
578 typedef enum {
579 URL_SCHEME_INVALID = -1,
580 URL_SCHEME_UNKNOWN = 0,
581 URL_SCHEME_FTP,
582 URL_SCHEME_HTTP,
583 URL_SCHEME_GOPHER,
584 URL_SCHEME_MAILTO,
585 URL_SCHEME_NEWS,
586 URL_SCHEME_NNTP,
587 URL_SCHEME_TELNET,
588 URL_SCHEME_WAIS,
589 URL_SCHEME_FILE,
590 URL_SCHEME_MK,
591 URL_SCHEME_HTTPS,
592 URL_SCHEME_SHELL,
593 URL_SCHEME_SNEWS,
594 URL_SCHEME_LOCAL,
595 URL_SCHEME_JAVASCRIPT,
596 URL_SCHEME_VBSCRIPT,
597 URL_SCHEME_ABOUT,
598 URL_SCHEME_RES,
599 URL_SCHEME_MSSHELLROOTED,
600 URL_SCHEME_MSSHELLIDLIST,
601 URL_SCHEME_MSHELP,
602 URL_SCHEME_MSSHELLDEVICE,
603 URL_SCHEME_WILDCARD,
604 URL_SCHEME_SEARCH_MS,
605 URL_SCHEME_SEARCH,
606 URL_SCHEME_KNOWNFOLDER,
607 URL_SCHEME_MAXVALUE
608 } URL_SCHEME;
610 /* These are used by UrlGetPart routine */
611 typedef enum {
612 URL_PART_NONE = 0,
613 URL_PART_SCHEME = 1,
614 URL_PART_HOSTNAME,
615 URL_PART_USERNAME,
616 URL_PART_PASSWORD,
617 URL_PART_PORT,
618 URL_PART_QUERY
619 } URL_PART;
621 #define URL_PARTFLAG_KEEPSCHEME 0x00000001
623 /* These are used by the UrlIs... routines */
624 typedef enum {
625 URLIS_URL,
626 URLIS_OPAQUE,
627 URLIS_NOHISTORY,
628 URLIS_FILEURL,
629 URLIS_APPLIABLE,
630 URLIS_DIRECTORY,
631 URLIS_HASQUERY
632 } URLIS;
634 /* This is used by the UrlApplyScheme... routines */
635 #define URL_APPLY_FORCEAPPLY 0x00000008
636 #define URL_APPLY_GUESSFILE 0x00000004
637 #define URL_APPLY_GUESSSCHEME 0x00000002
638 #define URL_APPLY_DEFAULT 0x00000001
640 /* The following are used by UrlEscape..., UrlUnEscape...,
641 * UrlCanonicalize..., and UrlCombine... routines
643 #define URL_WININET_COMPATIBILITY 0x80000000
644 #define URL_PLUGGABLE_PROTOCOL 0x40000000
645 #define URL_ESCAPE_UNSAFE 0x20000000
646 #define URL_UNESCAPE 0x10000000
648 #define URL_DONT_SIMPLIFY 0x08000000
649 #define URL_NO_META URL_DONT_SIMPLIFY
650 #define URL_ESCAPE_SPACES_ONLY 0x04000000
651 #define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000
652 #define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
653 #define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO
655 #define URL_INTERNAL_PATH 0x00800000 /* Will escape #'s in paths */
656 #define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000
657 #define URL_CONVERT_IF_DOSPATH 0x00200000
658 #define URL_UNESCAPE_INPLACE 0x00100000
660 #define URL_FILE_USE_PATHURL 0x00010000
661 #define URL_ESCAPE_AS_UTF8 0x00040000
663 #define URL_ESCAPE_SEGMENT_ONLY 0x00002000
664 #define URL_ESCAPE_PERCENT 0x00001000
666 HRESULT WINAPI UrlApplySchemeA(LPCSTR,LPSTR,LPDWORD,DWORD);
667 HRESULT WINAPI UrlApplySchemeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
668 #define UrlApplyScheme WINELIB_NAME_AW(UrlApplyScheme)
670 HRESULT WINAPI UrlCanonicalizeA(LPCSTR,LPSTR,LPDWORD,DWORD);
671 HRESULT WINAPI UrlCanonicalizeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
672 #define UrlCanonicalize WINELIB_NAME_AW(UrlCanonicalize)
674 HRESULT WINAPI UrlCombineA(LPCSTR,LPCSTR,LPSTR,LPDWORD,DWORD);
675 HRESULT WINAPI UrlCombineW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,DWORD);
676 #define UrlCombine WINELIB_NAME_AW(UrlCombine)
678 INT WINAPI UrlCompareA(LPCSTR,LPCSTR,BOOL);
679 INT WINAPI UrlCompareW(LPCWSTR,LPCWSTR,BOOL);
680 #define UrlCompare WINELIB_NAME_AW(UrlCompare)
682 HRESULT WINAPI UrlEscapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
683 HRESULT WINAPI UrlEscapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
684 #define UrlEscape WINELIB_NAME_AW(UrlEscape)
686 #define UrlEscapeSpacesA(x,y,z) UrlCanonicalizeA(x, y, z, \
687 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
688 #define UrlEscapeSpacesW(x,y,z) UrlCanonicalizeW(x, y, z, \
689 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
690 #define UrlEscapeSpaces WINELIB_NAME_AW(UrlEscapeSpaces)
692 LPCSTR WINAPI UrlGetLocationA(LPCSTR);
693 LPCWSTR WINAPI UrlGetLocationW(LPCWSTR);
694 #define UrlGetLocation WINELIB_NAME_AW(UrlGetLocation)
696 HRESULT WINAPI UrlGetPartA(LPCSTR,LPSTR,LPDWORD,DWORD,DWORD);
697 HRESULT WINAPI UrlGetPartW(LPCWSTR,LPWSTR,LPDWORD,DWORD,DWORD);
698 #define UrlGetPart WINELIB_NAME_AW(UrlGetPart)
700 HRESULT WINAPI HashData(const unsigned char *,DWORD,unsigned char *lpDest,DWORD);
702 HRESULT WINAPI UrlHashA(LPCSTR,unsigned char *,DWORD);
703 HRESULT WINAPI UrlHashW(LPCWSTR,unsigned char *,DWORD);
704 #define UrlHash WINELIB_NAME_AW(UrlHash)
706 BOOL WINAPI UrlIsA(LPCSTR,URLIS);
707 BOOL WINAPI UrlIsW(LPCWSTR,URLIS);
708 #define UrlIs WINELIB_NAME_AW(UrlIs)
710 BOOL WINAPI UrlIsNoHistoryA(LPCSTR);
711 BOOL WINAPI UrlIsNoHistoryW(LPCWSTR);
712 #define UrlIsNoHistory WINELIB_NAME_AW(UrlIsNoHistory)
714 BOOL WINAPI UrlIsOpaqueA(LPCSTR);
715 BOOL WINAPI UrlIsOpaqueW(LPCWSTR);
716 #define UrlIsOpaque WINELIB_NAME_AW(UrlIsOpaque)
718 #define UrlIsFileUrlA(x) UrlIsA(x, URLIS_FILEURL)
719 #define UrlIsFileUrlW(x) UrlIsW(x, URLIS_FILEURL)
720 #define UrlIsFileUrl WINELIB_NAME_AW(UrlIsFileUrl)
722 HRESULT WINAPI UrlUnescapeA(LPSTR,LPSTR,LPDWORD,DWORD);
723 HRESULT WINAPI UrlUnescapeW(LPWSTR,LPWSTR,LPDWORD,DWORD);
724 #define UrlUnescape WINELIB_NAME_AW(UrlUnescape)
726 #define UrlUnescapeInPlaceA(x,y) UrlUnescapeA(x, NULL, NULL, \
727 y | URL_UNESCAPE_INPLACE)
728 #define UrlUnescapeInPlaceW(x,y) UrlUnescapeW(x, NULL, NULL, \
729 y | URL_UNESCAPE_INPLACE)
730 #define UrlUnescapeInPlace WINELIB_NAME_AW(UrlUnescapeInPlace)
732 HRESULT WINAPI UrlCreateFromPathA(LPCSTR,LPSTR,LPDWORD,DWORD);
733 HRESULT WINAPI UrlCreateFromPathW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
734 #define UrlCreateFromPath WINELIB_NAME_AW(UrlCreateFromPath)
736 typedef struct tagPARSEDURLA {
737 DWORD cbSize;
738 LPCSTR pszProtocol;
739 UINT cchProtocol;
740 LPCSTR pszSuffix;
741 UINT cchSuffix;
742 UINT nScheme;
743 } PARSEDURLA, *PPARSEDURLA;
745 typedef struct tagPARSEDURLW {
746 DWORD cbSize;
747 LPCWSTR pszProtocol;
748 UINT cchProtocol;
749 LPCWSTR pszSuffix;
750 UINT cchSuffix;
751 UINT nScheme;
752 } PARSEDURLW, *PPARSEDURLW;
754 HRESULT WINAPI ParseURLA(LPCSTR pszUrl, PARSEDURLA *ppu);
755 HRESULT WINAPI ParseURLW(LPCWSTR pszUrl, PARSEDURLW *ppu);
756 #define ParseURL WINELIB_NAME_AW(ParseUrl)
758 #endif /* NO_SHLWAPI_PATH */
761 /* String functions */
762 #ifndef NO_SHLWAPI_STRFCNS
764 /* StrToIntEx flags */
765 #define STIF_DEFAULT __MSABI_LONG(0x0)
766 #define STIF_SUPPORT_HEX __MSABI_LONG(0x1)
768 BOOL WINAPI ChrCmpIA (WORD,WORD);
769 BOOL WINAPI ChrCmpIW (WCHAR,WCHAR);
770 #define ChrCmpI WINELIB_NAME_AW(ChrCmpI)
772 INT WINAPI StrCSpnA(LPCSTR,LPCSTR);
773 INT WINAPI StrCSpnW(LPCWSTR,LPCWSTR);
774 #define StrCSpn WINELIB_NAME_AW(StrCSpn)
776 INT WINAPI StrCSpnIA(LPCSTR,LPCSTR);
777 INT WINAPI StrCSpnIW(LPCWSTR,LPCWSTR);
778 #define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
780 #define StrCatA lstrcatA
781 LPWSTR WINAPI StrCatW(LPWSTR,LPCWSTR);
782 #define StrCat WINELIB_NAME_AW(StrCat)
784 LPSTR WINAPI StrCatBuffA(LPSTR,LPCSTR,INT);
785 LPWSTR WINAPI StrCatBuffW(LPWSTR,LPCWSTR,INT);
786 #define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
788 DWORD WINAPI StrCatChainW(LPWSTR,DWORD,DWORD,LPCWSTR);
790 LPSTR WINAPI StrChrA(LPCSTR,WORD);
791 LPWSTR WINAPI StrChrW(LPCWSTR,WCHAR);
792 #define StrChr WINELIB_NAME_AW(StrChr)
794 LPSTR WINAPI StrChrIA(LPCSTR,WORD);
795 LPWSTR WINAPI StrChrIW(LPCWSTR,WCHAR);
796 #define StrChrI WINELIB_NAME_AW(StrChrI)
798 #define StrCmpA lstrcmpA
799 int WINAPI StrCmpW(LPCWSTR,LPCWSTR);
800 #define StrCmp WINELIB_NAME_AW(StrCmp)
802 #define StrCmpIA lstrcmpiA
803 int WINAPI StrCmpIW(LPCWSTR,LPCWSTR);
804 #define StrCmpI WINELIB_NAME_AW(StrCmpI)
806 #define StrCpyA lstrcpyA
807 LPWSTR WINAPI StrCpyW(LPWSTR,LPCWSTR);
808 #define StrCpy WINELIB_NAME_AW(StrCpy)
810 #define StrCpyNA lstrcpynA
811 LPWSTR WINAPI StrCpyNW(LPWSTR,LPCWSTR,int);
812 #define StrCpyN WINELIB_NAME_AW(StrCpyN)
813 #define StrNCpy WINELIB_NAME_AW(StrCpyN)
815 INT WINAPI StrCmpLogicalW(LPCWSTR,LPCWSTR);
817 INT WINAPI StrCmpNA(LPCSTR,LPCSTR,INT);
818 INT WINAPI StrCmpNW(LPCWSTR,LPCWSTR,INT);
819 #define StrCmpN WINELIB_NAME_AW(StrCmpN)
820 #define StrNCmp WINELIB_NAME_AW(StrCmpN)
822 INT WINAPI StrCmpNIA(LPCSTR,LPCSTR,INT);
823 INT WINAPI StrCmpNIW(LPCWSTR,LPCWSTR,INT);
824 #define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
825 #define StrNCmpI WINELIB_NAME_AW(StrCmpNI)
827 LPSTR WINAPI StrDupA(LPCSTR);
828 LPWSTR WINAPI StrDupW(LPCWSTR);
829 #define StrDup WINELIB_NAME_AW(StrDup)
831 HRESULT WINAPI SHStrDupA(LPCSTR,WCHAR**);
832 HRESULT WINAPI SHStrDupW(LPCWSTR,WCHAR**);
833 #define SHStrDup WINELIB_NAME_AW(SHStrDup)
835 LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
837 /* A/W Pairing is broken for this function */
838 LPSTR WINAPI StrFormatByteSize64A (LONGLONG,LPSTR,UINT);
839 LPWSTR WINAPI StrFormatByteSizeW (LONGLONG,LPWSTR,UINT);
840 #ifndef WINE_NO_UNICODE_MACROS
841 #ifdef UNICODE
842 #define StrFormatByteSize StrFormatByteSizeW
843 #else
844 #define StrFormatByteSize StrFormatByteSize64A
845 #endif
846 #endif
848 LPSTR WINAPI StrFormatKBSizeA(LONGLONG,LPSTR,UINT);
849 LPWSTR WINAPI StrFormatKBSizeW(LONGLONG,LPWSTR,UINT);
850 #define StrFormatKBSize WINELIB_NAME_AW(StrFormatKBSize)
852 int WINAPI StrFromTimeIntervalA(LPSTR,UINT,DWORD,int);
853 int WINAPI StrFromTimeIntervalW(LPWSTR,UINT,DWORD,int);
854 #define StrFromTimeInterval WINELIB_NAME_AW(StrFromTimeInterval)
856 BOOL WINAPI StrIsIntlEqualA(BOOL,LPCSTR,LPCSTR,int);
857 BOOL WINAPI StrIsIntlEqualW(BOOL,LPCWSTR,LPCWSTR,int);
858 #define StrIsIntlEqual WINELIB_NAME_AW(StrIsIntlEqual)
860 #define StrIntlEqNA(a,b,c) StrIsIntlEqualA(TRUE,a,b,c)
861 #define StrIntlEqNW(a,b,c) StrIsIntlEqualW(TRUE,a,b,c)
863 #define StrIntlEqNIA(a,b,c) StrIsIntlEqualA(FALSE,a,b,c)
864 #define StrIntlEqNIW(a,b,c) StrIsIntlEqualW(FALSE,a,b,c)
866 LPSTR WINAPI StrNCatA(LPSTR,LPCSTR,int);
867 LPWSTR WINAPI StrNCatW(LPWSTR,LPCWSTR,int);
868 #define StrNCat WINELIB_NAME_AW(StrNCat)
869 #define StrCatN WINELIB_NAME_AW(StrNCat)
871 LPSTR WINAPI StrPBrkA(LPCSTR,LPCSTR);
872 LPWSTR WINAPI StrPBrkW(LPCWSTR,LPCWSTR);
873 #define StrPBrk WINELIB_NAME_AW(StrPBrk)
875 LPSTR WINAPI StrRChrA(LPCSTR,LPCSTR,WORD);
876 LPWSTR WINAPI StrRChrW(LPCWSTR,LPCWSTR,WORD);
877 #define StrRChr WINELIB_NAME_AW(StrRChr)
879 LPSTR WINAPI StrRChrIA(LPCSTR,LPCSTR,WORD);
880 LPWSTR WINAPI StrRChrIW(LPCWSTR,LPCWSTR,WORD);
881 #define StrRChrI WINELIB_NAME_AW(StrRChrI)
883 LPSTR WINAPI StrRStrIA(LPCSTR,LPCSTR,LPCSTR);
884 LPWSTR WINAPI StrRStrIW(LPCWSTR,LPCWSTR,LPCWSTR);
885 #define StrRStrI WINELIB_NAME_AW(StrRStrI)
887 int WINAPI StrSpnA(LPCSTR,LPCSTR);
888 int WINAPI StrSpnW(LPCWSTR,LPCWSTR);
889 #define StrSpn WINELIB_NAME_AW(StrSpn)
891 LPSTR WINAPI StrStrA(LPCSTR,LPCSTR);
892 LPWSTR WINAPI StrStrW(LPCWSTR,LPCWSTR);
893 #define StrStr WINELIB_NAME_AW(StrStr)
895 LPSTR WINAPI StrStrIA(LPCSTR,LPCSTR);
896 LPWSTR WINAPI StrStrIW(LPCWSTR,LPCWSTR);
897 #define StrStrI WINELIB_NAME_AW(StrStrI)
899 LPWSTR WINAPI StrStrNW(LPCWSTR,LPCWSTR,UINT);
900 LPWSTR WINAPI StrStrNIW(LPCWSTR,LPCWSTR,UINT);
902 int WINAPI StrToIntA(LPCSTR);
903 int WINAPI StrToIntW(LPCWSTR);
904 #define StrToInt WINELIB_NAME_AW(StrToInt)
905 #define StrToLong WINELIB_NAME_AW(StrToInt)
907 BOOL WINAPI StrToIntExA(LPCSTR,DWORD,int*);
908 BOOL WINAPI StrToIntExW(LPCWSTR,DWORD,int*);
909 #define StrToIntEx WINELIB_NAME_AW(StrToIntEx)
911 BOOL WINAPI StrToInt64ExA(LPCSTR,DWORD,LONGLONG*);
912 BOOL WINAPI StrToInt64ExW(LPCWSTR,DWORD,LONGLONG*);
913 #define StrToIntEx64 WINELIB_NAME_AW(StrToIntEx64)
915 BOOL WINAPI StrTrimA(LPSTR,LPCSTR);
916 BOOL WINAPI StrTrimW(LPWSTR,LPCWSTR);
917 #define StrTrim WINELIB_NAME_AW(StrTrim)
919 INT WINAPI wvnsprintfA(LPSTR,INT,LPCSTR,__ms_va_list);
920 INT WINAPI wvnsprintfW(LPWSTR,INT,LPCWSTR,__ms_va_list);
921 #define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
923 INT WINAPIV wnsprintfA(LPSTR,INT,LPCSTR, ...);
924 INT WINAPIV wnsprintfW(LPWSTR,INT,LPCWSTR, ...);
925 #define wnsprintf WINELIB_NAME_AW(wnsprintf)
927 HRESULT WINAPI SHLoadIndirectString(LPCWSTR,LPWSTR,UINT,PVOID*);
929 BOOL WINAPI IntlStrEqWorkerA(BOOL,LPCSTR,LPCSTR,int);
930 BOOL WINAPI IntlStrEqWorkerW(BOOL,LPCWSTR,LPCWSTR,int);
931 #define IntlStrEqWorker WINELIB_NAME_AW(IntlStrEqWorker)
933 #define IntlStrEqNA(s1,s2,n) IntlStrEqWorkerA(TRUE,s1,s2,n)
934 #define IntlStrEqNW(s1,s2,n) IntlStrEqWorkerW(TRUE,s1,s2,n)
935 #define IntlStrEqN WINELIB_NAME_AW(IntlStrEqN)
937 #define IntlStrEqNIA(s1,s2,n) IntlStrEqWorkerA(FALSE,s1,s2,n)
938 #define IntlStrEqNIW(s1,s2,n) IntlStrEqWorkerW(FALSE,s1,s2,n)
939 #define IntlStrEqNI WINELIB_NAME_AW(IntlStrEqNI)
941 HRESULT WINAPI StrRetToStrA(STRRET*,LPCITEMIDLIST,LPSTR*);
942 HRESULT WINAPI StrRetToStrW(STRRET*,LPCITEMIDLIST,LPWSTR*);
943 #define StrRetToStr WINELIB_NAME_AW(StrRetToStr)
945 HRESULT WINAPI StrRetToBufA(STRRET*,LPCITEMIDLIST,LPSTR,UINT);
946 HRESULT WINAPI StrRetToBufW(STRRET*,LPCITEMIDLIST,LPWSTR,UINT);
947 #define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
949 HRESULT WINAPI StrRetToBSTR(STRRET*,LPCITEMIDLIST,BSTR*);
951 BOOL WINAPI IsCharSpaceA(CHAR);
952 BOOL WINAPI IsCharSpaceW(WCHAR);
953 #define IsCharSpace WINELIB_NAME_AW(IsCharSpace)
955 #endif /* NO_SHLWAPI_STRFCNS */
958 /* GDI functions */
959 #ifndef NO_SHLWAPI_GDI
961 HPALETTE WINAPI SHCreateShellPalette(HDC);
963 COLORREF WINAPI ColorHLSToRGB(WORD,WORD,WORD);
965 COLORREF WINAPI ColorAdjustLuma(COLORREF,int,BOOL);
967 VOID WINAPI ColorRGBToHLS(COLORREF,LPWORD,LPWORD,LPWORD);
969 #endif /* NO_SHLWAPI_GDI */
971 /* Security functions */
972 BOOL WINAPI IsInternetESCEnabled(void);
974 /* Stream functions */
975 #ifndef NO_SHLWAPI_STREAM
977 struct IStream * WINAPI SHOpenRegStreamA(HKEY,LPCSTR,LPCSTR,DWORD);
978 struct IStream * WINAPI SHOpenRegStreamW(HKEY,LPCWSTR,LPCWSTR,DWORD);
979 #define SHOpenRegStream WINELIB_NAME_AW(SHOpenRegStream2) /* Uses version 2 */
981 struct IStream * WINAPI SHOpenRegStream2A(HKEY,LPCSTR,LPCSTR,DWORD);
982 struct IStream * WINAPI SHOpenRegStream2W(HKEY,LPCWSTR,LPCWSTR,DWORD);
983 #define SHOpenRegStream2 WINELIB_NAME_AW(SHOpenRegStream2)
985 HRESULT WINAPI SHCreateStreamOnFileA(LPCSTR,DWORD,struct IStream**);
986 HRESULT WINAPI SHCreateStreamOnFileW(LPCWSTR,DWORD,struct IStream**);
987 #define SHCreateStreamOnFile WINELIB_NAME_AW(SHCreateStreamOnFile)
989 struct IStream * WINAPI SHCreateMemStream(const BYTE*,UINT);
990 HRESULT WINAPI SHCreateStreamOnFileEx(LPCWSTR,DWORD,DWORD,BOOL,struct IStream*,struct IStream**);
991 HRESULT WINAPI SHCreateStreamWrapper(LPBYTE,DWORD,DWORD,struct IStream**);
993 #endif /* NO_SHLWAPI_STREAM */
995 HRESULT WINAPI IStream_Reset(IStream*);
996 HRESULT WINAPI IStream_Size(IStream*,ULARGE_INTEGER*);
998 /* SHAutoComplete flags */
999 #define SHACF_DEFAULT 0x00000000
1000 #define SHACF_FILESYSTEM 0x00000001
1001 #define SHACF_URLHISTORY 0x00000002
1002 #define SHACF_URLMRU 0x00000004
1003 #define SHACF_URLALL (SHACF_URLHISTORY|SHACF_URLMRU)
1004 #define SHACF_USETAB 0x00000008
1005 #define SHACF_FILESYS_ONLY 0x00000010
1006 #define SHACF_FILESYS_DIRS 0x00000020
1007 #define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000
1008 #define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000
1009 #define SHACF_AUTOAPPEND_FORCE_ON 0x40000000
1010 #define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000
1012 HRESULT WINAPI SHAutoComplete(HWND,DWORD);
1014 /* Threads */
1015 HRESULT WINAPI SHCreateThreadRef(LONG*, IUnknown**);
1016 HRESULT WINAPI SHGetThreadRef(IUnknown**);
1017 HRESULT WINAPI SHSetThreadRef(IUnknown*);
1018 HRESULT WINAPI SHReleaseThreadRef(void);
1020 /* SHCreateThread flags */
1021 enum
1023 CTF_INSIST = 0x00000001, /* Always call */
1024 CTF_THREAD_REF = 0x00000002, /* Hold thread ref */
1025 CTF_PROCESS_REF = 0x00000004, /* Hold process ref */
1026 CTF_COINIT_STA = 0x00000008,
1027 CTF_COINIT = 0x00000008, /* Startup COM first */
1028 CTF_FREELIBANDEXIT = 0x00000010, /* Hold DLL ref */
1029 CTF_REF_COUNTED = 0x00000020, /* Thread is ref counted */
1030 CTF_WAIT_ALLOWCOM = 0x00000040, /* Allow marshalling */
1031 CTF_UNUSED = 0x00000080,
1032 CTF_INHERITWOW64 = 0x00000100,
1033 CTF_WAIT_NO_REENTRACY = 0x00000200,
1034 CTF_KEYBOARD_LOCALE = 0x00000400,
1035 CTF_OLEINITIALIZE = 0x00000800,
1036 CTF_COINIT_MTA = 0x00001000,
1037 CTF_NOADDREFLIB = 0x00002000,
1040 BOOL WINAPI SHCreateThread(LPTHREAD_START_ROUTINE,void*,DWORD,LPTHREAD_START_ROUTINE);
1042 BOOL WINAPI SHSkipJunction(struct IBindCtx*,const CLSID*);
1044 /* Version Information */
1046 typedef struct _DllVersionInfo {
1047 DWORD cbSize;
1048 DWORD dwMajorVersion;
1049 DWORD dwMinorVersion;
1050 DWORD dwBuildNumber;
1051 DWORD dwPlatformID;
1052 } DLLVERSIONINFO;
1054 #define DLLVER_PLATFORM_WINDOWS 0x01 /* Win9x */
1055 #define DLLVER_PLATFORM_NT 0x02 /* WinNT */
1057 typedef HRESULT (CALLBACK *DLLGETVERSIONPROC)(DLLVERSIONINFO *);
1059 #ifdef __WINESRC__
1060 /* shouldn't be here, but is nice for type checking */
1061 HRESULT WINAPI DllGetVersion(DLLVERSIONINFO *) DECLSPEC_HIDDEN;
1062 #endif
1064 typedef struct _DLLVERSIONINFO2 {
1065 DLLVERSIONINFO info1;
1066 DWORD dwFlags; /* Reserved */
1067 ULONGLONG DECLSPEC_ALIGN(8) ullVersion; /* 16 bits each for Major, Minor, Build, QFE */
1068 } DLLVERSIONINFO2;
1070 #define DLLVER_MAJOR_MASK 0xFFFF000000000000
1071 #define DLLVER_MINOR_MASK 0x0000FFFF00000000
1072 #define DLLVER_BUILD_MASK 0x00000000FFFF0000
1073 #define DLLVER_QFE_MASK 0x000000000000FFFF
1075 #define MAKEDLLVERULL(mjr, mnr, bld, qfe) (((ULONGLONG)(mjr)<< 48)| \
1076 ((ULONGLONG)(mnr)<< 32) | ((ULONGLONG)(bld)<< 16) | (ULONGLONG)(qfe))
1078 HRESULT WINAPI DllInstall(BOOL,LPCWSTR) DECLSPEC_HIDDEN;
1081 /* IsOS definitions */
1083 #define OS_WIN32SORGREATER 0x00
1084 #define OS_NT 0x01
1085 #define OS_WIN95ORGREATER 0x02
1086 #define OS_NT4ORGREATER 0x03
1087 #define OS_WIN2000ORGREATER_ALT 0x04
1088 #define OS_WIN98ORGREATER 0x05
1089 #define OS_WIN98_GOLD 0x06
1090 #define OS_WIN2000ORGREATER 0x07
1091 #define OS_WIN2000PRO 0x08
1092 #define OS_WIN2000SERVER 0x09
1093 #define OS_WIN2000ADVSERVER 0x0A
1094 #define OS_WIN2000DATACENTER 0x0B
1095 #define OS_WIN2000TERMINAL 0x0C
1096 #define OS_EMBEDDED 0x0D
1097 #define OS_TERMINALCLIENT 0x0E
1098 #define OS_TERMINALREMOTEADMIN 0x0F
1099 #define OS_WIN95_GOLD 0x10
1100 #define OS_MEORGREATER 0x11
1101 #define OS_XPORGREATER 0x12
1102 #define OS_HOME 0x13
1103 #define OS_PROFESSIONAL 0x14
1104 #define OS_DATACENTER 0x15
1105 #define OS_ADVSERVER 0x16
1106 #define OS_SERVER 0x17
1107 #define OS_TERMINALSERVER 0x18
1108 #define OS_PERSONALTERMINALSERVER 0x19
1109 #define OS_FASTUSERSWITCHING 0x1A
1110 #define OS_WELCOMELOGONUI 0x1B
1111 #define OS_DOMAINMEMBER 0x1C
1112 #define OS_ANYSERVER 0x1D
1113 #define OS_WOW6432 0x1E
1114 #define OS_WEBSERVER 0x1F
1115 #define OS_SMALLBUSINESSSERVER 0x20
1116 #define OS_TABLETPC 0x21
1117 #define OS_SERVERADMINUI 0x22
1118 #define OS_MEDIACENTER 0x23
1119 #define OS_APPLIANCE 0x24
1121 BOOL WINAPI IsOS(DWORD);
1123 /* SHSetTimerQueueTimer definitions */
1124 #define TPS_EXECUTEIO 0x00000001
1125 #define TPS_LONGEXECTIME 0x00000008
1127 /* SHFormatDateTimeA/SHFormatDateTimeW flags */
1128 #define FDTF_SHORTTIME 0x00000001
1129 #define FDTF_SHORTDATE 0x00000002
1130 #define FDTF_DEFAULT (FDTF_SHORTDATE | FDTF_SHORTTIME)
1131 #define FDTF_LONGDATE 0x00000004
1132 #define FDTF_LONGTIME 0x00000008
1133 #define FDTF_RELATIVE 0x00000010
1134 #define FDTF_LTRDATE 0x00000100
1135 #define FDTF_RTLDATE 0x00000200
1136 #define FDTF_NOAUTOREADINGORDER 0x00000400
1138 int WINAPI SHFormatDateTimeA(const FILETIME UNALIGNED *filetime, DWORD *flags, LPSTR buffer, UINT size);
1139 int WINAPI SHFormatDateTimeW(const FILETIME UNALIGNED *filetime, DWORD *flags, LPWSTR buffer, UINT size);
1141 typedef struct
1143 const IID *piid;
1144 DWORD dwOffset;
1145 } QITAB, *LPQITAB;
1147 HRESULT WINAPI QISearch(void* base, const QITAB *pqit, REFIID riid, void **ppv);
1149 #define PLATFORM_UNKNOWN 0
1150 #define PLATFORM_IE3 1
1151 #define PLATFORM_BROWSERONLY 1
1152 #define PLATFORM_INTEGRATED 2
1154 UINT WINAPI WhichPlatform(void);
1156 #define SHGVSPB_PERUSER 0x00000001
1157 #define SHGVSPB_ALLUSERS 0x00000002
1158 #define SHGVSPB_PERFOLDER 0x00000004
1159 #define SHGVSPB_ALLFOLDERS 0x00000008
1160 #define SHGVSPB_INHERIT 0x00000010
1161 #define SHGVSPB_ROAM 0x00000020
1162 #define SHGVSPB_NOAUTODEFAULTS 0x80000000
1163 #define SHGVSPB_FOLDER (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER)
1164 #define SHGVSPB_FOLDERNODEFAULTS (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS)
1165 #define SHGVSPB_USERDEFAULTS (SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS)
1166 #define SHGVSPB_GLOBALDEFAULTS (SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS)
1168 HRESULT WINAPI SHGetViewStatePropertyBag(PCIDLIST_ABSOLUTE pidl, PCWSTR bagname, DWORD flags, REFIID riid, void **ppv);
1170 #define ILMM_IE4 0
1172 BOOL WINAPI SHIsLowMemoryMachine(DWORD type);
1174 #include <poppack.h>
1176 #ifdef __cplusplus
1177 } /* extern "C" */
1178 #endif /* defined(__cplusplus) */
1180 #endif /* __WINE_SHLWAPI_H */