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