1 | /* $Id: shellapi.h,v 1.2 1999-06-24 19:27:48 phaller Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _WINE_SHELLAPI_H
|
---|
4 | #define _WINE_SHELLAPI_H
|
---|
5 |
|
---|
6 | #include "windef.h"
|
---|
7 |
|
---|
8 | #pragma pack(1)
|
---|
9 |
|
---|
10 | /******************************************
|
---|
11 | * DragObject
|
---|
12 | */
|
---|
13 |
|
---|
14 | typedef struct _DRAGINFOA
|
---|
15 | { UINT uSize;
|
---|
16 | POINT pt;
|
---|
17 | BOOL fNC;
|
---|
18 | LPSTR lpFileList;
|
---|
19 | DWORD grfKeyState;
|
---|
20 | } DRAGINFOA, * LPDRAGINFOA;
|
---|
21 |
|
---|
22 | typedef struct _DRAGINFOW
|
---|
23 | { UINT uSize;
|
---|
24 | POINT pt;
|
---|
25 | BOOL fNC;
|
---|
26 | LPWSTR lpFileList;
|
---|
27 | DWORD grfKeyState;
|
---|
28 | } DRAGINFOW, LPDRAGINFOW;
|
---|
29 |
|
---|
30 | void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
|
---|
31 | void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
|
---|
32 |
|
---|
33 | UINT16 WINAPI DragQueryFile16(HDROP16 hDrop, WORD wFile, LPSTR lpszFile, WORD wLength);
|
---|
34 | UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
|
---|
35 | UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
|
---|
36 | #define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
|
---|
37 |
|
---|
38 | void WINAPI DragFinish16(HDROP16 h);
|
---|
39 | void WINAPI DragFinish(HDROP h);
|
---|
40 |
|
---|
41 | BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p);
|
---|
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 |
|
---|
91 | /******************************************
|
---|
92 | * SHGetFileInfo
|
---|
93 | */
|
---|
94 |
|
---|
95 | #define SHGFI_LARGEICON 0x000000000 /* get large icon */
|
---|
96 | #define SHGFI_SMALLICON 0x000000001 /* get small icon */
|
---|
97 | #define SHGFI_OPENICON 0x000000002 /* get open icon */
|
---|
98 | #define SHGFI_SHELLICONSIZE 0x000000004 /* get shell size icon */
|
---|
99 | #define SHGFI_PIDL 0x000000008 /* pszPath is a pidl */
|
---|
100 | #define SHGFI_USEFILEATTRIBUTES 0x000000010 /* use passed dwFileAttribute */
|
---|
101 | #define SHGFI_UNKNOWN1 0x000000020
|
---|
102 | #define SHGFI_UNKNOWN2 0x000000040
|
---|
103 | #define SHGFI_UNKNOWN3 0x000000080
|
---|
104 | #define SHGFI_ICON 0x000000100 /* get icon */
|
---|
105 | #define SHGFI_DISPLAYNAME 0x000000200 /* get display name */
|
---|
106 | #define SHGFI_TYPENAME 0x000000400 /* get type name */
|
---|
107 | #define SHGFI_ATTRIBUTES 0x000000800 /* get attributes */
|
---|
108 | #define SHGFI_ICONLOCATION 0x000001000 /* get icon location */
|
---|
109 | #define SHGFI_EXETYPE 0x000002000 /* return exe type */
|
---|
110 | #define SHGFI_SYSICONINDEX 0x000004000 /* get system icon index */
|
---|
111 | #define SHGFI_LINKOVERLAY 0x000008000 /* put a link overlay on icon */
|
---|
112 | #define SHGFI_SELECTED 0x000010000 /* show icon in selected state */
|
---|
113 | #define SHGFI_ATTR_SPECIFIED 0x000020000 /* get only specified attributes */
|
---|
114 |
|
---|
115 | typedef struct tagSHFILEINFOA
|
---|
116 | { HICON hIcon; /* icon */
|
---|
117 | int iIcon; /* icon index */
|
---|
118 | DWORD dwAttributes; /* SFGAO_ flags */
|
---|
119 | CHAR szDisplayName[MAX_PATH];/* display name (or path) */
|
---|
120 | CHAR szTypeName[80]; /* type name */
|
---|
121 | } SHFILEINFOA;
|
---|
122 |
|
---|
123 | typedef struct tagSHFILEINFOW
|
---|
124 | { HICON hIcon; /* icon */
|
---|
125 | int iIcon; /* icon index */
|
---|
126 | DWORD dwAttributes; /* SFGAO_ flags */
|
---|
127 | WCHAR szDisplayName[MAX_PATH];/* display name (or path) */
|
---|
128 | WCHAR szTypeName[80]; /* type name */
|
---|
129 | } SHFILEINFOW;
|
---|
130 |
|
---|
131 | DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
|
---|
132 | DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
|
---|
133 |
|
---|
134 |
|
---|
135 | /******************************************
|
---|
136 | * SHSetFileInfo
|
---|
137 | */
|
---|
138 |
|
---|
139 | /******************************************
|
---|
140 | * SHFileOperation
|
---|
141 | */
|
---|
142 | #define FO_MOVE 0x0001
|
---|
143 | #define FO_COPY 0x0002
|
---|
144 | #define FO_DELETE 0x0003
|
---|
145 | #define FO_RENAME 0x0004
|
---|
146 |
|
---|
147 | #define FOF_MULTIDESTFILES 0x0001
|
---|
148 | #define FOF_CONFIRMMOUSE 0x0002
|
---|
149 | #define FOF_SILENT 0x0004
|
---|
150 | #define FOF_RENAMEONCOLLISION 0x0008
|
---|
151 | #define FOF_NOCONFIRMATION 0x0010
|
---|
152 | #define FOF_WANTMAPPINGHANDLE 0x0020
|
---|
153 | #define FOF_ALLOWUNDO 0x0040
|
---|
154 | #define FOF_FILESONLY 0x0080
|
---|
155 | #define FOF_SIMPLEPROGRESS 0x0100
|
---|
156 | #define FOF_NOCONFIRMMKDIR 0x0200
|
---|
157 | #define FOF_NOERRORUI 0x0400
|
---|
158 |
|
---|
159 | typedef WORD FILEOP_FLAGS;
|
---|
160 |
|
---|
161 | #define PO_DELETE 0x0013
|
---|
162 | #define PO_RENAME 0x0014
|
---|
163 | #define PO_PORTCHANGE 0x0020
|
---|
164 |
|
---|
165 | typedef WORD PRINTEROP_FLAGS;
|
---|
166 |
|
---|
167 | typedef struct _SHFILEOPSTRUCTA
|
---|
168 | { HWND hwnd;
|
---|
169 | UINT wFunc;
|
---|
170 | LPCSTR pFrom;
|
---|
171 | LPCSTR pTo;
|
---|
172 | FILEOP_FLAGS fFlags;
|
---|
173 | BOOL fAnyOperationsAborted;
|
---|
174 | LPVOID hNameMappings;
|
---|
175 | LPCSTR lpszProgressTitle;
|
---|
176 | } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
|
---|
177 |
|
---|
178 | typedef struct _SHFILEOPSTRUCTW
|
---|
179 | { HWND hwnd;
|
---|
180 | UINT wFunc;
|
---|
181 | LPCWSTR pFrom;
|
---|
182 | LPCWSTR pTo;
|
---|
183 | FILEOP_FLAGS fFlags;
|
---|
184 | BOOL fAnyOperationsAborted;
|
---|
185 | LPVOID hNameMappings;
|
---|
186 | LPCWSTR lpszProgressTitle;
|
---|
187 | } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
|
---|
188 |
|
---|
189 | DWORD WIN32API SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
|
---|
190 | DWORD WIN32API SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
|
---|
191 |
|
---|
192 |
|
---|
193 | /******************************************
|
---|
194 | * ShellExecute
|
---|
195 | */
|
---|
196 | #define SE_ERR_SHARE 26
|
---|
197 | #define SE_ERR_ASSOCINCOMPLETE 27
|
---|
198 | #define SE_ERR_DDETIMEOUT 28
|
---|
199 | #define SE_ERR_DDEFAIL 29
|
---|
200 | #define SE_ERR_DDEBUSY 30
|
---|
201 | #define SE_ERR_NOASSOC 31
|
---|
202 |
|
---|
203 | HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
|
---|
204 | HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
|
---|
205 |
|
---|
206 | /******************************************
|
---|
207 | * Tray Notification
|
---|
208 | */
|
---|
209 | typedef struct _NOTIFYICONDATAA
|
---|
210 | { DWORD cbSize;
|
---|
211 | HWND hWnd;
|
---|
212 | UINT uID;
|
---|
213 | UINT uFlags;
|
---|
214 | UINT uCallbackMessage;
|
---|
215 | HICON hIcon;
|
---|
216 | CHAR szTip[64];
|
---|
217 | } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
|
---|
218 |
|
---|
219 | typedef struct _NOTIFYICONDATAW
|
---|
220 | { DWORD cbSize;
|
---|
221 | HWND hWnd;
|
---|
222 | UINT uID;
|
---|
223 | UINT uFlags;
|
---|
224 | UINT uCallbackMessage;
|
---|
225 | HICON hIcon;
|
---|
226 | WCHAR szTip[64];
|
---|
227 | } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
|
---|
228 |
|
---|
229 |
|
---|
230 | #define SEE_MASK_CLASSNAME 0x00000001
|
---|
231 | #define SEE_MASK_CLASSKEY 0x00000003
|
---|
232 | #define SEE_MASK_IDLIST 0x00000004
|
---|
233 | #define SEE_MASK_INVOKEIDLIST 0x0000000c
|
---|
234 | #define SEE_MASK_ICON 0x00000010
|
---|
235 | #define SEE_MASK_HOTKEY 0x00000020
|
---|
236 | #define SEE_MASK_NOCLOSEPROCESS 0x00000040
|
---|
237 | #define SEE_MASK_CONNECTNETDRV 0x00000080
|
---|
238 | #define SEE_MASK_FLAG_DDEWAIT 0x00000100
|
---|
239 | #define SEE_MASK_DOENVSUBST 0x00000200
|
---|
240 | #define SEE_MASK_FLAG_NO_UI 0x00000400
|
---|
241 | #define SEE_MASK_UNICODE 0x00004000
|
---|
242 | #define SEE_MASK_NO_CONSOLE 0x00008000
|
---|
243 | #define SEE_MASK_ASYNCOK 0x00100000
|
---|
244 |
|
---|
245 | typedef struct _SHELLEXECUTEINFOA
|
---|
246 | {
|
---|
247 | DWORD cbSize;
|
---|
248 | ULONG fMask;
|
---|
249 | HWND hwnd;
|
---|
250 | LPCSTR lpVerb;
|
---|
251 | LPCSTR lpFile;
|
---|
252 | LPCSTR lpParameters;
|
---|
253 | LPCSTR lpDirectory;
|
---|
254 | int nShow;
|
---|
255 | HINSTANCE hInstApp;
|
---|
256 | // Optional fields
|
---|
257 | LPVOID lpIDList;
|
---|
258 | LPCSTR lpClass;
|
---|
259 | HKEY hkeyClass;
|
---|
260 | DWORD dwHotKey;
|
---|
261 | HANDLE hIcon;
|
---|
262 | HANDLE hProcess;
|
---|
263 | } SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA;
|
---|
264 |
|
---|
265 | typedef struct _SHELLEXECUTEINFOW
|
---|
266 | {
|
---|
267 | DWORD cbSize;
|
---|
268 | ULONG fMask;
|
---|
269 | HWND hwnd;
|
---|
270 | LPCWSTR lpVerb;
|
---|
271 | LPCWSTR lpFile;
|
---|
272 | LPCWSTR lpParameters;
|
---|
273 | LPCWSTR lpDirectory;
|
---|
274 | int nShow;
|
---|
275 | HINSTANCE hInstApp;
|
---|
276 | // Optional fields
|
---|
277 | LPVOID lpIDList;
|
---|
278 | LPCWSTR lpClass;
|
---|
279 | HKEY hkeyClass;
|
---|
280 | DWORD dwHotKey;
|
---|
281 | HANDLE hIcon;
|
---|
282 | HANDLE hProcess;
|
---|
283 | } SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW;
|
---|
284 |
|
---|
285 | /******************************************
|
---|
286 | * Misc
|
---|
287 | */
|
---|
288 |
|
---|
289 | HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
|
---|
290 | HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
|
---|
291 |
|
---|
292 | HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
|
---|
293 | HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
|
---|
294 |
|
---|
295 | HICON WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
|
---|
296 | HICON WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
|
---|
297 | HICON WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
|
---|
298 |
|
---|
299 | HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
|
---|
300 | HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
|
---|
301 |
|
---|
302 | BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
|
---|
303 | BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
|
---|
304 |
|
---|
305 | #pragma pack(4)
|
---|
306 |
|
---|
307 | #endif /* _WINE_SHELLAPI_H */
|
---|