source: trunk/include/win/shellapi.h@ 4

Last change on this file since 4 was 4, checked in by ktk, 26 years ago

Import

File size: 9.8 KB
Line 
1/* $Id: shellapi.h,v 1.1 1999-05-24 20:19:19 ktk 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
14typedef struct _DRAGINFOA
15{ UINT uSize;
16 POINT pt;
17 BOOL fNC;
18 LPSTR lpFileList;
19 DWORD grfKeyState;
20} DRAGINFOA, * LPDRAGINFOA;
21
22typedef struct _DRAGINFOW
23{ UINT uSize;
24 POINT pt;
25 BOOL fNC;
26 LPWSTR lpFileList;
27 DWORD grfKeyState;
28} DRAGINFOW, LPDRAGINFOW;
29
30void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
31void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
32
33UINT16 WINAPI DragQueryFile16(HDROP16 hDrop, WORD wFile, LPSTR lpszFile, WORD wLength);
34UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
35UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
36#define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
37
38void WINAPI DragFinish16(HDROP16 h);
39void WINAPI DragFinish(HDROP h);
40
41BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p);
42BOOL 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
81typedef 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
115typedef 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
123typedef 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
131DECL_WINELIB_TYPE_AW(SHFILEINFO)
132
133DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
134DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
135#define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
136
137/******************************************
138 * SHSetFileInfo
139 */
140
141/******************************************
142* SHFileOperation
143*/
144#define FO_MOVE 0x0001
145#define FO_COPY 0x0002
146#define FO_DELETE 0x0003
147#define FO_RENAME 0x0004
148
149#define FOF_MULTIDESTFILES 0x0001
150#define FOF_CONFIRMMOUSE 0x0002
151#define FOF_SILENT 0x0004
152#define FOF_RENAMEONCOLLISION 0x0008
153#define FOF_NOCONFIRMATION 0x0010
154#define FOF_WANTMAPPINGHANDLE 0x0020
155#define FOF_ALLOWUNDO 0x0040
156#define FOF_FILESONLY 0x0080
157#define FOF_SIMPLEPROGRESS 0x0100
158#define FOF_NOCONFIRMMKDIR 0x0200
159#define FOF_NOERRORUI 0x0400
160
161typedef WORD FILEOP_FLAGS;
162
163#define PO_DELETE 0x0013
164#define PO_RENAME 0x0014
165#define PO_PORTCHANGE 0x0020
166
167typedef WORD PRINTEROP_FLAGS;
168
169typedef struct _SHFILEOPSTRUCTA
170{ HWND hwnd;
171 UINT wFunc;
172 LPCSTR pFrom;
173 LPCSTR pTo;
174 FILEOP_FLAGS fFlags;
175 BOOL fAnyOperationsAborted;
176 LPVOID hNameMappings;
177 LPCSTR lpszProgressTitle;
178} SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
179
180typedef struct _SHFILEOPSTRUCTW
181{ HWND hwnd;
182 UINT wFunc;
183 LPCWSTR pFrom;
184 LPCWSTR pTo;
185 FILEOP_FLAGS fFlags;
186 BOOL fAnyOperationsAborted;
187 LPVOID hNameMappings;
188 LPCWSTR lpszProgressTitle;
189} SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
190
191#define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
192#define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
193
194DWORD WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
195DWORD WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
196#define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
197
198DWORD WINAPI SHFileOperationAW(DWORD x);
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
210HINSTANCE16 WINAPI ShellExecute16(HWND16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT16);
211HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
212HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
213#define ShellExecute WINELIB_NAME_AW(ShellExecute)
214
215/******************************************
216 * Tray Notification
217 */
218typedef 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
228typedef 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#define SEE_MASK_CLASSNAME 0x00000001
240#define SEE_MASK_CLASSKEY 0x00000003
241#define SEE_MASK_IDLIST 0x00000004
242#define SEE_MASK_INVOKEIDLIST 0x0000000c
243#define SEE_MASK_ICON 0x00000010
244#define SEE_MASK_HOTKEY 0x00000020
245#define SEE_MASK_NOCLOSEPROCESS 0x00000040
246#define SEE_MASK_CONNECTNETDRV 0x00000080
247#define SEE_MASK_FLAG_DDEWAIT 0x00000100
248#define SEE_MASK_DOENVSUBST 0x00000200
249#define SEE_MASK_FLAG_NO_UI 0x00000400
250#define SEE_MASK_UNICODE 0x00004000
251#define SEE_MASK_NO_CONSOLE 0x00008000
252#define SEE_MASK_ASYNCOK 0x00100000
253
254typedef struct _SHELLEXECUTEINFOA
255{
256 DWORD cbSize;
257 ULONG fMask;
258 HWND hwnd;
259 LPCSTR lpVerb;
260 LPCSTR lpFile;
261 LPCSTR lpParameters;
262 LPCSTR lpDirectory;
263 int nShow;
264 HINSTANCE hInstApp;
265 // Optional fields
266 LPVOID lpIDList;
267 LPCSTR lpClass;
268 HKEY hkeyClass;
269 DWORD dwHotKey;
270 HANDLE hIcon;
271 HANDLE hProcess;
272} SHELLEXECUTEINFOA, *LPSHELLEXECUTEINFOA;
273
274typedef struct _SHELLEXECUTEINFOW
275{
276 DWORD cbSize;
277 ULONG fMask;
278 HWND hwnd;
279 LPCWSTR lpVerb;
280 LPCWSTR lpFile;
281 LPCWSTR lpParameters;
282 LPCWSTR lpDirectory;
283 int nShow;
284 HINSTANCE hInstApp;
285 // Optional fields
286 LPVOID lpIDList;
287 LPCWSTR lpClass;
288 HKEY hkeyClass;
289 DWORD dwHotKey;
290 HANDLE hIcon;
291 HANDLE hProcess;
292} SHELLEXECUTEINFOW, *LPSHELLEXECUTEINFOW;
293
294/******************************************
295 * Misc
296 */
297
298HICON16 WINAPI ExtractIcon16(HINSTANCE16,LPCSTR,UINT16);
299HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
300HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
301#define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
302
303HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16,LPSTR,LPWORD);
304HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
305HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
306#define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
307
308HICON16 WINAPI ExtractIconEx16 ( LPCSTR, INT16, HICON16 *, HICON16 *, UINT16 );
309HICON WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
310HICON WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
311#define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
312HICON WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
313
314HINSTANCE16 WINAPI FindExecutable16(LPCSTR,LPCSTR,LPSTR);
315HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
316HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
317#define FindExecutable WINELIB_NAME_AW(FindExecutable)
318
319BOOL16 WINAPI ShellAbout16(HWND16,LPCSTR,LPCSTR,HICON16);
320BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
321BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
322#define ShellAbout WINELIB_NAME_AW(ShellAbout)
323
324#pragma pack(4)
325
326#endif /* _WINE_SHELLAPI_H */
Note: See TracBrowser for help on using the repository browser.