source: trunk/include/win/shellapi.h

Last change on this file was 21916, checked in by dmik, 14 years ago

Merge branch gcc-kmk to trunk.

File size: 8.9 KB
Line 
1#ifndef _WINE_SHELLAPI_H
2#define _WINE_SHELLAPI_H
3
4#include "windef.h"
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#pragma pack(1)
11
12/******************************************
13 * DragObject
14 */
15
16typedef struct _DRAGINFOA
17{ UINT uSize;
18 POINT pt;
19 BOOL fNC;
20 LPSTR lpFileList;
21 DWORD grfKeyState;
22} DRAGINFOA, * LPDRAGINFOA;
23
24typedef struct _DRAGINFOW
25{ UINT uSize;
26 POINT pt;
27 BOOL fNC;
28 LPWSTR lpFileList;
29 DWORD grfKeyState;
30} DRAGINFOW, LPDRAGINFOW;
31
32void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
33void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
34
35UINT16 WINAPI DragQueryFile16(HDROP16 hDrop, WORD wFile, LPSTR lpszFile, WORD wLength);
36UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
37UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
38#define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
39
40void WINAPI DragFinish16(HDROP16 h);
41void WINAPI DragFinish(HDROP h);
42
43BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p);
44BOOL WINAPI DragQueryPoint(HDROP hDrop, POINT *p);
45
46#define NIF_MESSAGE 0x00000001
47#define NIF_ICON 0x00000002
48#define NIF_TIP 0x00000004
49
50#define NIM_ADD 0x00000000
51#define NIM_MODIFY 0x00000001
52#define NIM_DELETE 0x00000002
53
54
55
56/******************************************
57 * Application Bar
58 */
59#define ABM_NEW 0x00000000
60#define ABM_REMOVE 0x00000001
61#define ABM_QUERYPOS 0x00000002
62#define ABM_SETPOS 0x00000003
63#define ABM_GETSTATE 0x00000004
64#define ABM_GETTASKBARPOS 0x00000005
65#define ABM_ACTIVATE 0x00000006
66#define ABM_GETAUTOHIDEBAR 0x00000007
67#define ABM_SETAUTOHIDEBAR 0x00000008
68#define ABM_WINDOWPOSCHANGED 0x00000009
69
70#define ABN_STATECHANGE 0x00000000
71#define ABN_POSCHANGED 0x00000001
72#define ABN_FULLSCREENAPP 0x00000002
73#define ABN_WINDOWARRANGE 0x00000003
74
75#define ABS_AUTOHIDE 0x00000001
76#define ABS_ALWAYSONTOP 0x00000002
77
78#define ABE_LEFT 0
79#define ABE_TOP 1
80#define ABE_RIGHT 2
81#define ABE_BOTTOM 3
82
83typedef struct _AppBarData
84{ DWORD cbSize;
85 HWND hWnd;
86 UINT uCallbackMessage;
87 UINT uEdge;
88 RECT rc;
89 LPARAM lParam;
90} APPBARDATA, *PAPPBARDATA;
91
92
93/******************************************
94 * SHGetFileInfo
95 */
96
97#define SHGFI_LARGEICON 0x000000000 /* get large icon */
98#define SHGFI_SMALLICON 0x000000001 /* get small icon */
99#define SHGFI_OPENICON 0x000000002 /* get open icon */
100#define SHGFI_SHELLICONSIZE 0x000000004 /* get shell size icon */
101#define SHGFI_PIDL 0x000000008 /* pszPath is a pidl */
102#define SHGFI_USEFILEATTRIBUTES 0x000000010 /* use passed dwFileAttribute */
103#define SHGFI_UNKNOWN1 0x000000020
104#define SHGFI_UNKNOWN2 0x000000040
105#define SHGFI_UNKNOWN3 0x000000080
106#define SHGFI_ICON 0x000000100 /* get icon */
107#define SHGFI_DISPLAYNAME 0x000000200 /* get display name */
108#define SHGFI_TYPENAME 0x000000400 /* get type name */
109#define SHGFI_ATTRIBUTES 0x000000800 /* get attributes */
110#define SHGFI_ICONLOCATION 0x000001000 /* get icon location */
111#define SHGFI_EXETYPE 0x000002000 /* return exe type */
112#define SHGFI_SYSICONINDEX 0x000004000 /* get system icon index */
113#define SHGFI_LINKOVERLAY 0x000008000 /* put a link overlay on icon */
114#define SHGFI_SELECTED 0x000010000 /* show icon in selected state */
115#define SHGFI_ATTR_SPECIFIED 0x000020000 /* get only specified attributes */
116
117typedef struct tagSHFILEINFOA
118{ HICON hIcon; /* icon */
119 int iIcon; /* icon index */
120 DWORD dwAttributes; /* SFGAO_ flags */
121 CHAR szDisplayName[MAX_PATH];/* display name (or path) */
122 CHAR szTypeName[80]; /* type name */
123} SHFILEINFOA;
124
125typedef struct tagSHFILEINFOW
126{ HICON hIcon; /* icon */
127 int iIcon; /* icon index */
128 DWORD dwAttributes; /* SFGAO_ flags */
129 WCHAR szDisplayName[MAX_PATH];/* display name (or path) */
130 WCHAR szTypeName[80]; /* type name */
131} SHFILEINFOW;
132
133DECL_WINELIB_TYPE_AW(SHFILEINFO)
134
135DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
136DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
137#define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
138
139/******************************************
140 * SHSetFileInfo
141 */
142
143/******************************************
144* SHFileOperation
145*/
146#define FO_MOVE 0x0001
147#define FO_COPY 0x0002
148#define FO_DELETE 0x0003
149#define FO_RENAME 0x0004
150
151#define FOF_MULTIDESTFILES 0x0001
152#define FOF_CONFIRMMOUSE 0x0002
153#define FOF_SILENT 0x0004
154#define FOF_RENAMEONCOLLISION 0x0008
155#define FOF_NOCONFIRMATION 0x0010
156#define FOF_WANTMAPPINGHANDLE 0x0020
157#define FOF_ALLOWUNDO 0x0040
158#define FOF_FILESONLY 0x0080
159#define FOF_SIMPLEPROGRESS 0x0100
160#define FOF_NOCONFIRMMKDIR 0x0200
161#define FOF_NOERRORUI 0x0400
162#define FOF_NOCOPYSECURITYATTRIBS 0x0800
163
164typedef WORD FILEOP_FLAGS;
165
166#define PO_DELETE 0x0013
167#define PO_RENAME 0x0014
168#define PO_PORTCHANGE 0x0020
169
170typedef WORD PRINTEROP_FLAGS;
171
172typedef struct _SHNAMEMAPPINGW {
173 LPWSTR pszOldPath;
174 LPWSTR pszNewPath;
175 int cchOldPath;
176 int cchNewPath;
177} SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW;
178
179typedef struct _SHFILEOPSTRUCTA
180{ HWND hwnd;
181 UINT wFunc;
182 LPCSTR pFrom;
183 LPCSTR pTo;
184 FILEOP_FLAGS fFlags;
185 BOOL fAnyOperationsAborted;
186 LPVOID hNameMappings;
187 LPCSTR lpszProgressTitle;
188} SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
189
190typedef struct _SHFILEOPSTRUCTW
191{ HWND hwnd;
192 UINT wFunc;
193 LPCWSTR pFrom;
194 LPCWSTR pTo;
195 FILEOP_FLAGS fFlags;
196 BOOL fAnyOperationsAborted;
197 LPVOID hNameMappings;
198 LPCWSTR lpszProgressTitle;
199} SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
200
201#define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
202#define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
203
204DWORD WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
205DWORD WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
206#define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
207
208
209/*************************************
210 * code that is shared with shlobj.h *
211 *************************************/
212
213/******************************************
214 * ShellExecute
215 */
216#define SE_ERR_SHARE 26
217#define SE_ERR_ASSOCINCOMPLETE 27
218#define SE_ERR_DDETIMEOUT 28
219#define SE_ERR_DDEFAIL 29
220#define SE_ERR_DDEBUSY 30
221#define SE_ERR_NOASSOC 31
222
223HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
224HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
225#define ShellExecute WINELIB_NAME_AW(ShellExecute)
226
227/******************************************
228 * Tray Notification
229 */
230typedef struct _NOTIFYICONDATAA
231{ DWORD cbSize;
232 HWND hWnd;
233 UINT uID;
234 UINT uFlags;
235 UINT uCallbackMessage;
236 HICON hIcon;
237 CHAR szTip[64];
238} NOTIFYICONDATAA, *PNOTIFYICONDATAA;
239
240typedef struct _NOTIFYICONDATAW
241{ DWORD cbSize;
242 HWND hWnd;
243 UINT uID;
244 UINT uFlags;
245 UINT uCallbackMessage;
246 HICON hIcon;
247 WCHAR szTip[64];
248} NOTIFYICONDATAW, *PNOTIFYICONDATAW;
249
250DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
251DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA)
252
253BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData);
254BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData);
255#define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
256
257#define SEE_MASK_CLASSNAME 0x00000001
258#define SEE_MASK_CLASSKEY 0x00000003
259#define SEE_MASK_IDLIST 0x00000004
260#define SEE_MASK_INVOKEIDLIST 0x0000000c
261#define SEE_MASK_ICON 0x00000010
262#define SEE_MASK_HOTKEY 0x00000020
263#define SEE_MASK_NOCLOSEPROCESS 0x00000040
264#define SEE_MASK_CONNECTNETDRV 0x00000080
265#define SEE_MASK_FLAG_DDEWAIT 0x00000100
266#define SEE_MASK_DOENVSUBST 0x00000200
267#define SEE_MASK_FLAG_NO_UI 0x00000400
268#define SEE_MASK_UNICODE 0x00004000
269#define SEE_MASK_NO_CONSOLE 0x00008000
270#define SEE_MASK_ASYNCOK 0x00100000
271
272
273/******************************************
274 * Misc
275 */
276
277HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
278HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
279
280HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
281HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
282UINT WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
283UINT WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
284#define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
285UINT WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
286HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
287HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
288#define FindExecutable WINELIB_NAME_AW(FindExecutable)
289
290LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int*);
291
292BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
293BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
294#define ShellAbout WINELIB_NAME_AW(ShellAbout)
295
296#pragma pack(4)
297
298#ifdef __cplusplus
299} // extern "C"
300#endif
301
302#endif /* _WINE_SHELLAPI_H */
Note: See TracBrowser for help on using the repository browser.