1 | /*
|
---|
2 | * Copyright (C) the Wine project
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | #ifndef __WINE_SHELLAPI_H
|
---|
29 | #define __WINE_SHELLAPI_H
|
---|
30 |
|
---|
31 | #ifdef __cplusplus
|
---|
32 | extern "C" {
|
---|
33 | #endif /* defined(__cplusplus) */
|
---|
34 |
|
---|
35 | #ifndef _WIN64
|
---|
36 | #include <pshpack1.h>
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | DECLARE_HANDLE(HDROP);
|
---|
40 |
|
---|
41 | /******************************************
|
---|
42 | * DragObject
|
---|
43 | */
|
---|
44 |
|
---|
45 | typedef struct _DRAGINFOA
|
---|
46 | { UINT uSize;
|
---|
47 | POINT pt;
|
---|
48 | BOOL fNC;
|
---|
49 | LPSTR lpFileList;
|
---|
50 | DWORD grfKeyState;
|
---|
51 | } DRAGINFOA, *LPDRAGINFOA;
|
---|
52 |
|
---|
53 | typedef struct _DRAGINFOW
|
---|
54 | { UINT uSize;
|
---|
55 | POINT pt;
|
---|
56 | BOOL fNC;
|
---|
57 | LPWSTR lpFileList;
|
---|
58 | DWORD grfKeyState;
|
---|
59 | } DRAGINFOW, *LPDRAGINFOW;
|
---|
60 |
|
---|
61 | DECL_WINELIB_TYPE_AW(DRAGINFO)
|
---|
62 | DECL_WINELIB_TYPE_AW(LPDRAGINFO)
|
---|
63 |
|
---|
64 | void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
|
---|
65 | UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
|
---|
66 | UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
|
---|
67 | #define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
|
---|
68 | void WINAPI DragFinish(HDROP h);
|
---|
69 | BOOL WINAPI DragQueryPoint(HDROP hDrop, POINT *p);
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|
73 | /******************************************
|
---|
74 | * Application Bar
|
---|
75 | */
|
---|
76 | #define ABM_NEW 0x00000000
|
---|
77 | #define ABM_REMOVE 0x00000001
|
---|
78 | #define ABM_QUERYPOS 0x00000002
|
---|
79 | #define ABM_SETPOS 0x00000003
|
---|
80 | #define ABM_GETSTATE 0x00000004
|
---|
81 | #define ABM_GETTASKBARPOS 0x00000005
|
---|
82 | #define ABM_ACTIVATE 0x00000006
|
---|
83 | #define ABM_GETAUTOHIDEBAR 0x00000007
|
---|
84 | #define ABM_SETAUTOHIDEBAR 0x00000008
|
---|
85 | #define ABM_WINDOWPOSCHANGED 0x00000009
|
---|
86 |
|
---|
87 | #define ABN_STATECHANGE 0x00000000
|
---|
88 | #define ABN_POSCHANGED 0x00000001
|
---|
89 | #define ABN_FULLSCREENAPP 0x00000002
|
---|
90 | #define ABN_WINDOWARRANGE 0x00000003
|
---|
91 |
|
---|
92 | #define ABS_AUTOHIDE 0x00000001
|
---|
93 | #define ABS_ALWAYSONTOP 0x00000002
|
---|
94 |
|
---|
95 | #define ABE_LEFT 0
|
---|
96 | #define ABE_TOP 1
|
---|
97 | #define ABE_RIGHT 2
|
---|
98 | #define ABE_BOTTOM 3
|
---|
99 |
|
---|
100 | typedef struct _AppBarData
|
---|
101 | { DWORD cbSize;
|
---|
102 | HWND hWnd;
|
---|
103 | UINT uCallbackMessage;
|
---|
104 | UINT uEdge;
|
---|
105 | RECT rc;
|
---|
106 | LPARAM lParam;
|
---|
107 | } APPBARDATA, *PAPPBARDATA;
|
---|
108 |
|
---|
109 | UINT_PTR WINAPI SHAppBarMessage(DWORD,PAPPBARDATA);
|
---|
110 |
|
---|
111 | /******************************************
|
---|
112 | * SHGetFileInfo
|
---|
113 | */
|
---|
114 |
|
---|
115 | #define SHGFI_LARGEICON 0x000000000 /* get large icon */
|
---|
116 | #define SHGFI_SMALLICON 0x000000001 /* get small icon */
|
---|
117 | #define SHGFI_OPENICON 0x000000002 /* get open icon */
|
---|
118 | #define SHGFI_SHELLICONSIZE 0x000000004 /* get shell size icon */
|
---|
119 | #define SHGFI_PIDL 0x000000008 /* pszPath is a pidl */
|
---|
120 | #define SHGFI_USEFILEATTRIBUTES 0x000000010 /* use passed dwFileAttribute */
|
---|
121 | #define SHGFI_ADDOVERLAYS 0x000000020
|
---|
122 | #define SHGFI_OVERLAYINDEX 0x000000040
|
---|
123 | #define SHGFI_ICON 0x000000100 /* get icon */
|
---|
124 | #define SHGFI_DISPLAYNAME 0x000000200 /* get display name */
|
---|
125 | #define SHGFI_TYPENAME 0x000000400 /* get type name */
|
---|
126 | #define SHGFI_ATTRIBUTES 0x000000800 /* get attributes */
|
---|
127 | #define SHGFI_ICONLOCATION 0x000001000 /* get icon location */
|
---|
128 | #define SHGFI_EXETYPE 0x000002000 /* return exe type */
|
---|
129 | #define SHGFI_SYSICONINDEX 0x000004000 /* get system icon index */
|
---|
130 | #define SHGFI_LINKOVERLAY 0x000008000 /* put a link overlay on icon */
|
---|
131 | #define SHGFI_SELECTED 0x000010000 /* show icon in selected state */
|
---|
132 | #define SHGFI_ATTR_SPECIFIED 0x000020000 /* get only specified attributes */
|
---|
133 |
|
---|
134 | typedef struct tagSHFILEINFOA
|
---|
135 | { HICON hIcon; /* icon */
|
---|
136 | int iIcon; /* icon index */
|
---|
137 | DWORD dwAttributes; /* SFGAO_ flags */
|
---|
138 | CHAR szDisplayName[MAX_PATH];/* display name (or path) */
|
---|
139 | CHAR szTypeName[80]; /* type name */
|
---|
140 | } SHFILEINFOA;
|
---|
141 |
|
---|
142 | typedef struct tagSHFILEINFOW
|
---|
143 | { HICON hIcon; /* icon */
|
---|
144 | int iIcon; /* icon index */
|
---|
145 | DWORD dwAttributes; /* SFGAO_ flags */
|
---|
146 | WCHAR szDisplayName[MAX_PATH];/* display name (or path) */
|
---|
147 | WCHAR szTypeName[80]; /* type name */
|
---|
148 | } SHFILEINFOW;
|
---|
149 |
|
---|
150 | DECL_WINELIB_TYPE_AW(SHFILEINFO)
|
---|
151 |
|
---|
152 | DWORD_PTR WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
|
---|
153 | DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
|
---|
154 | #define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
|
---|
155 |
|
---|
156 | /******************************************
|
---|
157 | * SHGetImageList
|
---|
158 | */
|
---|
159 |
|
---|
160 | HRESULT WINAPI SHGetImageList(INT, REFIID, void **);
|
---|
161 |
|
---|
162 | #define SHIL_LARGE 0x0
|
---|
163 | #define SHIL_SMALL 0x1
|
---|
164 | #define SHIL_EXTRALARGE 0x2
|
---|
165 | #define SHIL_SYSSMALL 0x3
|
---|
166 | #define SHIL_JUMBO 0x4
|
---|
167 | #define SHIL_LAST SHIL_JUMBO
|
---|
168 |
|
---|
169 | /******************************************
|
---|
170 | * SHSetFileInfo
|
---|
171 | */
|
---|
172 |
|
---|
173 | /******************************************
|
---|
174 | * SHFileOperation
|
---|
175 | */
|
---|
176 | #define FO_MOVE 0x0001
|
---|
177 | #define FO_COPY 0x0002
|
---|
178 | #define FO_DELETE 0x0003
|
---|
179 | #define FO_RENAME 0x0004
|
---|
180 |
|
---|
181 | #define FOF_MULTIDESTFILES 0x0001
|
---|
182 | #define FOF_CONFIRMMOUSE 0x0002
|
---|
183 | #define FOF_SILENT 0x0004
|
---|
184 | #define FOF_RENAMEONCOLLISION 0x0008
|
---|
185 | #define FOF_NOCONFIRMATION 0x0010
|
---|
186 | #define FOF_WANTMAPPINGHANDLE 0x0020
|
---|
187 | #define FOF_ALLOWUNDO 0x0040
|
---|
188 | #define FOF_FILESONLY 0x0080
|
---|
189 | #define FOF_SIMPLEPROGRESS 0x0100
|
---|
190 | #define FOF_NOCONFIRMMKDIR 0x0200
|
---|
191 | #define FOF_NOERRORUI 0x0400
|
---|
192 | #define FOF_NOCOPYSECURITYATTRIBS 0x0800
|
---|
193 | #define FOF_NORECURSION 0x1000 /* don't do recursion into directories */
|
---|
194 | #define FOF_NO_CONNECTED_ELEMENTS 0x2000 /* don't do connected files */
|
---|
195 | #define FOF_WANTNUKEWARNING 0x4000 /* during delete operation, warn if delete instead
|
---|
196 | of recycling (even if FOF_NOCONFIRMATION) */
|
---|
197 | #define FOF_NORECURSEREPARSE 0x8000 /* don't do recursion into reparse points */
|
---|
198 |
|
---|
199 | typedef WORD FILEOP_FLAGS;
|
---|
200 |
|
---|
201 | #define PO_DELETE 0x0013
|
---|
202 | #define PO_RENAME 0x0014
|
---|
203 | #define PO_PORTCHANGE 0x0020
|
---|
204 | #define PO_REN_PORT (PO_RENAME | PO_PORTCHANGE)
|
---|
205 |
|
---|
206 | typedef WORD PRINTEROP_FLAGS;
|
---|
207 |
|
---|
208 | typedef struct _SHFILEOPSTRUCTA
|
---|
209 | { HWND hwnd;
|
---|
210 | UINT wFunc;
|
---|
211 | LPCSTR pFrom;
|
---|
212 | LPCSTR pTo;
|
---|
213 | FILEOP_FLAGS fFlags;
|
---|
214 | BOOL fAnyOperationsAborted;
|
---|
215 | LPVOID hNameMappings;
|
---|
216 | LPCSTR lpszProgressTitle;
|
---|
217 | } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
|
---|
218 |
|
---|
219 | typedef struct _SHFILEOPSTRUCTW
|
---|
220 | { HWND hwnd;
|
---|
221 | UINT wFunc;
|
---|
222 | LPCWSTR pFrom;
|
---|
223 | LPCWSTR pTo;
|
---|
224 | FILEOP_FLAGS fFlags;
|
---|
225 | BOOL fAnyOperationsAborted;
|
---|
226 | LPVOID hNameMappings;
|
---|
227 | LPCWSTR lpszProgressTitle;
|
---|
228 | } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
|
---|
229 |
|
---|
230 | #define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
|
---|
231 | #define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
|
---|
232 |
|
---|
233 | int WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
|
---|
234 | int WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
|
---|
235 | #define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
|
---|
236 |
|
---|
237 | typedef struct _SHNAMEMAPPINGA
|
---|
238 | {
|
---|
239 | LPSTR pszOldPath;
|
---|
240 | LPSTR pszNewPath;
|
---|
241 | int cchOldPath;
|
---|
242 | int cchNewPath;
|
---|
243 | } SHNAMEMAPPINGA, *LPSHNAMEMAPPINGA;
|
---|
244 |
|
---|
245 | typedef struct _SHNAMEMAPPINGW
|
---|
246 | {
|
---|
247 | LPWSTR pszOldPath;
|
---|
248 | LPWSTR pszNewPath;
|
---|
249 | int cchOldPath;
|
---|
250 | int cchNewPath;
|
---|
251 | } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW;
|
---|
252 |
|
---|
253 | DECL_WINELIB_TYPE_AW(SHNAMEMAPPING)
|
---|
254 | DECL_WINELIB_TYPE_AW(LPSHNAMEMAPPING)
|
---|
255 |
|
---|
256 | void WINAPI SHFreeNameMappings(HANDLE hNameMappings);
|
---|
257 |
|
---|
258 | /******************************************
|
---|
259 | * ShellExecute
|
---|
260 | */
|
---|
261 | #define SE_ERR_SHARE 26
|
---|
262 | #define SE_ERR_ASSOCINCOMPLETE 27
|
---|
263 | #define SE_ERR_DDETIMEOUT 28
|
---|
264 | #define SE_ERR_DDEFAIL 29
|
---|
265 | #define SE_ERR_DDEBUSY 30
|
---|
266 | #define SE_ERR_NOASSOC 31
|
---|
267 |
|
---|
268 | HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
|
---|
269 | HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
|
---|
270 | #define ShellExecute WINELIB_NAME_AW(ShellExecute)
|
---|
271 |
|
---|
272 | #define SE_ERR_FNF 2 /* file not found */
|
---|
273 | #define SE_ERR_PNF 3 /* path not found */
|
---|
274 | #define SE_ERR_ACCESSDENIED 5 /* access denied */
|
---|
275 | #define SE_ERR_OOM 8 /* out of memory */
|
---|
276 | #define SE_ERR_DLLNOTFOUND 32
|
---|
277 | #define SE_ERR_SHARE 26
|
---|
278 | #define SE_ERR_ASSOCINCOMPLETE 27
|
---|
279 | #define SE_ERR_DDETIMEOUT 28
|
---|
280 | #define SE_ERR_DDEFAIL 29
|
---|
281 | #define SE_ERR_DDEBUSY 30
|
---|
282 | #define SE_ERR_NOASSOC 31
|
---|
283 |
|
---|
284 | #define SEE_MASK_CLASSNAME 0x00000001
|
---|
285 | #define SEE_MASK_CLASSKEY 0x00000003
|
---|
286 | #define SEE_MASK_IDLIST 0x00000004
|
---|
287 | #define SEE_MASK_INVOKEIDLIST 0x0000000c
|
---|
288 | #define SEE_MASK_ICON 0x00000010
|
---|
289 | #define SEE_MASK_HOTKEY 0x00000020
|
---|
290 | #define SEE_MASK_NOCLOSEPROCESS 0x00000040
|
---|
291 | #define SEE_MASK_CONNECTNETDRV 0x00000080
|
---|
292 | #define SEE_MASK_NOASYNC 0x00000100
|
---|
293 | #define SEE_MASK_FLAG_DDEWAIT SEE_MASK_NOASYNC
|
---|
294 | #define SEE_MASK_DOENVSUBST 0x00000200
|
---|
295 | #define SEE_MASK_FLAG_NO_UI 0x00000400
|
---|
296 | #define SEE_MASK_UNICODE 0x00004000
|
---|
297 | #define SEE_MASK_NO_CONSOLE 0x00008000
|
---|
298 | #define SEE_MASK_ASYNCOK 0x00100000
|
---|
299 | #define SEE_MASK_HMONITOR 0x00200000
|
---|
300 | #define SEE_MASK_NOZONECHECKS 0x00800000
|
---|
301 | #define SEE_MASK_NOQUERYCLASSSTORE 0x01000000
|
---|
302 | #define SEE_MASK_WAITFORINPUTIDLE 0x02000000
|
---|
303 | #define SEE_MASK_FLAG_LOG_USAGE 0x04000000
|
---|
304 |
|
---|
305 | typedef struct _SHELLEXECUTEINFOA
|
---|
306 | { DWORD cbSize;
|
---|
307 | ULONG fMask;
|
---|
308 | HWND hwnd;
|
---|
309 | LPCSTR lpVerb;
|
---|
310 | LPCSTR lpFile;
|
---|
311 | LPCSTR lpParameters;
|
---|
312 | LPCSTR lpDirectory;
|
---|
313 | INT nShow;
|
---|
314 | HINSTANCE hInstApp;
|
---|
315 | /* Optional fields */
|
---|
316 | LPVOID lpIDList;
|
---|
317 | LPCSTR lpClass;
|
---|
318 | HKEY hkeyClass;
|
---|
319 | DWORD dwHotKey;
|
---|
320 | union
|
---|
321 | { HANDLE hIcon;
|
---|
322 | HANDLE hMonitor;
|
---|
323 | } DUMMYUNIONNAME;
|
---|
324 | HANDLE hProcess;
|
---|
325 | } SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA;
|
---|
326 |
|
---|
327 | typedef struct _SHELLEXECUTEINFOW
|
---|
328 | { DWORD cbSize;
|
---|
329 | ULONG fMask;
|
---|
330 | HWND hwnd;
|
---|
331 | LPCWSTR lpVerb;
|
---|
332 | LPCWSTR lpFile;
|
---|
333 | LPCWSTR lpParameters;
|
---|
334 | LPCWSTR lpDirectory;
|
---|
335 | INT nShow;
|
---|
336 | HINSTANCE hInstApp;
|
---|
337 | /* Optional fields*/
|
---|
338 | LPVOID lpIDList;
|
---|
339 | LPCWSTR lpClass;
|
---|
340 | HKEY hkeyClass;
|
---|
341 | DWORD dwHotKey;
|
---|
342 | union
|
---|
343 | { HANDLE hIcon;
|
---|
344 | HANDLE hMonitor;
|
---|
345 | } DUMMYUNIONNAME;
|
---|
346 | HANDLE hProcess;
|
---|
347 | } SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW;
|
---|
348 |
|
---|
349 | #define SHELLEXECUTEINFO WINELIB_NAME_AW(SHELLEXECUTEINFO)
|
---|
350 | #define LPSHELLEXECUTEINFO WINELIB_NAME_AW(LPSHELLEXECUTEINFO)
|
---|
351 |
|
---|
352 | BOOL WINAPI ShellExecuteExA(LPSHELLEXECUTEINFOA lpExecInfo);
|
---|
353 | BOOL WINAPI ShellExecuteExW(LPSHELLEXECUTEINFOW lpExecInfo);
|
---|
354 | #define ShellExecuteEx WINELIB_NAME_AW(ShellExecuteEx)
|
---|
355 |
|
---|
356 | void WINAPI WinExecErrorA(HWND hwnd,INT error, LPCSTR lpstrFileName, LPCSTR lpstrTitle);
|
---|
357 | void WINAPI WinExecErrorW(HWND hwnd,INT error, LPCWSTR lpstrFileName, LPCWSTR lpstrTitle);
|
---|
358 | #define WinExecError WINELIB_NAME_AW(WinExecError)
|
---|
359 |
|
---|
360 | /******************************************
|
---|
361 | * Tray Notification
|
---|
362 | */
|
---|
363 | /* notifyicondata.uFlags values*/
|
---|
364 | #define NIF_MESSAGE 0x00000001
|
---|
365 | #define NIF_ICON 0x00000002
|
---|
366 | #define NIF_TIP 0x00000004
|
---|
367 | #define NIF_STATE 0x00000008
|
---|
368 | #define NIF_INFO 0x00000010
|
---|
369 | #define NIF_GUID 0x00000020
|
---|
370 | #define NIF_REALTIME 0x00000040
|
---|
371 | #define NIF_SHOWTIP 0x00000080
|
---|
372 |
|
---|
373 | /* notifyicondata.dwState values */
|
---|
374 | #define NIS_HIDDEN 0x00000001
|
---|
375 | #define NIS_SHAREDICON 0x00000002
|
---|
376 |
|
---|
377 | /* notifyicondata.dwInfoFlags values */
|
---|
378 | #define NIIF_NONE 0x00000000
|
---|
379 | #define NIIF_INFO 0x00000001
|
---|
380 | #define NIIF_WARNING 0x00000002
|
---|
381 | #define NIIF_ERROR 0x00000003
|
---|
382 | #define NIIF_USER 0x00000004
|
---|
383 | #define NIIF_ICONMASK 0x0000000f
|
---|
384 | #define NIIF_NOSOUND 0x00000010
|
---|
385 | #define NIIF_LARGEICON 0x00000020
|
---|
386 |
|
---|
387 | /* dwMessage values */
|
---|
388 | #define NIM_ADD 0x00000000
|
---|
389 | #define NIM_MODIFY 0x00000001
|
---|
390 | #define NIM_DELETE 0x00000002
|
---|
391 | #define NIM_SETFOCUS 0x00000003
|
---|
392 | #define NIM_SETVERSION 0x00000004
|
---|
393 |
|
---|
394 | #define NOTIFY_VERSION 3 /* supported by Windows 2000 and later */
|
---|
395 | #define NOTIFY_VERSION_4 4 /* supported by Windows Vista */
|
---|
396 |
|
---|
397 | /* callback message lParam values */
|
---|
398 | #define NIN_SELECT (WM_USER+0)
|
---|
399 | #define NINF_KEY 1
|
---|
400 | #define NIN_KEYSELECT (NIN_SELECT|NINF_KEY) /* WM_USER+1 */
|
---|
401 | #define NIN_BALOONSHOW (WM_USER+2)
|
---|
402 | #define NIN_BALOONHIDE (WM_USER+3)
|
---|
403 | #define NIN_BALOONTIMEOUT (WM_USER+4)
|
---|
404 | #define NIN_BALOONCLICK (WM_USER+5)
|
---|
405 | #define NIN_POPUPOPEN (WM_USER+6)
|
---|
406 | #define NIN_POPUPCLOSE (WM_USER+7)
|
---|
407 |
|
---|
408 | typedef struct _NOTIFYICONDATAA
|
---|
409 | { DWORD cbSize;
|
---|
410 | HWND hWnd;
|
---|
411 | UINT uID;
|
---|
412 | UINT uFlags;
|
---|
413 | UINT uCallbackMessage;
|
---|
414 | HICON hIcon;
|
---|
415 | CHAR szTip[128];
|
---|
416 | DWORD dwState;
|
---|
417 | DWORD dwStateMask;
|
---|
418 | CHAR szInfo[256];
|
---|
419 | union {
|
---|
420 | UINT uTimeout;
|
---|
421 | UINT uVersion;
|
---|
422 | } DUMMYUNIONNAME;
|
---|
423 | CHAR szInfoTitle[64];
|
---|
424 | DWORD dwInfoFlags;
|
---|
425 | GUID guidItem;
|
---|
426 | HICON hBalloonIcon;
|
---|
427 | } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
|
---|
428 |
|
---|
429 | typedef struct _NOTIFYICONDATAW
|
---|
430 | { DWORD cbSize;
|
---|
431 | HWND hWnd;
|
---|
432 | UINT uID;
|
---|
433 | UINT uFlags;
|
---|
434 | UINT uCallbackMessage;
|
---|
435 | HICON hIcon;
|
---|
436 | WCHAR szTip[128];
|
---|
437 | DWORD dwState;
|
---|
438 | DWORD dwStateMask;
|
---|
439 | WCHAR szInfo[256];
|
---|
440 | union {
|
---|
441 | UINT uTimeout;
|
---|
442 | UINT uVersion;
|
---|
443 | } DUMMYUNIONNAME;
|
---|
444 | WCHAR szInfoTitle[64];
|
---|
445 | DWORD dwInfoFlags;
|
---|
446 | GUID guidItem;
|
---|
447 | HICON hBalloonIcon;
|
---|
448 | } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
|
---|
449 |
|
---|
450 | DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
|
---|
451 | DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA)
|
---|
452 |
|
---|
453 | BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData);
|
---|
454 | BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData);
|
---|
455 |
|
---|
456 | #define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
|
---|
457 |
|
---|
458 | /* pre IE 5.0 */
|
---|
459 | #define NOTIFYICONDATAA_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAA, szTip[64])
|
---|
460 | #define NOTIFYICONDATAW_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAW, szTip[64])
|
---|
461 |
|
---|
462 | /* pre Window XP */
|
---|
463 | #define NOTIFYICONDATAA_V2_SIZE FIELD_OFFSET(NOTIFYICONDATAA, guidItem)
|
---|
464 | #define NOTIFYICONDATAW_V2_SIZE FIELD_OFFSET(NOTIFYICONDATAW, guidItem)
|
---|
465 |
|
---|
466 | /* pre Window Vista */
|
---|
467 | #define NOTIFYICONDATAA_V3_SIZE FIELD_OFFSET(NOTIFYICONDATAA, hBalloonIcon)
|
---|
468 | #define NOTIFYICONDATAW_V3_SIZE FIELD_OFFSET(NOTIFYICONDATAW, hBalloonIcon)
|
---|
469 |
|
---|
470 |
|
---|
471 | /******************************************
|
---|
472 | * Links
|
---|
473 | */
|
---|
474 |
|
---|
475 | #define SHGNLI_PIDL 0x01
|
---|
476 | #define SHGNLI_PREFIXNAME 0x02
|
---|
477 | #define SHGNLI_NOUNIQUE 0x04
|
---|
478 | #define SHGNLI_NOLNK 0x08
|
---|
479 |
|
---|
480 | BOOL WINAPI SHGetNewLinkInfoA(LPCSTR,LPCSTR,LPSTR,BOOL*,UINT);
|
---|
481 | BOOL WINAPI SHGetNewLinkInfoW(LPCWSTR,LPCWSTR,LPWSTR,BOOL*,UINT);
|
---|
482 | #define SHGetNewLinkInfo WINELIB_NAME_AW(SHGetNewLinkInfo)
|
---|
483 |
|
---|
484 | /******************************************
|
---|
485 | * Recycle bin
|
---|
486 | */
|
---|
487 |
|
---|
488 | typedef struct _SHQUERYRBINFO
|
---|
489 | {
|
---|
490 | DWORD cbSize;
|
---|
491 | DWORDLONG i64Size;
|
---|
492 | DWORDLONG i64NumItems;
|
---|
493 | } SHQUERYRBINFO, *LPSHQUERYRBINFO;
|
---|
494 |
|
---|
495 | HRESULT WINAPI SHEmptyRecycleBinA(HWND,LPCSTR,DWORD);
|
---|
496 | HRESULT WINAPI SHEmptyRecycleBinW(HWND,LPCWSTR,DWORD);
|
---|
497 | #define SHEmptyRecycleBin WINELIB_NAME_AW(SHEmptyRecycleBin)
|
---|
498 | HRESULT WINAPI SHQueryRecycleBinA(LPCSTR,LPSHQUERYRBINFO);
|
---|
499 | HRESULT WINAPI SHQueryRecycleBinW(LPCWSTR,LPSHQUERYRBINFO);
|
---|
500 | #define SHQueryRecycleBin WINELIB_NAME_AW(SHQueryRecycleBin)
|
---|
501 |
|
---|
502 | /******************************************
|
---|
503 | * Misc
|
---|
504 | */
|
---|
505 |
|
---|
506 | LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR,int*);
|
---|
507 | HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
|
---|
508 | HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
|
---|
509 | #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
|
---|
510 | HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
|
---|
511 | HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
|
---|
512 | #define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
|
---|
513 | HICON WINAPI ExtractAssociatedIconExA(HINSTANCE,LPSTR,LPWORD,LPWORD);
|
---|
514 | HICON WINAPI ExtractAssociatedIconExW(HINSTANCE,LPWSTR,LPWORD,LPWORD);
|
---|
515 | #define ExtractAssociatedIconEx WINELIB_NAME_AW(ExtractAssociatedIconEx)
|
---|
516 | UINT WINAPI ExtractIconExA(LPCSTR,INT,HICON*,HICON*,UINT);
|
---|
517 | UINT WINAPI ExtractIconExW(LPCWSTR,INT,HICON*,HICON*,UINT);
|
---|
518 | #define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
|
---|
519 | HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
|
---|
520 | HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
|
---|
521 | #define FindExecutable WINELIB_NAME_AW(FindExecutable)
|
---|
522 | BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
|
---|
523 | BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
|
---|
524 | #define ShellAbout WINELIB_NAME_AW(ShellAbout)
|
---|
525 | int WINAPIV ShellMessageBoxA(HINSTANCE,HWND,LPCSTR,LPCSTR,UINT,...);
|
---|
526 | int WINAPIV ShellMessageBoxW(HINSTANCE,HWND,LPCWSTR,LPCWSTR,UINT,...);
|
---|
527 | #define ShellMessageBox WINELIB_NAME_AW(ShellMessageBox)
|
---|
528 | DWORD WINAPI DoEnvironmentSubstA(LPSTR, UINT);
|
---|
529 | DWORD WINAPI DoEnvironmentSubstW(LPWSTR, UINT);
|
---|
530 | #define DoEnvironmentSubst WINELIB_NAME_AW(DoEnvironmentSubst)
|
---|
531 |
|
---|
532 |
|
---|
533 | #ifdef __cplusplus
|
---|
534 | } /* extern "C" */
|
---|
535 | #endif /* defined(__cplusplus) */
|
---|
536 |
|
---|
537 | #ifndef _WIN64
|
---|
538 | #include <poppack.h>
|
---|
539 | #endif
|
---|
540 |
|
---|
541 | #endif /* __WINE_SHELLAPI_H */
|
---|