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