source: trunk/include/win/shlwapi.h@ 5616

Last change on this file since 5616 was 5616, checked in by sandervl, 24 years ago

header updates

File size: 9.0 KB
Line 
1#ifndef __WINE_SHLWAPI_H
2#define __WINE_SHLWAPI_H
3
4#include "windef.h"
5#include "wine/obj_queryassociations.h"
6#include "wine/obj_shellfolder.h"
7
8#ifdef __cplusplus
9extern "C" {
10#endif /* defined(__cplusplus) */
11
12
13/*
14 * The URL_ defines were determined by trial and error. If they become
15 * documented please check them and add the missing ones including:
16 *
17 * URL_ESCAPE_PERCENT
18 * URL_PLUGGABLE_PROTOCOL
19 * URL_DONT_ESCAPE_EXTRA_INFO
20 * URL_ESCAPE_SEGMENT_ONLY
21 */
22
23#define URL_UNESCAPE_INPLACE 0x00100000
24#define URL_DONT_UNESCAPE_EXTRA_INFO 0x02000000
25
26#define URL_ESCAPE_SPACES_ONLY 0x04000000
27
28#define URL_UNESCAPE 0x10000000
29#define URL_ESCAPE_UNSAFE 0x20000000
30#define URL_DONT_SIMPLIFY 0x40000000
31
32LPSTR WINAPI PathAddBackslashA(LPSTR path);
33LPWSTR WINAPI PathAddBackslashW(LPWSTR path);
34#define PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
35
36BOOL WINAPI PathAddExtensionA(LPSTR pszPath, LPCSTR pszExt);
37BOOL WINAPI PathAddExtensionW(LPWSTR pszPath, LPCWSTR pszExt);
38#define PathAddExtension WINELIB_NAME_AW(PathAddExtension)
39
40BOOL WINAPI PathAppendA(LPSTR lpszPath1,LPCSTR lpszPath2);
41BOOL WINAPI PathAppendW(LPWSTR lpszPath1,LPCWSTR lpszPath2);
42#define PathAppend WINELIB_NAME_AW(PathAppend)
43
44LPSTR WINAPI PathBuildRootA(LPSTR lpszPath, int drive);
45LPWSTR WINAPI PathBuildRootW(LPWSTR lpszPath, int drive);
46#define PathBuildRoot WINELIB_NAME_AW(PathBuiltRoot)
47
48BOOL WINAPI PathCanonicalizeA(LPSTR lpszDst, LPCSTR lpszSrc);
49BOOL WINAPI PathCanonicalizeW(LPWSTR lpszDst, LPCWSTR lpszSrc);
50#define PathCanonicalize WINELIB_NAME_AW(PathCanonicalize)
51
52LPSTR WINAPI PathCombineA(LPSTR szDest, LPCSTR lpszDir, LPCSTR lpszFile);
53LPWSTR WINAPI PathCombineW(LPWSTR szDest, LPCWSTR lpszDir, LPCWSTR lpszFile);
54#define PathCombine WINELIB_NAME_AW(PathCombine)
55
56BOOL WINAPI PathFileExistsA(LPCSTR lpszPath);
57BOOL WINAPI PathFileExistsW(LPCWSTR lpszPath);
58#define PathFileExists WINELIB_NAME_AW(PathFileExists)
59
60LPSTR WINAPI PathFindExtensionA(LPCSTR path);
61LPWSTR WINAPI PathFindExtensionW(LPCWSTR path);
62#define PathFindExtension WINELIB_NAME_AW(PathFindExtension)
63
64LPSTR WINAPI PathFindFileNameA(LPCSTR pPath);
65LPWSTR WINAPI PathFindFileNameW(LPCWSTR pPath);
66#define PathFindFileName WINELIB_NAME_AW(PathFindFileName)
67
68LPSTR WINAPI PathFindNextComponentA(LPCSTR pszPath);
69LPWSTR WINAPI PathFindNextComponentW(LPCWSTR pszPath);
70#define PathFindNextComponent WINELIB_NAME_AW(PathFindNextComponent)
71
72BOOL WINAPI PathFindOnPathA(LPSTR sFile, LPCSTR sOtherDirs);
73BOOL WINAPI PathFindOnPathW(LPWSTR sFile, LPCWSTR sOtherDirs);
74#define PathFindOnPath WINELIB_NAME_AW(PathFindOnPath)
75
76LPSTR WINAPI PathGetArgsA(LPCSTR lpszPath);
77LPWSTR WINAPI PathGetArgsW(LPCWSTR lpszPath);
78#define PathGetArgs WINELIB_NAME_AW(PathGetArgs)
79
80int WINAPI PathGetDriveNumberA(LPCSTR lpszPath);
81int WINAPI PathGetDriveNumberW(LPCWSTR lpszPath);
82#define PathGetDriveNumber WINELIB_NAME_AW(PathGetDriveNumber)
83
84BOOL WINAPI PathIsDirectoryA(LPCSTR lpszPath);
85BOOL WINAPI PathIsDirectoryW(LPCWSTR lpszPath);
86#define PathIsDirectory WINELIB_NAME_AW(PathIsDirectory)
87
88BOOL WINAPI PathIsRelativeA(LPCSTR lpszPath);
89BOOL WINAPI PathIsRelativeW(LPCWSTR lpszPath);
90#define PathIsRelative WINELIB_NAME_AW(PathIsRelative)
91
92BOOL WINAPI PathIsRootA(LPCSTR x);
93BOOL WINAPI PathIsRootW(LPCWSTR x);
94#define PathIsRoot WINELIB_NAME_AW(PathIsRoot)
95
96BOOL WINAPI PathIsSameRootA(LPCSTR lpszPath1, LPCSTR lpszPath2);
97BOOL WINAPI PathIsSameRootW(LPCWSTR lpszPath1, LPCWSTR lpszPath2);
98#define PathIsSameRoot WINELIB_NAME_AW(PathIsSameRoot)
99
100BOOL WINAPI PathIsUNCA(LPCSTR lpszPath);
101BOOL WINAPI PathIsUNCW(LPCWSTR lpszPath);
102#define PathIsUNC WINELIB_NAME_AW(PathIsUNC)
103
104BOOL WINAPI PathIsURLA(LPCSTR pszPath);
105BOOL WINAPI PathIsURLW(LPCWSTR pszPath);
106#define PathIsURL WINELIB_NAME_AW(PathIsURL)
107
108BOOL WINAPI PathMatchSpecA(LPCSTR lpszPath, LPCSTR lpszSpec);
109BOOL WINAPI PathMatchSpecW(LPCWSTR lpszPath, LPCWSTR lpszSpec);
110#define PathMatchSpec WINELIB_NAME_AW(PathMatchSpec)
111
112int WINAPI PathParseIconLocationA(LPSTR lpszPath);
113int WINAPI PathParseIconLocationW(LPWSTR lpszPath);
114#define PathParseIconLocation WINELIB_NAME_AW(PathParseIconLocation)
115
116LPSTR WINAPI PathQuoteSpacesA(LPSTR path);
117LPWSTR WINAPI PathQuoteSpacesW(LPWSTR path);
118#define PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
119
120void WINAPI PathRemoveArgsA(LPSTR lpszPath);
121void WINAPI PathRemoveArgsW(LPWSTR lpszPath);
122#define PathRemoveArgs WINELIB_NAME_AW(PathRemoveArgs)
123
124LPSTR WINAPI PathRemoveBackslashA(LPSTR lpszPath);
125LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpszPath);
126#define PathRemoveBackslash WINELIB_NAME_AW(PathRemoveBackslash)
127
128void WINAPI PathRemoveBlanksA(LPSTR lpszPath);
129void WINAPI PathRemoveBlanksW(LPWSTR lpszPath);
130#define PathRemoveBlanks WINELIB_NAME_AW(PathRemoveBlanks)
131
132void WINAPI PathRemoveExtensionA(LPSTR lpszPath);
133void WINAPI PathRemoveExtensionW(LPWSTR lpszPath);
134#define PathRemoveExtension WINELIB_NAME_AW(PathRemoveExtension)
135
136BOOL WINAPI PathRemoveFileSpecA(LPSTR lpszPath);
137BOOL WINAPI PathRemoveFileSpecW(LPWSTR lpszPath);
138#define PathRemoveFileSpec WINELIB_NAME_AW(PathRemoveFileSpec)
139
140BOOL WINAPI PathSetDlgItemPathA(HWND hDlg, int id, LPCSTR pszPath);
141BOOL WINAPI PathSetDlgItemPathW(HWND hDlg, int id, LPCWSTR pszPath);
142#define PathSetDlgItemPath WINELIB_NAME_AW(PathSetDlgItemPath)
143
144void WINAPI PathStripPathA(LPSTR lpszPath);
145void WINAPI PathStripPathW(LPWSTR lpszPath);
146#define PathStripPath WINELIB_NAME_AW(PathStripPath)
147
148BOOL WINAPI PathStripToRootA(LPSTR pszPath);
149BOOL WINAPI PathStripToRootW(LPWSTR pszPath);
150#define PathStripToRoot WINELIB_NAME_AW(PathStripToRoot)
151
152void WINAPI PathUnquoteSpacesA(LPSTR str);
153void WINAPI PathUnquoteSpacesW(LPWSTR str);
154#define PathUnquoteSpaces WINELIB_NAME_AW(PathUnquoteSpaces)
155
156
157INT WINAPI StrCSpnA(LPCSTR lpStr, LPCSTR lpSet);
158INT WINAPI StrCSpnW(LPCWSTR lpStr, LPCWSTR lpSet);
159#define StrCSpn WINELIB_NAME_AW(StrCSpn)
160
161INT WINAPI StrCSpnIA(LPCSTR lpStr, LPCSTR lpSet);
162INT WINAPI StrCSpnIW(LPCWSTR lpStr, LPCWSTR lpSet);
163#define StrCSpnI WINELIB_NAME_AW(StrCSpnI)
164
165#define StrCatA lstrcatA
166LPWSTR WINAPI StrCatW(LPWSTR front, LPCWSTR back);
167#define StrCat WINELIB_NAME_AW(StrCat)
168
169LPSTR WINAPI StrCatBuffA(LPSTR front, LPCSTR back, INT size);
170LPWSTR WINAPI StrCatBuffW(LPWSTR front, LPCWSTR back, INT size);
171#define StrCatBuff WINELIB_NAME_AW(StrCatBuff)
172
173LPSTR WINAPI StrChrA(LPCSTR lpStart, WORD wMatch);
174LPWSTR WINAPI StrChrW(LPCWSTR lpStart, WCHAR wMatch);
175#define StrChr WINELIB_NAME_AW(StrChr)
176
177LPSTR WINAPI StrChrIA(LPCSTR lpStart, WORD wMatch);
178LPWSTR WINAPI StrChrIW(LPCWSTR lpStart, WCHAR wMatch);
179#define StrChrI WINELIB_NAME_AW(StrChrI)
180
181INT WINAPI StrCmpNA(LPCSTR lpStr1, LPCSTR lpStr2, INT nChar);
182INT WINAPI StrCmpNW(LPCWSTR lpStr1, LPCWSTR lpStr2, INT nChar);
183#define StrCmpN WINELIB_NAME_AW(StrCmpN)
184
185INT WINAPI StrCmpNIA(LPCSTR lpStr1, LPCSTR lpStr2, INT nChar);
186INT WINAPI StrCmpNIW(LPCWSTR lpStr1, LPCWSTR lpStr2, INT nChar);
187#define StrCmpNI WINELIB_NAME_AW(StrCmpNI)
188
189LPSTR WINAPI StrDupA(LPCSTR lpSrc);
190LPWSTR WINAPI StrDupW(LPCWSTR lpSrc);
191#define StrDup WINELIB_NAME_AW(StrDup)
192
193LPSTR WINAPI StrFormatByteSizeA ( DWORD dw, LPSTR pszBuf, UINT cchBuf );
194LPWSTR WINAPI StrFormatByteSizeW ( DWORD dw, LPWSTR pszBuf, UINT cchBuf );
195#define StrFormatByteSize WINELIB_NAME_AW(StrFormatByteSize)
196
197
198
199HRESULT WINAPI StrRetToBufA (LPSTRRET src, const ITEMIDLIST *pidl, LPSTR dest, DWORD len);
200HRESULT WINAPI StrRetToBufW (LPSTRRET src, const ITEMIDLIST *pidl, LPWSTR dest, DWORD len);
201#define StrRetToBuf WINELIB_NAME_AW(StrRetToBuf)
202
203HRESULT WINAPI SHDeleteKeyA(HKEY hKey, LPCSTR lpszSubKey);
204HRESULT WINAPI SHDeleteKeyW(HKEY hkey, LPCWSTR pszSubKey);
205#define SHDeleteKey WINELIB_NAME_AW(SHDeleteKey)
206
207DWORD WINAPI SHDeleteEmptyKeyA(HKEY hKey, LPCSTR lpszSubKey);
208DWORD WINAPI SHDeleteEmptyKeyW(HKEY hKey, LPCWSTR lpszSubKey);
209#define SHDeleteEmptyKey WINELIB_NAME_AW(SHDeleteEmptyKey)
210
211HRESULT WINAPI UrlCanonicalizeA(LPCSTR pszUrl, LPSTR pszCanonicalized,
212 LPDWORD pcchCanonicalized, DWORD dwFlags);
213HRESULT WINAPI UrlCanonicalizeW(LPCWSTR pszUrl, LPWSTR pszCanonicalized,
214 LPDWORD pcchCanonicalized, DWORD dwFlags);
215#define UrlCanonicalize WINELIB_NAME_AW(UrlCanoncalize)
216
217HRESULT WINAPI UrlEscapeA(LPCSTR pszUrl, LPSTR pszEscaped, LPDWORD pcchEscaped,
218 DWORD dwFlags);
219HRESULT WINAPI UrlEscapeW(LPCWSTR pszUrl, LPWSTR pszEscaped,
220 LPDWORD pcchEscaped, DWORD dwFlags);
221#define UrlEscape WINELIB_NAME_AW(UrlEscape)
222
223HRESULT WINAPI UrlUnescapeA(LPCSTR pszUrl, LPSTR pszUnescaped,
224 LPDWORD pcchUnescaped, DWORD dwFlags);
225HRESULT WINAPI UrlUnescapeW(LPCWSTR pszUrl, LPWSTR pszUnescaped,
226 LPDWORD pcchUnescaped, DWORD dwFlags);
227#define UrlUnescape WINELIB_AW_NAME(UrlUnescape)
228
229#if 0
230typedef struct _DllVersionInfo {
231 DWORD cbSize;
232 DWORD dwMajorVersion;
233 DWORD dwMinorVersion;
234 DWORD dwBuildNumber;
235 DWORD dwPlatformID;
236} DLLVERSIONINFO;
237
238#define DLLVER_PLATFORM_WINDOWS 0x00000001 // Windows 9x
239#define DLLVER_PLATFORM_NT 0x00000002 // Windows NT
240
241typedef HRESULT CALLBACK (*DLLGETVERSIONPROC)(DLLVERSIONINFO *);
242#endif
243
244#ifdef __cplusplus
245} /* extern "C" */
246#endif /* defined(__cplusplus) */
247
248#endif /* __WINE_SHLWAPI_H */
Note: See TracBrowser for help on using the repository browser.