2 * Copyright (C) the Wine project
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 #ifndef __WINE_SHELLAPI_H
20 #define __WINE_SHELLAPI_H
26 #endif /* defined(__cplusplus) */
30 DECLARE_HANDLE(HDROP
);
32 /******************************************
36 typedef struct _DRAGINFOA
42 } DRAGINFOA
, *LPDRAGINFOA
;
44 typedef struct _DRAGINFOW
50 } DRAGINFOW
, *LPDRAGINFOW
;
52 DECL_WINELIB_TYPE_AW(DRAGINFO
)
53 DECL_WINELIB_TYPE_AW(LPDRAGINFO
)
55 void WINAPI
DragAcceptFiles(HWND hWnd
, BOOL b
);
56 UINT WINAPI
DragQueryFileA(HDROP hDrop
, UINT lFile
, LPSTR lpszFile
, UINT lLength
);
57 UINT WINAPI
DragQueryFileW(HDROP hDrop
, UINT lFile
, LPWSTR lpszFile
, UINT lLength
);
58 #define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
59 void WINAPI
DragFinish(HDROP h
);
60 BOOL WINAPI
DragQueryPoint(HDROP hDrop
, POINT
*p
);
62 #define NIF_MESSAGE 0x00000001
63 #define NIF_ICON 0x00000002
64 #define NIF_TIP 0x00000004
66 #define NIM_ADD 0x00000000
67 #define NIM_MODIFY 0x00000001
68 #define NIM_DELETE 0x00000002
72 /******************************************
75 #define ABM_NEW 0x00000000
76 #define ABM_REMOVE 0x00000001
77 #define ABM_QUERYPOS 0x00000002
78 #define ABM_SETPOS 0x00000003
79 #define ABM_GETSTATE 0x00000004
80 #define ABM_GETTASKBARPOS 0x00000005
81 #define ABM_ACTIVATE 0x00000006
82 #define ABM_GETAUTOHIDEBAR 0x00000007
83 #define ABM_SETAUTOHIDEBAR 0x00000008
84 #define ABM_WINDOWPOSCHANGED 0x00000009
86 #define ABN_STATECHANGE 0x00000000
87 #define ABN_POSCHANGED 0x00000001
88 #define ABN_FULLSCREENAPP 0x00000002
89 #define ABN_WINDOWARRANGE 0x00000003
91 #define ABS_AUTOHIDE 0x00000001
92 #define ABS_ALWAYSONTOP 0x00000002
99 typedef struct _AppBarData
102 UINT uCallbackMessage
;
106 } APPBARDATA
, *PAPPBARDATA
;
108 UINT WINAPI
SHAppBarMessage(DWORD
,PAPPBARDATA
);
110 /******************************************
114 #define SHGFI_LARGEICON 0x000000000 /* get large icon */
115 #define SHGFI_SMALLICON 0x000000001 /* get small icon */
116 #define SHGFI_OPENICON 0x000000002 /* get open icon */
117 #define SHGFI_SHELLICONSIZE 0x000000004 /* get shell size icon */
118 #define SHGFI_PIDL 0x000000008 /* pszPath is a pidl */
119 #define SHGFI_USEFILEATTRIBUTES 0x000000010 /* use passed dwFileAttribute */
120 #define SHGFI_UNKNOWN1 0x000000020
121 #define SHGFI_UNKNOWN2 0x000000040
122 #define SHGFI_UNKNOWN3 0x000000080
123 #define SHGFI_ICON 0x000000100 /* get icon */
124 #define SHGFI_DISPLAYNAME 0x000000200 /* get display name */
125 #define SHGFI_TYPENAME 0x000000400 /* get type name */
126 #define SHGFI_ATTRIBUTES 0x000000800 /* get attributes */
127 #define SHGFI_ICONLOCATION 0x000001000 /* get icon location */
128 #define SHGFI_EXETYPE 0x000002000 /* return exe type */
129 #define SHGFI_SYSICONINDEX 0x000004000 /* get system icon index */
130 #define SHGFI_LINKOVERLAY 0x000008000 /* put a link overlay on icon */
131 #define SHGFI_SELECTED 0x000010000 /* show icon in selected state */
132 #define SHGFI_ATTR_SPECIFIED 0x000020000 /* get only specified attributes */
134 typedef struct tagSHFILEINFOA
135 { HICON hIcon
; /* icon */
136 int iIcon
; /* icon index */
137 DWORD dwAttributes
; /* SFGAO_ flags */
138 CHAR szDisplayName
[MAX_PATH
];/* display name (or path) */
139 CHAR szTypeName
[80]; /* type name */
142 typedef struct tagSHFILEINFOW
143 { HICON hIcon
; /* icon */
144 int iIcon
; /* icon index */
145 DWORD dwAttributes
; /* SFGAO_ flags */
146 WCHAR szDisplayName
[MAX_PATH
];/* display name (or path) */
147 WCHAR szTypeName
[80]; /* type name */
150 DECL_WINELIB_TYPE_AW(SHFILEINFO
)
152 DWORD WINAPI
SHGetFileInfoA(LPCSTR
,DWORD
,SHFILEINFOA
*,UINT
,UINT
);
153 DWORD WINAPI
SHGetFileInfoW(LPCWSTR
,DWORD
,SHFILEINFOW
*,UINT
,UINT
);
154 #define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
156 /******************************************
160 /******************************************
163 #define FO_MOVE 0x0001
164 #define FO_COPY 0x0002
165 #define FO_DELETE 0x0003
166 #define FO_RENAME 0x0004
168 #define FOF_MULTIDESTFILES 0x0001
169 #define FOF_CONFIRMMOUSE 0x0002
170 #define FOF_SILENT 0x0004
171 #define FOF_RENAMEONCOLLISION 0x0008
172 #define FOF_NOCONFIRMATION 0x0010
173 #define FOF_WANTMAPPINGHANDLE 0x0020
174 #define FOF_ALLOWUNDO 0x0040
175 #define FOF_FILESONLY 0x0080
176 #define FOF_SIMPLEPROGRESS 0x0100
177 #define FOF_NOCONFIRMMKDIR 0x0200
178 #define FOF_NOERRORUI 0x0400
179 #define FOF_NOCOPYSECURITYATTRIBS 0x0800
181 typedef WORD FILEOP_FLAGS
;
183 #define PO_DELETE 0x0013
184 #define PO_RENAME 0x0014
185 #define PO_PORTCHANGE 0x0020
187 typedef WORD PRINTEROP_FLAGS
;
189 typedef struct _SHFILEOPSTRUCTA
195 BOOL fAnyOperationsAborted
;
196 LPVOID hNameMappings
;
197 LPCSTR lpszProgressTitle
;
198 } SHFILEOPSTRUCTA
, *LPSHFILEOPSTRUCTA
;
200 typedef struct _SHFILEOPSTRUCTW
206 BOOL fAnyOperationsAborted
;
207 LPVOID hNameMappings
;
208 LPCWSTR lpszProgressTitle
;
209 } SHFILEOPSTRUCTW
, *LPSHFILEOPSTRUCTW
;
211 #define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
212 #define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
214 DWORD WINAPI
SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp
);
215 DWORD WINAPI
SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp
);
216 #define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
218 /******************************************
221 #define SE_ERR_SHARE 26
222 #define SE_ERR_ASSOCINCOMPLETE 27
223 #define SE_ERR_DDETIMEOUT 28
224 #define SE_ERR_DDEFAIL 29
225 #define SE_ERR_DDEBUSY 30
226 #define SE_ERR_NOASSOC 31
228 HINSTANCE WINAPI
ShellExecuteA(HWND
,LPCSTR
,LPCSTR
,LPCSTR
,LPCSTR
,INT
);
229 HINSTANCE WINAPI
ShellExecuteW(HWND
,LPCWSTR
,LPCWSTR
,LPCWSTR
,LPCWSTR
,INT
);
230 #define ShellExecute WINELIB_NAME_AW(ShellExecute)
232 /******************************************
235 typedef struct _NOTIFYICONDATAA
240 UINT uCallbackMessage
;
243 } NOTIFYICONDATAA
, *PNOTIFYICONDATAA
;
245 typedef struct _NOTIFYICONDATAW
250 UINT uCallbackMessage
;
253 } NOTIFYICONDATAW
, *PNOTIFYICONDATAW
;
255 DECL_WINELIB_TYPE_AW(NOTIFYICONDATA
)
256 DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA
)
258 BOOL WINAPI
Shell_NotifyIconA(DWORD dwMessage
, PNOTIFYICONDATAA lpData
);
259 BOOL WINAPI
Shell_NotifyIconW(DWORD dwMessage
, PNOTIFYICONDATAW lpData
);
261 #define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
263 /******************************************
267 LPWSTR
* WINAPI
CommandLineToArgvW(LPCWSTR
,int*);
268 HICON WINAPI
ExtractIconA(HINSTANCE
,LPCSTR
,UINT
);
269 HICON WINAPI
ExtractIconW(HINSTANCE
,LPCWSTR
,UINT
);
270 #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
271 HICON WINAPI
ExtractAssociatedIconA(HINSTANCE
,LPSTR
,LPWORD
);
272 HICON WINAPI
ExtractAssociatedIconW(HINSTANCE
,LPWSTR
,LPWORD
);
273 #define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
274 HICON WINAPI
ExtractAssociatedIconExA(HINSTANCE
,LPSTR
,LPWORD
,LPWORD
);
275 HICON WINAPI
ExtractAssociatedIconExW(HINSTANCE
,LPWSTR
,LPWORD
,LPWORD
);
276 #define ExtractAssociatedIconEx WINELIB_NAME_AW(ExtractAssociatedIconEx)
277 UINT WINAPI
ExtractIconExA(LPCSTR
,INT
,HICON
*,HICON
*,UINT
);
278 UINT WINAPI
ExtractIconExW(LPCWSTR
,INT
,HICON
*,HICON
*,UINT
);
279 #define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
280 UINT WINAPI
ExtractIconExAW(LPCVOID
,INT
,HICON
*,HICON
*,UINT
);
281 HINSTANCE WINAPI
FindExecutableA(LPCSTR
,LPCSTR
,LPSTR
);
282 HINSTANCE WINAPI
FindExecutableW(LPCWSTR
,LPCWSTR
,LPWSTR
);
283 #define FindExecutable WINELIB_NAME_AW(FindExecutable)
284 BOOL WINAPI
ShellAboutA(HWND
,LPCSTR
,LPCSTR
,HICON
);
285 BOOL WINAPI
ShellAboutW(HWND
,LPCWSTR
,LPCWSTR
,HICON
);
286 #define ShellAbout WINELIB_NAME_AW(ShellAbout)
290 #endif /* defined(__cplusplus) */
294 #endif /* __WINE_SHELLAPI_H */