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