Add exclusion defs & remaining funcs, remove internal types &
[wine/hacks.git] / include / shlwapi.h
blobee454e9a8bd2b2b3ff8c89ec81a9498b4a557d04
1 /*
2 * SHLWAPI.DLL functions
3 */
4 #ifndef __WINE_SHLWAPI_H
5 #define __WINE_SHLWAPI_H
7 #ifdef __cplusplus
8 extern "C" {
9 #endif /* defined(__cplusplus) */
11 #ifndef NO_SHLWAPI_REG
13 /* Registry functions */
15 DWORD WINAPI SHDeleteEmptyKeyA(HKEY,LPCSTR);
16 DWORD WINAPI SHDeleteEmptyKeyW(HKEY,LPCWSTR);
17 #define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
19 DWORD WINAPI SHDeleteKeyA(HKEY,LPCSTR);
20 DWORD WINAPI SHDeleteKeyW(HKEY,LPCWSTR);
21 #define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
23 DWORD WINAPI SHDeleteValueA(HKEY,LPCSTR,LPCSTR);
24 DWORD WINAPI SHDeleteValueW(HKEY,LPCWSTR,LPCWSTR);
25 #define SHDeleteValue WINELIB_NAME_AW(SHDeleteValue)
27 DWORD WINAPI SHGetValueA(HKEY,LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD);
28 DWORD WINAPI SHGetValueW(HKEY,LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD);
29 #define SHGetValue WINELIB_NAME_AW(SHGetValue)
31 DWORD WINAPI SHSetValueA(HKEY,LPCSTR,LPCSTR,DWORD,LPCVOID,DWORD);
32 DWORD WINAPI SHSetValueW(HKEY,LPCWSTR,LPCWSTR,DWORD,LPCVOID,DWORD);
33 #define SHSetValue WINELIB_NAME_AW(SHSetValue)
35 DWORD WINAPI SHQueryValueExA(HKEY,LPCSTR,LPDWORD,LPDWORD,LPBYTE, LPDWORD);
36 DWORD WINAPI SHQueryValueExW(HKEY,LPCWSTR,LPDWORD,LPDWORD,LPVOID, LPDWORD);
37 #define SHQueryValueEx WINELIB_NAME_AW(SHQueryValueEx)
39 LONG WINAPI SHEnumKeyExA(HKEY,DWORD,LPSTR,LPDWORD);
40 LONG WINAPI SHEnumKeyExW(HKEY,DWORD,LPWSTR,LPDWORD);
41 #define SHEnumKeyEx WINELIB_NAME_AW(SHEnumKeyEx)
43 LONG WINAPI SHEnumValueA(HKEY,DWORD,LPSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
44 LONG WINAPI SHEnumValueW(HKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,LPVOID,LPDWORD);
45 #define SHEnumValue WINELIB_NAME_AW(SHEnumValue)
47 LONG WINAPI SHQueryInfoKeyA(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
48 LONG WINAPI SHQueryInfoKeyW(HKEY,LPDWORD,LPDWORD,LPDWORD,LPDWORD);
49 #define SHQueryInfoKey WINELIB_NAME_AW(SHQueryInfoKey)
51 DWORD WINAPI SHRegGetPathA(HKEY,LPCSTR,LPCSTR,LPSTR,DWORD);
52 DWORD WINAPI SHRegGetPathW(HKEY,LPCWSTR,LPCWSTR,LPWSTR,DWORD);
53 #define SHRegGetPath WINELIB_NAME_AW(SHRegGetPath)
55 DWORD WINAPI SHRegSetPathA(HKEY,LPCSTR,LPCSTR,LPCSTR,DWORD);
56 DWORD WINAPI SHRegSetPathW(HKEY,LPCWSTR,LPCWSTR,LPCWSTR,DWORD);
57 #define SHRegSetPath WINELIB_NAME_AW(SHRegSetPath)
59 DWORD WINAPI SHCopyKeyA(HKEY,LPCSTR,HKEY,DWORD);
60 DWORD WINAPI SHCopyKeyW(HKEY,LPCWSTR,HKEY,DWORD);
61 #define SHCopyKey WINELIB_NAME_AW(SHCopyKey)
63 /* Undocumented registry functions */
65 HKEY WINAPI SHRegDuplicateHKey(HKEY hKey);
67 /* FIXME: SHDeleteOrphanKey */
70 /* User registry functions */
72 typedef enum
74 SHREGDEL_DEFAULT = 0,
75 SHREGDEL_HKCU = 0x1,
76 SHREGDEL_HKLM = 0x10,
77 SHREGDEL_BOTH = SHREGDEL_HKLM | SHREGDEL_HKCU,
78 } SHREGDEL_FLAGS;
80 typedef enum
82 SHREGENUM_DEFAULT = 0,
83 SHREGENUM_HKCU = 0x1,
84 SHREGENUM_HKLM = 0x10,
85 SHREGENUM_BOTH = SHREGENUM_HKLM | SHREGENUM_HKCU,
86 } SHREGENUM_FLAGS;
88 #define SHREGSET_HKCU 0x1 /* Apply to HKCU if empty */
89 #define SHREGSET_FORCE_HKCU 0x2 /* Always apply to HKCU */
90 #define SHREGSET_HKLM 0x4 /* Apply to HKLM if empty */
91 #define SHREGSET_FORCE_HKLM 0x8 /* Always apply to HKLM */
92 #define SHREGSET_DEFAULT (SHREGSET_FORCE_HKCU | SHREGSET_HKLM)
94 typedef HANDLE HUSKEY;
95 typedef HUSKEY *PHUSKEY;
97 LONG WINAPI SHRegCreateUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
98 LONG WINAPI SHRegCreateUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,DWORD);
99 #define SHRegCreateUSKey WINELIB_NAME_AW(SHRegCreateUSKey)
101 LONG WINAPI SHRegOpenUSKeyA(LPCSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
102 LONG WINAPI SHRegOpenUSKeyW(LPCWSTR,REGSAM,HUSKEY,PHUSKEY,BOOL);
103 #define SHRegOpenUSKey WINELIB_NAME_AW(SHRegOpenUSKey)
105 LONG WINAPI SHRegQueryUSValueA(HUSKEY,LPCSTR,LPDWORD,LPVOID,LPDWORD,
106 BOOL,LPVOID,DWORD);
107 LONG WINAPI SHRegQueryUSValueW(HUSKEY,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
108 BOOL,LPVOID,DWORD);
109 #define SHRegQueryUSValue WINELIB_NAME_AW(SHRegQueryUSValue)
111 LONG WINAPI SHRegWriteUSValueA(HUSKEY,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
112 LONG WINAPI SHRegWriteUSValueW(HUSKEY,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
113 #define SHRegWriteUSValue WINELIB_NAME_AW(SHRegWriteUSValue)
115 LONG WINAPI SHRegDeleteUSValueA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
116 LONG WINAPI SHRegDeleteUSValueW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
117 #define SHRegDeleteUSValue WINELIB_NAME_AW(SHRegDeleteUSValue)
119 LONG WINAPI SHRegDeleteEmptyUSKeyA(HUSKEY,LPCSTR,SHREGDEL_FLAGS);
120 LONG WINAPI SHRegDeleteEmptyUSKeyW(HUSKEY,LPCWSTR,SHREGDEL_FLAGS);
121 #define SHRegDeleteEmptyUSKey WINELIB_NAME_AW(SHRegDeleteEmptyUSKey)
123 LONG WINAPI SHRegEnumUSKeyA(HUSKEY,DWORD,LPSTR,LPDWORD,SHREGENUM_FLAGS);
124 LONG WINAPI SHRegEnumUSKeyW(HUSKEY,DWORD,LPWSTR,LPDWORD,SHREGENUM_FLAGS);
125 #define SHRegEnumUSKey WINELIB_NAME_AW(SHRegEnumUSKey)
127 LONG WINAPI SHRegEnumUSValueA(HUSKEY,DWORD,LPSTR,LPDWORD,LPDWORD,
128 LPVOID,LPDWORD,SHREGENUM_FLAGS);
129 LONG WINAPI SHRegEnumUSValueW(HUSKEY,DWORD,LPWSTR,LPDWORD,LPDWORD,
130 LPVOID,LPDWORD,SHREGENUM_FLAGS);
131 #define SHRegEnumUSValue WINELIB_NAME_AW(SHRegEnumUSValue)
133 LONG WINAPI SHRegQueryInfoUSKeyA(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
134 LPDWORD,SHREGENUM_FLAGS);
135 LONG WINAPI SHRegQueryInfoUSKeyW(HUSKEY,LPDWORD,LPDWORD,LPDWORD,
136 LPDWORD,SHREGENUM_FLAGS);
137 #define SHRegQueryInfoUSKey WINELIB_NAME_AW(SHRegQueryInfoUSKey)
139 LONG WINAPI SHRegCloseUSKey(HUSKEY);
141 LONG WINAPI SHRegGetUSValueA(LPCSTR,LPCSTR,LPDWORD,LPVOID,LPDWORD,
142 BOOL,LPVOID,DWORD);
143 LONG WINAPI SHRegGetUSValueW(LPCWSTR,LPCWSTR,LPDWORD,LPVOID,LPDWORD,
144 BOOL,LPVOID,DWORD);
145 #define SHRegGetUSValue WINELIB_NAME_AW(SHRegGetUSValue)
147 LONG WINAPI SHRegSetUSValueA(LPCSTR,LPCSTR,DWORD,LPVOID,DWORD,DWORD);
148 LONG WINAPI SHRegSetUSValueW(LPCWSTR,LPCWSTR,DWORD,LPVOID,DWORD,DWORD);
149 #define SHRegSetUSValue WINELIB_NAME_AW(SHRegSetUSValue)
151 BOOL WINAPI SHRegGetBoolUSValueA(LPCSTR,LPCSTR,BOOL,BOOL);
152 BOOL WINAPI SHRegGetBoolUSValueW(LPCWSTR,LPCWSTR,BOOL,BOOL);
153 #define SHRegGetBoolUSValue WINELIB_NAME_AW(SHRegGetBoolUSValue)
155 #endif /* NO_SHLWAPI_REG */
158 /* Path functions */
159 #ifndef NO_SHLWAPI_PATH
161 /* GetPathCharType return flags */
162 #define GCT_INVALID 0x0
163 #define GCT_LFNCHAR 0x1
164 #define GCT_SHORTCHAR 0x2
165 #define GCT_WILD 0x4
166 #define GCT_SEPARATOR 0x8
168 LPSTR WINAPI PathAddBackslashA(LPSTR);
169 LPWSTR WINAPI PathAddBackslashW(LPWSTR);
170 #define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
172 BOOL WINAPI PathAddExtensionA(LPSTR,LPCSTR);
173 BOOL WINAPI PathAddExtensionW(LPWSTR,LPCWSTR);
174 #define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
176 BOOL WINAPI PathAppendA(LPSTR,LPCSTR);
177 BOOL WINAPI PathAppendW(LPWSTR,LPCWSTR);
178 #define PathAppend WINELIB_NAME_AW(PathAppend)
180 LPSTR WINAPI PathBuildRootA(LPSTR,int);
181 LPWSTR WINAPI PathBuildRootW(LPWSTR,int);
182 #define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
184 BOOL WINAPI PathCanonicalizeA(LPSTR,LPCSTR);
185 BOOL WINAPI PathCanonicalizeW(LPWSTR,LPCWSTR);
186 #define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
188 LPSTR WINAPI PathCombineA(LPSTR,LPCSTR,LPCSTR);
189 LPWSTR WINAPI PathCombineW(LPWSTR,LPCWSTR,LPCWSTR);
190 #define PathCombine WINELIB_NAME_AW(PathCombine)
192 BOOL WINAPI PathCompactPathA(HDC,LPSTR,UINT);
193 BOOL WINAPI PathCompactPathW(HDC,LPWSTR,UINT);
194 #define PathCompactPath WINELIB_NAME_AW(PathCompactPath)
196 BOOL WINAPI PathCompactPathExA(LPSTR,LPCSTR,UINT,DWORD);
197 BOOL WINAPI PathCompactPathExW(LPWSTR,LPCWSTR,UINT,DWORD);
198 #define PathCompactPathEx WINELIB_NAME_AW(PathCompactPathEx)
200 int WINAPI PathCommonPrefixA(LPCSTR,LPCSTR,LPSTR);
201 int WINAPI PathCommonPrefixW(LPCWSTR,LPCWSTR,LPWSTR);
202 #define PathCommonPrefix WINELIB_NAME_AW(PathCommonPrefix)
204 BOOL WINAPI PathFileExistsA(LPCSTR);
205 BOOL WINAPI PathFileExistsW(LPCWSTR);
206 #define PathFileExists WINELIB_NAME_AW(PathFileExists)
208 LPSTR WINAPI PathFindExtensionA(LPCSTR);
209 LPWSTR WINAPI PathFindExtensionW(LPCWSTR);
210 #define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
212 LPSTR WINAPI PathFindFileNameA(LPCSTR);
213 LPWSTR WINAPI PathFindFileNameW(LPCWSTR);
214 #define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
216 LPSTR WINAPI PathFindNextComponentA(LPCSTR);
217 LPWSTR WINAPI PathFindNextComponentW(LPCWSTR);
218 #define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
220 BOOL WINAPI PathFindOnPathA(LPSTR,LPCSTR*);
221 BOOL WINAPI PathFindOnPathW(LPWSTR,LPCWSTR*);
222 #define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
224 LPSTR WINAPI PathGetArgsA(LPCSTR);
225 LPWSTR WINAPI PathGetArgsW(LPCWSTR);
226 #define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
228 UINT WINAPI PathGetCharTypeA(UCHAR);
229 UINT WINAPI PathGetCharTypeW(WCHAR);
230 #define PathGetCharType WINELIB_NAME_AW(PathGetCharType)
232 int WINAPI PathGetDriveNumberA(LPCSTR);
233 int WINAPI PathGetDriveNumberW(LPCWSTR);
234 #define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
236 BOOL WINAPI PathIsDirectoryA(LPCSTR);
237 BOOL WINAPI PathIsDirectoryW(LPCWSTR);
238 #define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
240 BOOL WINAPI PathIsDirectoryEmptyA(LPCSTR);
241 BOOL WINAPI PathIsDirectoryEmptyW(LPCWSTR);
242 #define PathIsDirectoryEmpty WINELIB_NAME_AW(PathIsDirectoryEmpty)
244 BOOL WINAPI PathIsFileSpecA(LPCSTR);
245 BOOL WINAPI PathIsFileSpecW(LPCWSTR);
246 #define PathIsFileSpec WINELIB_NAME_AW(PathIsFileSpec);
248 BOOL WINAPI PathIsPrefixA(LPCSTR,LPCSTR);
249 BOOL WINAPI PathIsPrefixW(LPCWSTR,LPCWSTR);
250 #define PathIsPrefix WINELIB_NAME_AW(PathIsPrefix)
252 BOOL WINAPI PathIsRelativeA(LPCSTR);
253 BOOL WINAPI PathIsRelativeW(LPCWSTR);
254 #define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
256 BOOL WINAPI PathIsRootA(LPCSTR);
257 BOOL WINAPI PathIsRootW(LPCWSTR);
258 #define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
260 BOOL WINAPI PathIsSameRootA(LPCSTR,LPCSTR);
261 BOOL WINAPI PathIsSameRootW(LPCWSTR,LPCWSTR);
262 #define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
264 BOOL WINAPI PathIsUNCA(LPCSTR);
265 BOOL WINAPI PathIsUNCW(LPCWSTR);
266 #define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
268 BOOL WINAPI PathIsUNCServerA(LPCSTR);
269 BOOL WINAPI PathIsUNCServerW(LPCWSTR);
270 #define PathIsUNCServer WINELIB_NAME_AW(PathIsUNCServer)
272 BOOL WINAPI PathIsUNCServerShareA(LPCSTR);
273 BOOL WINAPI PathIsUNCServerShareW(LPCWSTR);
274 #define PathIsUNCServerShare WINELIB_NAME_AW(PathIsUNCServerShare)
276 BOOL WINAPI PathIsContentTypeA(LPCSTR,LPCSTR);
277 BOOL WINAPI PathIsContentTypeW(LPCWSTR,LPCWSTR);
278 #define PathIsContentType WINELIB_NAME_AW(PathIsContentType)
280 BOOL WINAPI PathIsURLA(LPCSTR);
281 BOOL WINAPI PathIsURLW(LPCWSTR);
282 #define PathIsURL WINELIB_NAME_AW(PathIsURL)
284 BOOL WINAPI PathMakePrettyA(LPSTR);
285 BOOL WINAPI PathMakePrettyW(LPWSTR);
286 #define PathMakePretty WINELIB_NAME_AW(PathMakePretty)
288 BOOL WINAPI PathMatchSpecA(LPCSTR,LPCSTR);
289 BOOL WINAPI PathMatchSpecW(LPCWSTR,LPCWSTR);
290 #define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
292 int WINAPI PathParseIconLocationA(LPSTR);
293 int WINAPI PathParseIconLocationW(LPWSTR);
294 #define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
296 LPSTR WINAPI PathQuoteSpacesA(LPSTR);
297 LPWSTR WINAPI PathQuoteSpacesW(LPWSTR);
298 #define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
300 BOOL WINAPI PathRelativePathToA(LPSTR,LPCSTR,DWORD,LPCSTR,DWORD);
301 BOOL WINAPI PathRelativePathToW(LPWSTR,LPCWSTR,DWORD,LPCWSTR,DWORD);
302 #define PathRelativePathTo WINELIB_NAME_AW(PathRelativePathTo)
304 VOID WINAPI PathRemoveArgsA(LPSTR);
305 VOID WINAPI PathRemoveArgsW(LPWSTR);
306 #define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
308 LPSTR WINAPI PathRemoveBackslashA(LPSTR);
309 LPWSTR WINAPI PathRemoveBackslashW(LPWSTR);
310 #define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
312 VOID WINAPI PathRemoveBlanksA(LPSTR);
313 VOID WINAPI PathRemoveBlanksW(LPWSTR);
314 #define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
316 VOID WINAPI PathRemoveExtensionA(LPSTR);
317 VOID WINAPI PathRemoveExtensionW(LPWSTR);
318 #define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
320 BOOL WINAPI PathRemoveFileSpecA(LPSTR);
321 BOOL WINAPI PathRemoveFileSpecW(LPWSTR);
322 #define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
324 BOOL WINAPI PathRenameExtensionA(LPSTR,LPCSTR);
325 BOOL WINAPI PathRenameExtensionW(LPWSTR,LPCWSTR);
326 #define PathRenameExtension WINELIB_NAME_AW(PathRenameExtension)
328 BOOL WINAPI PathSearchAndQualifyA(LPCSTR,LPSTR,UINT);
329 BOOL WINAPI PathSearchAndQualifyW(LPCWSTR,LPWSTR,UINT);
330 #define PathSearchAndQualify WINELIB_NAME_AW(PathSearchAndQualify)
332 BOOL WINAPI PathSetDlgItemPathA(HWND,int,LPCSTR);
333 BOOL WINAPI PathSetDlgItemPathW(HWND,int,LPCWSTR);
334 #define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
336 LPSTR WINAPI PathSkipRootA(LPCSTR);
337 LPWSTR WINAPI PathSkipRootW(LPCWSTR);
338 #define PathSkipRoot WINELIB_NAME_AW(PathSkipRoot)
340 VOID WINAPI PathStripPathA(LPSTR);
341 VOID WINAPI PathStripPathW(LPWSTR);
342 #define PathStripPath WINELIB_NAME_AW(PathStripPath)
344 BOOL WINAPI PathStripToRootA(LPSTR);
345 BOOL WINAPI PathStripToRootW(LPWSTR);
346 #define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
348 VOID WINAPI PathUnquoteSpacesA(LPSTR);
349 VOID WINAPI PathUnquoteSpacesW(LPWSTR);
350 #define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
352 BOOL WINAPI PathMakeSystemFolderA(LPCSTR);
353 BOOL WINAPI PathMakeSystemFolderW(LPCWSTR);
354 #define PathMakeSystemFolder WINELIB_NAME_AW(PathMakeSystemFolder)
356 BOOL WINAPI PathUnmakeSystemFolderA(LPCSTR);
357 BOOL WINAPI PathUnmakeSystemFolderW(LPCWSTR);
358 #define PathUnmakeSystemFolder WINELIB_NAME_AW(PathUnmakeSystemFolder)
360 BOOL WINAPI PathIsSystemFolderA(LPCSTR,DWORD);
361 BOOL WINAPI PathIsSystemFolderW(LPCWSTR,DWORD);
362 #define PathIsSystemFolder WINELIB_NAME_AW(PathIsSystemFolder)
364 BOOL WINAPI PathIsNetworkPathA(LPCSTR);
365 BOOL WINAPI PathIsNetworkPathW(LPCWSTR);
366 #define PathIsNetworkPath WINELIB_NAME_AW(PathIsNetworkPath)
368 BOOL WINAPI PathIsLFNFileSpecA(LPCSTR);
369 BOOL WINAPI PathIsLFNFileSpecW(LPCWSTR);
370 #define PathIsLFNFileSpec WINELIB_NAME_AW(PathIsLFNFileSpec)
372 LPCSTR WINAPI PathFindSuffixArrayA(LPCSTR,LPCSTR *,int);
373 LPCWSTR WINAPI PathFindSuffixArrayW(LPCWSTR,LPCWSTR *,int);
374 #define PathFindSuffixArray WINELIB_NAME_AW(PathFindSuffixArray)
376 VOID WINAPI PathUndecorateA(LPSTR);
377 VOID WINAPI PathUndecorateW(LPWSTR);
378 #define PathUndecorate WINELIB_NAME_AW(PathUndecorate)
380 BOOL WINAPI PathUnExpandEnvStringsA(LPCSTR,LPSTR,UINT);
381 BOOL WINAPI PathUnExpandEnvStringsW(LPCWSTR,LPWSTR,UINT);
382 #define PathUnExpandEnvStrings WINELIB_NAME_AW(PathUnExpandEnvStrings)
384 /* Url functions */
386 /* These are used by UrlGetPart routine */
387 typedef enum {
388 URL_PART_NONE = 0,
389 URL_PART_SCHEME = 1,
390 URL_PART_HOSTNAME,
391 URL_PART_USERNAME,
392 URL_PART_PASSWORD,
393 URL_PART_PORT,
394 URL_PART_QUERY,
395 } URL_PART;
397 #define URL_PARTFLAG_KEEPSCHEME 0x00000001
399 /* These are used by the UrlIs... routines */
400 typedef enum {
401 URLIS_URL,
402 URLIS_OPAQUE,
403 URLIS_NOHISTORY,
404 URLIS_FILEURL,
405 URLIS_APPLIABLE,
406 URLIS_DIRECTORY,
407 URLIS_HASQUERY,
408 } URLIS;
410 /* This is used by the UrlApplyScheme... routines */
411 #define URL_APPLY_FORCEAPPLY 0x00000008
412 #define URL_APPLY_GUESSFILE 0x00000004
413 #define URL_APPLY_GUESSSCHEME 0x00000002
414 #define URL_APPLY_DEFAULT 0x00000001
416 /* The following are used by UrlEscape..., UrlUnEscape...,
417 * UrlCanonicalize..., and UrlCombine... routines
419 #define URL_WININET_COMPATIBILITY 0x80000000
420 #define URL_PLUGGABLE_PROTOCOL 0x40000000
421 #define URL_ESCAPE_UNSAFE 0x20000000
422 #define URL_UNESCAPE 0x10000000
424 #define URL_DONT_SIMPLIFY 0x08000000
425 #define URL_NO_META URL_DONT_SIMPLIFY
426 #define URL_ESCAPE_SPACES_ONLY 0x04000000
427 #define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000
428 #define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO
429 #define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO
431 #define URL_INTERNAL_PATH 0x00800000 /* Will escape #'s in paths */
432 #define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000
433 #define URL_CONVERT_IF_DOSPATH 0x00200000
434 #define URL_UNESCAPE_INPLACE 0x00100000
436 #define URL_FILE_USE_PATHURL 0x00010000
438 #define URL_ESCAPE_SEGMENT_ONLY 0x00002000
439 #define URL_ESCAPE_PERCENT 0x00001000
441 HRESULT WINAPI UrlApplySchemeA(LPCSTR,LPSTR,LPDWORD,DWORD);
442 HRESULT WINAPI UrlApplySchemeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
443 #define UrlApplyScheme WINELIB_NAME_AW(UrlApplyScheme)
445 HRESULT WINAPI UrlCanonicalizeA(LPCSTR,LPSTR,LPDWORD,DWORD);
446 HRESULT WINAPI UrlCanonicalizeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
447 #define UrlCanonicalize WINELIB_NAME_AW(UrlCanoncalize)
449 HRESULT WINAPI UrlCombineA(LPCSTR,LPCSTR,LPSTR,LPDWORD,DWORD);
450 HRESULT WINAPI UrlCombineW(LPCWSTR,LPCWSTR,LPWSTR,LPDWORD,DWORD);
451 #define UrlCombine WINELIB_NAME_AW(UrlCombine)
453 INT WINAPI UrlCompareA(LPCSTR,LPCSTR,BOOL);
454 INT WINAPI UrlCompareW(LPCWSTR,LPCWSTR,BOOL);
455 #define UrlCompare WINELIB_NAME_AW(UrlCompare)
457 HRESULT WINAPI UrlEscapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
458 HRESULT WINAPI UrlEscapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
459 #define UrlEscape WINELIB_NAME_AW(UrlEscape)
461 #define UrlEscapeSpacesA(x,y,z) UrlCanonicalizeA(x, y, z, \
462 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
463 #define UrlEscapeSpacesW(x,y,z) UrlCanonicalizeW(x, y, z, \
464 URL_DONT_ESCAPE_EXTRA_INFO|URL_ESCAPE_SPACES_ONLY)
465 #define UrlEscapeSpaces WINELIB_NAME_AW(UrlEscapeSpaces)
467 LPCSTR WINAPI UrlGetLocationA(LPCSTR);
468 LPCWSTR WINAPI UrlGetLocationW(LPCWSTR);
469 #define UrlGetLocation WINELIB_NAME_AW(UrlGetLocation)
471 HRESULT WINAPI UrlGetPartA(LPCSTR,LPSTR,LPDWORD,DWORD,DWORD);
472 HRESULT WINAPI UrlGetPartW(LPCWSTR,LPWSTR,LPDWORD,DWORD,DWORD);
473 #define UrlGetPart WINELIB_NAME_AW(UrlGetPart)
475 BOOL WINAPI HashData(const unsigned char *,INT,unsigned char *lpDest,INT);
477 HRESULT WINAPI UrlHashA(LPCSTR,unsigned char *,INT);
478 HRESULT WINAPI UrlHashW(LPCWSTR,unsigned char *,INT);
479 #define UrlHash WINELIB_NAME_AW(UrlHash)
481 BOOL WINAPI UrlIsA(LPCSTR,URLIS);
482 BOOL WINAPI UrlIsW(LPCWSTR,URLIS);
483 #define UrlIs WINELIB_NAME_AW(UrlIs)
485 BOOL WINAPI UrlIsNoHistoryA(LPCSTR);
486 BOOL WINAPI UrlIsNoHistoryW(LPCWSTR);
487 #define UrlIsNoHistory WINELIB_NAME_AW(UrlIsNoHistory)
489 BOOL WINAPI UrlIsOpaqueA(LPCSTR);
490 BOOL WINAPI UrlIsOpaqueW(LPCWSTR);
491 #define UrlIsOpaque WINELIB_NAME_AW(UrlIsOpaque)
493 #define UrlIsFileUrlA(x) UrlIsA(x, URLIS_FILEURL)
494 #define UrlIsFileUrlW(y) UrlIsW(x, URLIS_FILEURL)
495 #define UrlIsFileUrl WINELIB_NAME_AW(UrlIsFileUrl)
497 HRESULT WINAPI UrlUnescapeA(LPCSTR,LPSTR,LPDWORD,DWORD);
498 HRESULT WINAPI UrlUnescapeW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
499 #define UrlUnescape WINELIB_AW_NAME(UrlUnescape)
501 #define UrlUnescapeInPlaceA(x,y) UrlUnescapeA(x, NULL, NULL, \
502 y | URL_UNESCAPE_INPLACE)
503 #define UrlUnescapeInPlaceW(x,y) UrlUnescapeW(x, NULL, NULL, \
504 y | URL_UNESCAPE_INPLACE)
505 #define UrlUnescapeInPlace WINELIB_AW_NAME(UrlUnescapeInPlace)
507 HRESULT WINAPI UrlCreateFromPathA(LPCSTR,LPSTR,LPDWORD,DWORD);
508 HRESULT WINAPI UrlCreateFromPathW(LPCWSTR,LPWSTR,LPDWORD,DWORD);
509 #define UrlCreateFromPath WINELIB_AW_NAME(UrlCreateFromPath)
511 #endif /* NO_SHLWAPI_PATH */
514 /* String functions */
515 #ifndef NO_SHLWAPI_STRFCNS
517 /* StrToIntEx flags */
518 #define STIF_DEFAULT 0x0L
519 #define STIF_SUPPORT_HEX 0x1L
521 BOOL WINAPI ChrCmpIA (WORD w1, WORD w2);
522 BOOL WINAPI ChrCmpIW (WCHAR w1, WCHAR w2);
523 #define ChrCmpI WINELIB_NAME_AW(ChrCmpI)
525 INT WINAPI StrCSpnA(LPCSTR,LPCSTR);
526 INT WINAPI StrCSpnW(LPCWSTR,LPCWSTR);
527 #define StrCSpn WINELIB_NAME_AW(StrCSpn)
529 INT WINAPI StrCSpnIA(LPCSTR,LPCSTR);
530 INT WINAPI StrCSpnIW(LPCWSTR,LPCWSTR);
531 #define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
533 #define StrCatA lstrcatA
534 LPWSTR WINAPI StrCatW(LPWSTR,LPCWSTR);
535 #define StrCat WINELIB_NAME_AW(StrCat)
537 LPSTR WINAPI StrCatBuffA(LPSTR,LPCSTR,INT);
538 LPWSTR WINAPI StrCatBuffW(LPWSTR,LPCWSTR,INT);
539 #define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
541 LPSTR WINAPI StrChrA(LPCSTR,WORD);
542 LPWSTR WINAPI StrChrW(LPCWSTR,WCHAR);
543 #define StrChr WINELIB_NAME_AW(StrChr)
545 LPSTR WINAPI StrChrIA(LPCSTR,CHAR);
546 LPWSTR WINAPI StrChrIW(LPCWSTR,WCHAR);
547 #define StrChrI WINELIB_NAME_AW(StrChrI)
549 #define StrCmpA lstrcmpA
550 int WINAPI StrCmpW(LPCWSTR,LPCWSTR);
551 #define StrCmp WINELIB_NAME_AW(StrCmp)
553 #define StrCmpIA lstrcmpiA
554 int WINAPI StrCmpIW(LPCWSTR,LPCWSTR);
555 #define StrCmpI WINELIB_NAME_AW(StrCmpI)
557 #define StrCpyA lstrcpyA
558 LPWSTR WINAPI StrCpyW(LPWSTR,LPCWSTR);
559 #define StrCpy WINELIB_NAME_AW(StrCpy)
561 #define StrCpyNA lstrcpynA
562 LPWSTR WINAPI StrCpyNW(LPWSTR,LPCWSTR,int);
563 #define StrCpyN WINELIB_NAME_AW(StrCpyN)
564 #define StrNCpy WINELIB_NAME_AW(StrCpyN)
566 INT WINAPI StrCmpNA(LPCSTR,LPCSTR,INT);
567 INT WINAPI StrCmpNW(LPCWSTR,LPCWSTR,INT);
568 #define StrCmpN WINELIB_NAME_AW(StrCmpN)
569 #define StrNCmp WINELIB_NAME_AW(StrCmpN)
571 INT WINAPI StrCmpNIA(LPCSTR,LPCSTR,INT);
572 INT WINAPI StrCmpNIW(LPCWSTR,LPCWSTR,INT);
573 #define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
574 #define StrNCmpI WINELIB_NAME_AW(StrCmpNI)
576 LPSTR WINAPI StrDupA(LPCSTR);
577 LPWSTR WINAPI StrDupW(LPCWSTR);
578 #define StrDup WINELIB_NAME_AW(StrDup)
580 LPSTR WINAPI StrFormatByteSizeA (DWORD,LPSTR,UINT);
581 LPWSTR WINAPI StrFormatByteSizeW (DWORD,LPWSTR,UINT);
582 #define StrFormatByteSize WINELIB_NAME_AW(StrFormatByteSize)
584 int WINAPI StrFromTimeIntervalA(LPSTR,UINT,DWORD,int);
585 int WINAPI StrFromTimeIntervalW(LPWSTR,UINT,DWORD,int);
586 #define StrFromTimeInterval WINELIB_NAME_AW(StrFromTimeInterval)
588 BOOL WINAPI StrIsIntlEqualA(BOOL,LPCSTR,LPCSTR,int);
589 BOOL WINAPI StrIsIntlEqualW(BOOL,LPCWSTR,LPCWSTR,int);
590 #define StrIsIntlEqual WINELIB_NAME_AW(StrIsIntlEqual)
592 #define StrIntlEqNA(a,b,c) StrIsIntlEqualA(TRUE,a,b,c)
593 #define StrIntlEqNW(a,b,c) StrIsIntlEqualW(TRUE,a,b,c)
595 #define StrIntlEqNIA(a,b,c) StrIsIntlEqualA(FALSE,a,b,c)
596 #define StrIntlEqNIW(a,b,c) StrIsIntlEqualW(FALSE,a,b,c)
598 LPSTR WINAPI StrNCatA(LPSTR,LPCSTR,int);
599 LPWSTR WINAPI StrNCatW(LPWSTR,LPCWSTR,int);
600 #define StrNCat WINELIB_NAME_AW(StrNCat)
601 #define StrCatN WINELIB_NAME_AW(StrNCat)
603 LPSTR WINAPI StrPBrkA(LPCSTR,LPCSTR);
604 LPWSTR WINAPI StrPBrkW(LPCWSTR,LPCWSTR);
605 #define StrPBrk WINELIB_NAME_AW(StrPBrk)
607 LPSTR WINAPI StrRChrA(LPCSTR,LPCSTR,WORD);
608 LPWSTR WINAPI StrRChrW(LPCWSTR,LPCWSTR,WORD);
609 #define StrRChr WINELIB_NAME_AW(StrRChr)
611 LPSTR WINAPI StrRChrIA(LPCSTR,LPCSTR,WORD);
612 LPWSTR WINAPI StrRChrIW(LPCWSTR,LPCWSTR,WORD);
613 #define StrRChrI WINELIB_NAME_AW(StrRChrI)
615 LPSTR WINAPI StrRStrIA(LPCSTR,LPCSTR,LPCSTR);
616 LPWSTR WINAPI StrRStrIW(LPCWSTR,LPCWSTR,LPCWSTR);
617 #define StrRStrI WINELIB_NAME_AW(StrRStrI)
619 int WINAPI StrSpnA(LPCSTR,LPCSTR);
620 int WINAPI StrSpnW(LPCWSTR,LPCWSTR);
621 #define StrSpn WINELIB_NAME_AW(StrSpn)
623 LPSTR WINAPI StrStrA(LPCSTR,LPCSTR);
624 LPWSTR WINAPI StrStrW(LPCWSTR,LPCWSTR);
625 #define StrStr WINELIB_NAME_AW(StrStr)
627 LPSTR WINAPI StrStrIA(LPCSTR,LPCSTR);
628 LPWSTR WINAPI StrStrIW(LPCWSTR,LPCWSTR);
629 #define StrStrI WINELIB_NAME_AW(StrStrI)
631 int WINAPI StrToIntA(LPCSTR);
632 int WINAPI StrToIntW(LPCWSTR);
633 #define StrToInt WINELIB_NAME_AW(StrToInt)
634 #define StrToLong WINELIB_NAME_AW(StrToInt)
636 BOOL WINAPI StrToIntExA(LPCSTR,DWORD,int*);
637 BOOL WINAPI StrToIntExW(LPCWSTR,DWORD,int*);
638 #define StrToIntEx WINELIB_NAME_AW(StrToIntEx)
640 BOOL WINAPI StrTrimA(LPSTR,LPCSTR);
641 BOOL WINAPI StrTrimW(LPWSTR,LPCWSTR);
642 #define StrTrim WINELIB_NAME_AW(StrTrim)
644 INT WINAPI wvnsprintfA(LPSTR lpOut, INT cchLimitIn, LPCSTR lpFmt, va_list arglist);
645 INT WINAPI wvnsprintfW(LPWSTR lpOut, INT cchLimitIn, LPCWSTR lpFmt, va_list arglist);
646 #define wvnsprintf WINELIB_NAME_AW(wvnsprintf)
648 INT WINAPIV wnsprintfA(LPSTR lpOut, INT cchLimitIn, LPCSTR lpFmt, ...);
649 INT WINAPIV wnsprintfW(LPWSTR lpOut, INT cchLimitIn, LPCWSTR lpFmt, ...);
650 #define wnsprintf WINELIB_NAME_AW(wnsprintf)
652 /* Undocumented */
653 struct _STRRET;
654 struct _ITEMIDLIST;
655 HRESULT WINAPI StrRetToBufA(struct _STRRET *src, const struct _ITEMIDLIST *pidl, LPSTR dest, DWORD len);
656 HRESULT WINAPI StrRetToBufW(struct _STRRET *src, const struct _ITEMIDLIST *pidl, LPWSTR dest, DWORD len);
657 #define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
659 #endif /* NO_SHLWAPI_STRFCNS */
662 /* GDI functions */
663 #ifndef NO_SHLWAPI_GDI
665 HPALETTE WINAPI SHCreateShellPalette(HDC);
667 COLORREF WINAPI ColorHLSToRGB(WORD,WORD,WORD);
669 COLORREF WINAPI ColorAdjustLuma(COLORREF,int,BOOL);
671 VOID WINAPI ColorRGBToHLS(COLORREF,LPWORD,LPWORD,LPWORD);
673 #endif /* NO_SHLWAPI_GDI */
676 /* Stream functions */
677 #ifndef NO_SHLWAPI_STREAM
679 IStream * WINAPI SHOpenRegStreamA(HKEY,LPCSTR,LPCSTR,DWORD);
680 IStream * WINAPI SHOpenRegStreamW(HKEY,LPCWSTR,LPCWSTR,DWORD);
681 #define SHOpenRegStream WINELIB_NAME_AW(SHOpenRegStream)
683 IStream * WINAPI SHOpenRegStream2A(HKEY,LPCSTR,LPCSTR,DWORD);
684 IStream * WINAPI SHOpenRegStream2W(HKEY,LPCWSTR,LPCWSTR,DWORD);
685 #define SHOpenRegStream2 WINELIB_NAME_AW(SHOpenRegStream2)
687 #endif /* NO_SHLWAPI_STREAM */
690 /* Version Information */
692 typedef struct _DllVersionInfo {
693 DWORD cbSize;
694 DWORD dwMajorVersion;
695 DWORD dwMinorVersion;
696 DWORD dwBuildNumber;
697 DWORD dwPlatformID;
698 } DLLVERSIONINFO;
700 #define DLLVER_PLATFORM_WINDOWS 0x01 /* Win9x */
701 #define DLLVER_PLATFORM_NT 0x02 /* WinNT */
703 typedef HRESULT CALLBACK (*DLLGETVERSIONPROC)(DLLVERSIONINFO *);
705 #ifdef __cplusplus
706 } /* extern "C" */
707 #endif /* defined(__cplusplus) */
709 #endif /* __WINE_SHLWAPI_H */