FindResourceExA/W should search for the specified language resource only.
[wine] / include / shellapi.h
1 #ifndef __WINE_SHELLAPI_H
2 #define __WINE_SHELLAPI_H
3
4 #include "windef.h"
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif /* defined(__cplusplus) */
9
10 #include "pshpack1.h"
11
12 /******************************************
13  * DragObject
14  */
15
16 typedef struct _DRAGINFOA 
17 {       UINT uSize;
18         POINT pt;
19         BOOL fNC;
20         LPSTR   lpFileList;
21         DWORD grfKeyState;
22 } DRAGINFOA, * LPDRAGINFOA;
23
24 typedef struct _DRAGINFOW 
25 {       UINT uSize;
26         POINT pt;
27         BOOL fNC;
28         LPWSTR  lpFileList;
29         DWORD grfKeyState;
30 } DRAGINFOW, LPDRAGINFOW;
31
32 void    WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
33 void    WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
34
35 UINT16  WINAPI DragQueryFile16(HDROP16 hDrop, WORD wFile, LPSTR lpszFile, WORD wLength);
36 UINT    WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
37 UINT    WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
38 #define     DragQueryFile WINELIB_NAME_AW(DragQueryFile)
39
40 void    WINAPI DragFinish16(HDROP16 h);
41 void    WINAPI DragFinish(HDROP h);
42
43 BOOL16  WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p);
44 BOOL    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
83 typedef 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
117 typedef 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
125 typedef 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
133 DECL_WINELIB_TYPE_AW(SHFILEINFO)
134
135 DWORD   WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
136 DWORD   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
163 typedef WORD FILEOP_FLAGS;
164
165 #define PO_DELETE       0x0013  
166 #define PO_RENAME       0x0014  
167 #define PO_PORTCHANGE   0x0020  
168
169 typedef WORD PRINTEROP_FLAGS;
170
171 typedef struct _SHFILEOPSTRUCTA
172 { HWND          hwnd;
173   UINT          wFunc;
174   LPCSTR          pFrom;
175   LPCSTR          pTo;
176   FILEOP_FLAGS    fFlags;
177   BOOL          fAnyOperationsAborted;
178   LPVOID          hNameMappings;
179   LPCSTR          lpszProgressTitle;
180 } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
181
182 typedef struct _SHFILEOPSTRUCTW
183 { HWND          hwnd;
184   UINT          wFunc;
185   LPCWSTR         pFrom;
186   LPCWSTR         pTo;
187   FILEOP_FLAGS    fFlags;
188   BOOL          fAnyOperationsAborted;
189   LPVOID          hNameMappings;
190   LPCWSTR         lpszProgressTitle;
191 } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
192
193 #define  SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
194 #define  LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
195
196 DWORD   WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);  
197 DWORD   WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
198 #define  SHFileOperation WINELIB_NAME_AW(SHFileOperation)
199
200 /******************************************
201  * ShellExecute
202  */
203 #define SE_ERR_SHARE            26
204 #define SE_ERR_ASSOCINCOMPLETE  27
205 #define SE_ERR_DDETIMEOUT       28
206 #define SE_ERR_DDEFAIL          29
207 #define SE_ERR_DDEBUSY          30
208 #define SE_ERR_NOASSOC          31
209
210 HINSTANCE16     WINAPI ShellExecute16(HWND16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT16);
211 HINSTANCE       WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
212 HINSTANCE       WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
213 #define     ShellExecute WINELIB_NAME_AW(ShellExecute)
214
215 /******************************************
216  * Tray Notification
217  */
218 typedef struct _NOTIFYICONDATAA
219 {       DWORD cbSize;
220         HWND hWnd;
221         UINT uID;
222         UINT uFlags;
223         UINT uCallbackMessage;
224         HICON hIcon;
225         CHAR szTip[64];
226 } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
227
228 typedef struct _NOTIFYICONDATAW
229 {       DWORD cbSize;
230         HWND hWnd;
231         UINT uID;
232         UINT uFlags;
233         UINT uCallbackMessage;
234         HICON hIcon;
235         WCHAR szTip[64];
236 } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
237
238
239 /******************************************
240  * Misc
241  */
242
243 HICON16 WINAPI ExtractIcon16(HINSTANCE16,LPCSTR,UINT16);
244 HICON   WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
245 HICON   WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
246 #define     ExtractIcon WINELIB_NAME_AW(ExtractIcon)
247
248 HICON16     WINAPI ExtractAssociatedIcon16(HINSTANCE16,LPSTR,LPWORD);
249 HICON     WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
250 HICON     WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
251 #define     ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
252
253 HICON16 WINAPI ExtractIconEx16 ( LPCSTR, INT16, HICON16 *, HICON16 *, UINT16 );
254 HICON WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
255 HICON WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
256 #define  ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
257 HICON WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
258
259 HINSTANCE16 WINAPI FindExecutable16(LPCSTR,LPCSTR,LPSTR);
260 HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
261 HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
262 #define     FindExecutable WINELIB_NAME_AW(FindExecutable)
263
264 BOOL16      WINAPI ShellAbout16(HWND16,LPCSTR,LPCSTR,HICON16);
265 BOOL      WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
266 BOOL      WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
267 #define     ShellAbout WINELIB_NAME_AW(ShellAbout)
268
269 #ifdef __cplusplus
270 } /* extern "C" */
271 #endif /* defined(__cplusplus) */
272
273 #include "poppack.h"
274
275 #endif /* __WINE_SHELLAPI_H */