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