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