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