Make sure edit and listbox controls are of same ASCII/Unicode style as
[wine.git] / include / shellapi.h
blob223c1383208d66d9129f7e8126faf3f41d30cbd0
1 /*
2 * Copyright (C) the Wine project
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.
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.
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_SHELLAPI_H
20 #define __WINE_SHELLAPI_H
22 #include "windef.h"
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* defined(__cplusplus) */
28 #include "pshpack1.h"
30 DECLARE_HANDLE(HDROP);
32 /******************************************
33 * DragObject
36 typedef struct _DRAGINFOA
37 { UINT uSize;
38 POINT pt;
39 BOOL fNC;
40 LPSTR lpFileList;
41 DWORD grfKeyState;
42 } DRAGINFOA, * LPDRAGINFOA;
44 typedef struct _DRAGINFOW
45 { UINT uSize;
46 POINT pt;
47 BOOL fNC;
48 LPWSTR lpFileList;
49 DWORD grfKeyState;
50 } DRAGINFOW, LPDRAGINFOW;
52 DECL_WINELIB_TYPE_AW(DRAGINFO)
53 DECL_WINELIB_TYPE_AW(LPDRAGINFO)
55 void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
56 UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
57 UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
58 #define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
59 void WINAPI DragFinish(HDROP h);
60 BOOL WINAPI DragQueryPoint(HDROP hDrop, POINT *p);
62 #define NIF_MESSAGE 0x00000001
63 #define NIF_ICON 0x00000002
64 #define NIF_TIP 0x00000004
66 #define NIM_ADD 0x00000000
67 #define NIM_MODIFY 0x00000001
68 #define NIM_DELETE 0x00000002
72 /******************************************
73 * Application Bar
75 #define ABM_NEW 0x00000000
76 #define ABM_REMOVE 0x00000001
77 #define ABM_QUERYPOS 0x00000002
78 #define ABM_SETPOS 0x00000003
79 #define ABM_GETSTATE 0x00000004
80 #define ABM_GETTASKBARPOS 0x00000005
81 #define ABM_ACTIVATE 0x00000006
82 #define ABM_GETAUTOHIDEBAR 0x00000007
83 #define ABM_SETAUTOHIDEBAR 0x00000008
84 #define ABM_WINDOWPOSCHANGED 0x00000009
86 #define ABN_STATECHANGE 0x00000000
87 #define ABN_POSCHANGED 0x00000001
88 #define ABN_FULLSCREENAPP 0x00000002
89 #define ABN_WINDOWARRANGE 0x00000003
91 #define ABS_AUTOHIDE 0x00000001
92 #define ABS_ALWAYSONTOP 0x00000002
94 #define ABE_LEFT 0
95 #define ABE_TOP 1
96 #define ABE_RIGHT 2
97 #define ABE_BOTTOM 3
99 typedef struct _AppBarData
100 { DWORD cbSize;
101 HWND hWnd;
102 UINT uCallbackMessage;
103 UINT uEdge;
104 RECT rc;
105 LPARAM lParam;
106 } APPBARDATA, *PAPPBARDATA;
108 UINT WINAPI SHAppBarMessage(DWORD,PAPPBARDATA);
110 /******************************************
111 * SHGetFileInfo
114 #define SHGFI_LARGEICON 0x000000000 /* get large icon */
115 #define SHGFI_SMALLICON 0x000000001 /* get small icon */
116 #define SHGFI_OPENICON 0x000000002 /* get open icon */
117 #define SHGFI_SHELLICONSIZE 0x000000004 /* get shell size icon */
118 #define SHGFI_PIDL 0x000000008 /* pszPath is a pidl */
119 #define SHGFI_USEFILEATTRIBUTES 0x000000010 /* use passed dwFileAttribute */
120 #define SHGFI_UNKNOWN1 0x000000020
121 #define SHGFI_UNKNOWN2 0x000000040
122 #define SHGFI_UNKNOWN3 0x000000080
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 */
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;
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;
150 DECL_WINELIB_TYPE_AW(SHFILEINFO)
152 DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
153 DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
154 #define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
156 /******************************************
157 * SHSetFileInfo
160 /******************************************
161 * SHFileOperation
163 #define FO_MOVE 0x0001
164 #define FO_COPY 0x0002
165 #define FO_DELETE 0x0003
166 #define FO_RENAME 0x0004
168 #define FOF_MULTIDESTFILES 0x0001
169 #define FOF_CONFIRMMOUSE 0x0002
170 #define FOF_SILENT 0x0004
171 #define FOF_RENAMEONCOLLISION 0x0008
172 #define FOF_NOCONFIRMATION 0x0010
173 #define FOF_WANTMAPPINGHANDLE 0x0020
174 #define FOF_ALLOWUNDO 0x0040
175 #define FOF_FILESONLY 0x0080
176 #define FOF_SIMPLEPROGRESS 0x0100
177 #define FOF_NOCONFIRMMKDIR 0x0200
178 #define FOF_NOERRORUI 0x0400
180 typedef WORD FILEOP_FLAGS;
182 #define PO_DELETE 0x0013
183 #define PO_RENAME 0x0014
184 #define PO_PORTCHANGE 0x0020
186 typedef WORD PRINTEROP_FLAGS;
188 typedef struct _SHFILEOPSTRUCTA
189 { HWND hwnd;
190 UINT wFunc;
191 LPCSTR pFrom;
192 LPCSTR pTo;
193 FILEOP_FLAGS fFlags;
194 BOOL fAnyOperationsAborted;
195 LPVOID hNameMappings;
196 LPCSTR lpszProgressTitle;
197 } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
199 typedef struct _SHFILEOPSTRUCTW
200 { HWND hwnd;
201 UINT wFunc;
202 LPCWSTR pFrom;
203 LPCWSTR pTo;
204 FILEOP_FLAGS fFlags;
205 BOOL fAnyOperationsAborted;
206 LPVOID hNameMappings;
207 LPCWSTR lpszProgressTitle;
208 } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
210 #define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
211 #define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
213 DWORD WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
214 DWORD WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
215 #define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
217 /******************************************
218 * ShellExecute
220 #define SE_ERR_SHARE 26
221 #define SE_ERR_ASSOCINCOMPLETE 27
222 #define SE_ERR_DDETIMEOUT 28
223 #define SE_ERR_DDEFAIL 29
224 #define SE_ERR_DDEBUSY 30
225 #define SE_ERR_NOASSOC 31
227 HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
228 HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
229 #define ShellExecute WINELIB_NAME_AW(ShellExecute)
231 /******************************************
232 * Tray Notification
234 typedef struct _NOTIFYICONDATAA
235 { DWORD cbSize;
236 HWND hWnd;
237 UINT uID;
238 UINT uFlags;
239 UINT uCallbackMessage;
240 HICON hIcon;
241 CHAR szTip[64];
242 } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
244 typedef struct _NOTIFYICONDATAW
245 { DWORD cbSize;
246 HWND hWnd;
247 UINT uID;
248 UINT uFlags;
249 UINT uCallbackMessage;
250 HICON hIcon;
251 WCHAR szTip[64];
252 } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
254 DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
255 DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA)
257 BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData);
258 BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData);
260 #define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
262 /******************************************
263 * Misc
266 LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR,int*);
267 HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
268 HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
269 #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
270 HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
271 HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
272 #define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
273 HICON WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
274 HICON WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
275 #define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
276 HICON WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
277 HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
278 HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
279 #define FindExecutable WINELIB_NAME_AW(FindExecutable)
280 BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
281 BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
282 #define ShellAbout WINELIB_NAME_AW(ShellAbout)
284 #ifdef __cplusplus
285 } /* extern "C" */
286 #endif /* defined(__cplusplus) */
288 #include "poppack.h"
290 #endif /* __WINE_SHELLAPI_H */