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 | * Oracle 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, Oracle 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 | #define FOF_NO_UI (FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)
|
---|
199 |
|
---|
200 | typedef WORD FILEOP_FLAGS;
|
---|
201 |
|
---|
202 | #define PO_DELETE 0x0013
|
---|
203 | #define PO_RENAME 0x0014
|
---|
204 | #define PO_PORTCHANGE 0x0020
|
---|
205 | #define PO_REN_PORT (PO_RENAME | PO_PORTCHANGE)
|
---|
206 |
|
---|
207 | typedef WORD PRINTEROP_FLAGS;
|
---|
208 |
|
---|
209 | typedef struct _SHFILEOPSTRUCTA
|
---|
210 | { HWND hwnd;
|
---|
211 | UINT wFunc;
|
---|
212 | LPCSTR pFrom;
|
---|
213 | LPCSTR pTo;
|
---|
214 | FILEOP_FLAGS fFlags;
|
---|
215 | BOOL fAnyOperationsAborted;
|
---|
216 | LPVOID hNameMappings;
|
---|
217 | LPCSTR lpszProgressTitle;
|
---|
218 | } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
|
---|
219 |
|
---|
220 | typedef struct _SHFILEOPSTRUCTW
|
---|
221 | { HWND hwnd;
|
---|
222 | UINT wFunc;
|
---|
223 | LPCWSTR pFrom;
|
---|
224 | LPCWSTR pTo;
|
---|
225 | FILEOP_FLAGS fFlags;
|
---|
226 | BOOL fAnyOperationsAborted;
|
---|
227 | LPVOID hNameMappings;
|
---|
228 | LPCWSTR lpszProgressTitle;
|
---|
229 | } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
|
---|
230 |
|
---|
231 | #define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
|
---|
232 | #define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
|
---|
233 |
|
---|
234 | int WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
|
---|
235 | int WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
|
---|
236 | #define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
|
---|
237 |
|
---|
238 | typedef struct _SHNAMEMAPPINGA
|
---|
239 | {
|
---|
240 | LPSTR pszOldPath;
|
---|
241 | LPSTR pszNewPath;
|
---|
242 | int cchOldPath;
|
---|
243 | int cchNewPath;
|
---|
244 | } SHNAMEMAPPINGA, *LPSHNAMEMAPPINGA;
|
---|
245 |
|
---|
246 | typedef struct _SHNAMEMAPPINGW
|
---|
247 | {
|
---|
248 | LPWSTR pszOldPath;
|
---|
249 | LPWSTR pszNewPath;
|
---|
250 | int cchOldPath;
|
---|
251 | int cchNewPath;
|
---|
252 | } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW;
|
---|
253 |
|
---|
254 | DECL_WINELIB_TYPE_AW(SHNAMEMAPPING)
|
---|
255 | DECL_WINELIB_TYPE_AW(LPSHNAMEMAPPING)
|
---|
256 |
|
---|
257 | void WINAPI SHFreeNameMappings(HANDLE hNameMappings);
|
---|
258 |
|
---|
259 | /******************************************
|
---|
260 | * ShellExecute
|
---|
261 | */
|
---|
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 | HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
|
---|
270 | HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
|
---|
271 | #define ShellExecute WINELIB_NAME_AW(ShellExecute)
|
---|
272 |
|
---|
273 | #define SE_ERR_FNF 2 /* file not found */
|
---|
274 | #define SE_ERR_PNF 3 /* path not found */
|
---|
275 | #define SE_ERR_ACCESSDENIED 5 /* access denied */
|
---|
276 | #define SE_ERR_OOM 8 /* out of memory */
|
---|
277 | #define SE_ERR_DLLNOTFOUND 32
|
---|
278 | #define SE_ERR_SHARE 26
|
---|
279 | #define SE_ERR_ASSOCINCOMPLETE 27
|
---|
280 | #define SE_ERR_DDETIMEOUT 28
|
---|
281 | #define SE_ERR_DDEFAIL 29
|
---|
282 | #define SE_ERR_DDEBUSY 30
|
---|
283 | #define SE_ERR_NOASSOC 31
|
---|
284 |
|
---|
285 | #define SEE_MASK_DEFAULT 0x00000000
|
---|
286 | #define SEE_MASK_CLASSNAME 0x00000001
|
---|
287 | #define SEE_MASK_CLASSKEY 0x00000003
|
---|
288 | #define SEE_MASK_IDLIST 0x00000004
|
---|
289 | #define SEE_MASK_INVOKEIDLIST 0x0000000c
|
---|
290 | #define SEE_MASK_ICON 0x00000010
|
---|
291 | #define SEE_MASK_HOTKEY 0x00000020
|
---|
292 | #define SEE_MASK_NOCLOSEPROCESS 0x00000040
|
---|
293 | #define SEE_MASK_CONNECTNETDRV 0x00000080
|
---|
294 | #define SEE_MASK_NOASYNC 0x00000100
|
---|
295 | #define SEE_MASK_FLAG_DDEWAIT SEE_MASK_NOASYNC
|
---|
296 | #define SEE_MASK_DOENVSUBST 0x00000200
|
---|
297 | #define SEE_MASK_FLAG_NO_UI 0x00000400
|
---|
298 | #define SEE_MASK_UNICODE 0x00004000
|
---|
299 | #define SEE_MASK_NO_CONSOLE 0x00008000
|
---|
300 | #define SEE_MASK_ASYNCOK 0x00100000
|
---|
301 | #define SEE_MASK_HMONITOR 0x00200000
|
---|
302 | #define SEE_MASK_NOZONECHECKS 0x00800000
|
---|
303 | #define SEE_MASK_NOQUERYCLASSSTORE 0x01000000
|
---|
304 | #define SEE_MASK_WAITFORINPUTIDLE 0x02000000
|
---|
305 | #define SEE_MASK_FLAG_LOG_USAGE 0x04000000
|
---|
306 |
|
---|
307 | typedef struct _SHELLEXECUTEINFOA
|
---|
308 | { DWORD cbSize;
|
---|
309 | ULONG fMask;
|
---|
310 | HWND hwnd;
|
---|
311 | LPCSTR lpVerb;
|
---|
312 | LPCSTR lpFile;
|
---|
313 | LPCSTR lpParameters;
|
---|
314 | LPCSTR lpDirectory;
|
---|
315 | INT nShow;
|
---|
316 | HINSTANCE hInstApp;
|
---|
317 | /* Optional fields */
|
---|
318 | LPVOID lpIDList;
|
---|
319 | LPCSTR lpClass;
|
---|
320 | HKEY hkeyClass;
|
---|
321 | DWORD dwHotKey;
|
---|
322 | union
|
---|
323 | { HANDLE hIcon;
|
---|
324 | HANDLE hMonitor;
|
---|
325 | } DUMMYUNIONNAME;
|
---|
326 | HANDLE hProcess;
|
---|
327 | } SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA;
|
---|
328 |
|
---|
329 | typedef struct _SHELLEXECUTEINFOW
|
---|
330 | { DWORD cbSize;
|
---|
331 | ULONG fMask;
|
---|
332 | HWND hwnd;
|
---|
333 | LPCWSTR lpVerb;
|
---|
334 | LPCWSTR lpFile;
|
---|
335 | LPCWSTR lpParameters;
|
---|
336 | LPCWSTR lpDirectory;
|
---|
337 | INT nShow;
|
---|
338 | HINSTANCE hInstApp;
|
---|
339 | /* Optional fields*/
|
---|
340 | LPVOID lpIDList;
|
---|
341 | LPCWSTR lpClass;
|
---|
342 | HKEY hkeyClass;
|
---|
343 | DWORD dwHotKey;
|
---|
344 | union
|
---|
345 | { HANDLE hIcon;
|
---|
346 | HANDLE hMonitor;
|
---|
347 | } DUMMYUNIONNAME;
|
---|
348 | HANDLE hProcess;
|
---|
349 | } SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW;
|
---|
350 |
|
---|
351 | #define SHELLEXECUTEINFO WINELIB_NAME_AW(SHELLEXECUTEINFO)
|
---|
352 | #define LPSHELLEXECUTEINFO WINELIB_NAME_AW(LPSHELLEXECUTEINFO)
|
---|
353 |
|
---|
354 | BOOL WINAPI ShellExecuteExA(LPSHELLEXECUTEINFOA lpExecInfo);
|
---|
355 | BOOL WINAPI ShellExecuteExW(LPSHELLEXECUTEINFOW lpExecInfo);
|
---|
356 | #define ShellExecuteEx WINELIB_NAME_AW(ShellExecuteEx)
|
---|
357 |
|
---|
358 | void WINAPI WinExecErrorA(HWND hwnd,INT error, LPCSTR lpstrFileName, LPCSTR lpstrTitle);
|
---|
359 | void WINAPI WinExecErrorW(HWND hwnd,INT error, LPCWSTR lpstrFileName, LPCWSTR lpstrTitle);
|
---|
360 | #define WinExecError WINELIB_NAME_AW(WinExecError)
|
---|
361 |
|
---|
362 | /******************************************
|
---|
363 | * Tray Notification
|
---|
364 | */
|
---|
365 | /* notifyicondata.uFlags values*/
|
---|
366 | #define NIF_MESSAGE 0x00000001
|
---|
367 | #define NIF_ICON 0x00000002
|
---|
368 | #define NIF_TIP 0x00000004
|
---|
369 | #define NIF_STATE 0x00000008
|
---|
370 | #define NIF_INFO 0x00000010
|
---|
371 | #define NIF_GUID 0x00000020
|
---|
372 | #define NIF_REALTIME 0x00000040
|
---|
373 | #define NIF_SHOWTIP 0x00000080
|
---|
374 |
|
---|
375 | /* notifyicondata.dwState values */
|
---|
376 | #define NIS_HIDDEN 0x00000001
|
---|
377 | #define NIS_SHAREDICON 0x00000002
|
---|
378 |
|
---|
379 | /* notifyicondata.dwInfoFlags values */
|
---|
380 | #define NIIF_NONE 0x00000000
|
---|
381 | #define NIIF_INFO 0x00000001
|
---|
382 | #define NIIF_WARNING 0x00000002
|
---|
383 | #define NIIF_ERROR 0x00000003
|
---|
384 | #define NIIF_USER 0x00000004
|
---|
385 | #define NIIF_ICONMASK 0x0000000f
|
---|
386 | #define NIIF_NOSOUND 0x00000010
|
---|
387 | #define NIIF_LARGEICON 0x00000020
|
---|
388 |
|
---|
389 | /* dwMessage values */
|
---|
390 | #define NIM_ADD 0x00000000
|
---|
391 | #define NIM_MODIFY 0x00000001
|
---|
392 | #define NIM_DELETE 0x00000002
|
---|
393 | #define NIM_SETFOCUS 0x00000003
|
---|
394 | #define NIM_SETVERSION 0x00000004
|
---|
395 |
|
---|
396 | #define NOTIFY_VERSION 3 /* supported by Windows 2000 and later */
|
---|
397 | #define NOTIFY_VERSION_4 4 /* supported by Windows Vista */
|
---|
398 |
|
---|
399 | /* callback message lParam values */
|
---|
400 | #define NIN_SELECT (WM_USER+0)
|
---|
401 | #define NINF_KEY 1
|
---|
402 | #define NIN_KEYSELECT (NIN_SELECT|NINF_KEY) /* WM_USER+1 */
|
---|
403 | #define NIN_BALOONSHOW (WM_USER+2)
|
---|
404 | #define NIN_BALOONHIDE (WM_USER+3)
|
---|
405 | #define NIN_BALOONTIMEOUT (WM_USER+4)
|
---|
406 | #define NIN_BALOONCLICK (WM_USER+5)
|
---|
407 | #define NIN_POPUPOPEN (WM_USER+6)
|
---|
408 | #define NIN_POPUPCLOSE (WM_USER+7)
|
---|
409 |
|
---|
410 | typedef struct _NOTIFYICONDATAA
|
---|
411 | { DWORD cbSize;
|
---|
412 | HWND hWnd;
|
---|
413 | UINT uID;
|
---|
414 | UINT uFlags;
|
---|
415 | UINT uCallbackMessage;
|
---|
416 | HICON hIcon;
|
---|
417 | CHAR szTip[128];
|
---|
418 | DWORD dwState;
|
---|
419 | DWORD dwStateMask;
|
---|
420 | CHAR szInfo[256];
|
---|
421 | union {
|
---|
422 | UINT uTimeout;
|
---|
423 | UINT uVersion;
|
---|
424 | } DUMMYUNIONNAME;
|
---|
425 | CHAR szInfoTitle[64];
|
---|
426 | DWORD dwInfoFlags;
|
---|
427 | GUID guidItem;
|
---|
428 | HICON hBalloonIcon;
|
---|
429 | } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
|
---|
430 |
|
---|
431 | typedef struct _NOTIFYICONDATAW
|
---|
432 | { DWORD cbSize;
|
---|
433 | HWND hWnd;
|
---|
434 | UINT uID;
|
---|
435 | UINT uFlags;
|
---|
436 | UINT uCallbackMessage;
|
---|
437 | HICON hIcon;
|
---|
438 | WCHAR szTip[128];
|
---|
439 | DWORD dwState;
|
---|
440 | DWORD dwStateMask;
|
---|
441 | WCHAR szInfo[256];
|
---|
442 | union {
|
---|
443 | UINT uTimeout;
|
---|
444 | UINT uVersion;
|
---|
445 | } DUMMYUNIONNAME;
|
---|
446 | WCHAR szInfoTitle[64];
|
---|
447 | DWORD dwInfoFlags;
|
---|
448 | GUID guidItem;
|
---|
449 | HICON hBalloonIcon;
|
---|
450 | } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
|
---|
451 |
|
---|
452 | DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
|
---|
453 | DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA)
|
---|
454 |
|
---|
455 | BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData);
|
---|
456 | BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData);
|
---|
457 |
|
---|
458 | #define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
|
---|
459 |
|
---|
460 | /* pre IE 5.0 */
|
---|
461 | #define NOTIFYICONDATAA_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAA, szTip[64])
|
---|
462 | #define NOTIFYICONDATAW_V1_SIZE FIELD_OFFSET(NOTIFYICONDATAW, szTip[64])
|
---|
463 |
|
---|
464 | /* pre Window XP */
|
---|
465 | #define NOTIFYICONDATAA_V2_SIZE FIELD_OFFSET(NOTIFYICONDATAA, guidItem)
|
---|
466 | #define NOTIFYICONDATAW_V2_SIZE FIELD_OFFSET(NOTIFYICONDATAW, guidItem)
|
---|
467 |
|
---|
468 | /* pre Window Vista */
|
---|
469 | #define NOTIFYICONDATAA_V3_SIZE FIELD_OFFSET(NOTIFYICONDATAA, hBalloonIcon)
|
---|
470 | #define NOTIFYICONDATAW_V3_SIZE FIELD_OFFSET(NOTIFYICONDATAW, hBalloonIcon)
|
---|
471 |
|
---|
472 |
|
---|
473 | /******************************************
|
---|
474 | * Links
|
---|
475 | */
|
---|
476 |
|
---|
477 | #define SHGNLI_PIDL 0x01
|
---|
478 | #define SHGNLI_PREFIXNAME 0x02
|
---|
479 | #define SHGNLI_NOUNIQUE 0x04
|
---|
480 | #define SHGNLI_NOLNK 0x08
|
---|
481 |
|
---|
482 | BOOL WINAPI SHGetNewLinkInfoA(LPCSTR,LPCSTR,LPSTR,BOOL*,UINT);
|
---|
483 | BOOL WINAPI SHGetNewLinkInfoW(LPCWSTR,LPCWSTR,LPWSTR,BOOL*,UINT);
|
---|
484 | #define SHGetNewLinkInfo WINELIB_NAME_AW(SHGetNewLinkInfo)
|
---|
485 |
|
---|
486 | /******************************************
|
---|
487 | * Recycle bin
|
---|
488 | */
|
---|
489 |
|
---|
490 | typedef struct _SHQUERYRBINFO
|
---|
491 | {
|
---|
492 | DWORD cbSize;
|
---|
493 | DWORDLONG i64Size;
|
---|
494 | DWORDLONG i64NumItems;
|
---|
495 | } SHQUERYRBINFO, *LPSHQUERYRBINFO;
|
---|
496 |
|
---|
497 | HRESULT WINAPI SHEmptyRecycleBinA(HWND,LPCSTR,DWORD);
|
---|
498 | HRESULT WINAPI SHEmptyRecycleBinW(HWND,LPCWSTR,DWORD);
|
---|
499 | #define SHEmptyRecycleBin WINELIB_NAME_AW(SHEmptyRecycleBin)
|
---|
500 | HRESULT WINAPI SHQueryRecycleBinA(LPCSTR,LPSHQUERYRBINFO);
|
---|
501 | HRESULT WINAPI SHQueryRecycleBinW(LPCWSTR,LPSHQUERYRBINFO);
|
---|
502 | #define SHQueryRecycleBin WINELIB_NAME_AW(SHQueryRecycleBin)
|
---|
503 |
|
---|
504 | /******************************************
|
---|
505 | * Misc
|
---|
506 | */
|
---|
507 |
|
---|
508 | typedef enum SHSTOCKICONID
|
---|
509 | {
|
---|
510 | SIID_INVALID=-1,
|
---|
511 | SIID_DOCNOASSOC,
|
---|
512 | SIID_DOCASSOC,
|
---|
513 | SIID_APPLICATION,
|
---|
514 | SIID_FOLDER,
|
---|
515 | SIID_FOLDEROPEN,
|
---|
516 | SIID_DRIVE525,
|
---|
517 | SIID_DRIVE35,
|
---|
518 | SIID_DRIVERREMOVE,
|
---|
519 | SIID_DRIVERFIXED,
|
---|
520 | SIID_DRIVERNET,
|
---|
521 | SIID_DRIVERNETDISABLE,
|
---|
522 | SIID_DRIVERCD,
|
---|
523 | SIID_DRIVERRAM,
|
---|
524 | SIID_WORLD,
|
---|
525 | /* Missing: 14 */
|
---|
526 | SIID_SERVER = 15,
|
---|
527 | SIID_PRINTER,
|
---|
528 | SIID_MYNETWORK,
|
---|
529 | /* Missing: 18 - 21 */
|
---|
530 | SIID_FIND = 22,
|
---|
531 | SIID_HELP,
|
---|
532 | /* Missing: 24 - 27 */
|
---|
533 | SIID_SHARE = 28,
|
---|
534 | SIID_LINK,
|
---|
535 | SIID_SLOWFILE,
|
---|
536 | SIID_RECYCLER,
|
---|
537 | SIID_RECYCLERFULL,
|
---|
538 | /* Missing: 33 - 39 */
|
---|
539 | SIID_MEDIACDAUDIO = 40,
|
---|
540 | /* Missing: 41 - 46 */
|
---|
541 | SIID_LOCK = 47,
|
---|
542 | /* Missing: 48 */
|
---|
543 | SIID_AUTOLIST = 49,
|
---|
544 | SIID_PRINTERNET,
|
---|
545 | SIID_SERVERSHARE,
|
---|
546 | SIID_PRINTERFAX,
|
---|
547 | SIID_PRINTERFAXNET,
|
---|
548 | SIID_PRINTERFILE,
|
---|
549 | SIID_STACK,
|
---|
550 | SIID_MEDIASVCD,
|
---|
551 | SIID_STUFFEDFOLDER,
|
---|
552 | SIID_DRIVEUNKNOWN,
|
---|
553 | SIID_DRIVEDVD,
|
---|
554 | SIID_MEDIADVD,
|
---|
555 | SIID_MEDIADVDRAM,
|
---|
556 | SIID_MEDIADVDRW,
|
---|
557 | SIID_MEDIADVDR,
|
---|
558 | SIID_MEDIADVDROM,
|
---|
559 | SIID_MEDIACDAUDIOPLUS,
|
---|
560 | SIID_MEDIACDRW,
|
---|
561 | SIID_MEDIACDR,
|
---|
562 | SIID_MEDIACDBURN,
|
---|
563 | SIID_MEDIABLANKCD,
|
---|
564 | SIID_MEDIACDROM,
|
---|
565 | SIID_AUDIOFILES,
|
---|
566 | SIID_IMAGEFILES,
|
---|
567 | SIID_VIDEOFILES,
|
---|
568 | SIID_MIXEDFILES,
|
---|
569 | SIID_FOLDERBACK,
|
---|
570 | SIID_FOLDERFRONT,
|
---|
571 | SIID_SHIELD,
|
---|
572 | SIID_WARNING,
|
---|
573 | SIID_INFO,
|
---|
574 | SIID_ERROR,
|
---|
575 | SIID_KEY,
|
---|
576 | SIID_SOFTWARE,
|
---|
577 | SIID_RENAME,
|
---|
578 | SIID_DELETE,
|
---|
579 | SIID_MEDIAAUDIODVD,
|
---|
580 | SIID_MEDIAMOVIEDVD,
|
---|
581 | SIID_MEDIAENHANCEDCD,
|
---|
582 | SIID_MEDIAENHANCEDDVD,
|
---|
583 | SIID_MEDIAHDDVD,
|
---|
584 | SIID_MEDIABLUERAY,
|
---|
585 | SIID_MEDIAVCD,
|
---|
586 | SIID_MEDIADVDPLUSR,
|
---|
587 | SIID_MEDIADVDPLUSRW,
|
---|
588 | SIID_DESKTOPPC,
|
---|
589 | SIID_MOBILEPC,
|
---|
590 | SIID_USERS,
|
---|
591 | SIID_MEDIASMARTMEDIA,
|
---|
592 | SIID_MEDIACOMPACTFLASH,
|
---|
593 | SIID_DEVICECELLPHONE,
|
---|
594 | SIID_DEVICECAMERA,
|
---|
595 | SIID_DEVICEVIDEOCAMERA,
|
---|
596 | SIID_DEVICEAUDIOPLAYER,
|
---|
597 | SIID_NETWORKCONNECT,
|
---|
598 | SIID_INTERNET,
|
---|
599 | SIID_ZIPFILE,
|
---|
600 | SIID_SETTINGS,
|
---|
601 | /* Missing: 107 - 131 */
|
---|
602 | SIID_DRIVEHDDVD = 132,
|
---|
603 | SIID_DRIVEBD,
|
---|
604 | SIID_MEDIAHDDVDROM,
|
---|
605 | SIID_MEDIAHDDVDR,
|
---|
606 | SIID_MEDIAHDDVDRAM,
|
---|
607 | SIID_MEDIABDROM,
|
---|
608 | SIID_MEDIABDR,
|
---|
609 | SIID_MEDIABDRE,
|
---|
610 | SIID_CLUSTEREDDRIVE,
|
---|
611 | /* Missing: 141 - 174 */
|
---|
612 | SIID_MAX_ICONS = 175
|
---|
613 | }SHSTOCKICONID;
|
---|
614 |
|
---|
615 | typedef struct _SHSTOCKICONINFO
|
---|
616 | {
|
---|
617 | DWORD cbSize;
|
---|
618 | HICON hIcon;
|
---|
619 | INT iSysImageIndex;
|
---|
620 | INT iIcon;
|
---|
621 | WCHAR szPath[MAX_PATH];
|
---|
622 | } SHSTOCKICONINFO;
|
---|
623 |
|
---|
624 | /* flags for SHGetStockIconInfo */
|
---|
625 | #define SHGSI_ICONLOCATION 0
|
---|
626 | #define SHGSI_ICON SHGFI_ICON
|
---|
627 | #define SHGSI_SYSICONINDEX SHGFI_SYSICONINDEX
|
---|
628 | #define SHGSI_LINKOVERLAY SHGFI_LINKOVERLAY
|
---|
629 | #define SHGSI_SELECTED SHGFI_SELECTED
|
---|
630 | #define SHGSI_LARGEICON SHGFI_LARGEICON
|
---|
631 | #define SHGSI_SMALLICON SHGFI_SMALLICON
|
---|
632 | #define SHGSI_SHELLICONSIZE SHGFI_SHELLICONSIZE
|
---|
633 |
|
---|
634 | HRESULT WINAPI SHGetStockIconInfo(SHSTOCKICONID, UINT, SHSTOCKICONINFO*);
|
---|
635 | LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR,int*);
|
---|
636 | HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
|
---|
637 | HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
|
---|
638 | #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
|
---|
639 | HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
|
---|
640 | HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
|
---|
641 | #define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
|
---|
642 | HICON WINAPI ExtractAssociatedIconExA(HINSTANCE,LPSTR,LPWORD,LPWORD);
|
---|
643 | HICON WINAPI ExtractAssociatedIconExW(HINSTANCE,LPWSTR,LPWORD,LPWORD);
|
---|
644 | #define ExtractAssociatedIconEx WINELIB_NAME_AW(ExtractAssociatedIconEx)
|
---|
645 | UINT WINAPI ExtractIconExA(LPCSTR,INT,HICON*,HICON*,UINT);
|
---|
646 | UINT WINAPI ExtractIconExW(LPCWSTR,INT,HICON*,HICON*,UINT);
|
---|
647 | #define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
|
---|
648 | HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
|
---|
649 | HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
|
---|
650 | #define FindExecutable WINELIB_NAME_AW(FindExecutable)
|
---|
651 | BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
|
---|
652 | BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
|
---|
653 | #define ShellAbout WINELIB_NAME_AW(ShellAbout)
|
---|
654 | int WINAPIV ShellMessageBoxA(HINSTANCE,HWND,LPCSTR,LPCSTR,UINT,...);
|
---|
655 | int WINAPIV ShellMessageBoxW(HINSTANCE,HWND,LPCWSTR,LPCWSTR,UINT,...);
|
---|
656 | #define ShellMessageBox WINELIB_NAME_AW(ShellMessageBox)
|
---|
657 | DWORD WINAPI DoEnvironmentSubstA(LPSTR, UINT);
|
---|
658 | DWORD WINAPI DoEnvironmentSubstW(LPWSTR, UINT);
|
---|
659 | #define DoEnvironmentSubst WINELIB_NAME_AW(DoEnvironmentSubst)
|
---|
660 |
|
---|
661 |
|
---|
662 | #ifdef __cplusplus
|
---|
663 | } /* extern "C" */
|
---|
664 | #endif /* defined(__cplusplus) */
|
---|
665 |
|
---|
666 | #ifndef _WIN64
|
---|
667 | #include <poppack.h>
|
---|
668 | #endif
|
---|
669 |
|
---|
670 | #endif /* __WINE_SHELLAPI_H */
|
---|