1 #ifndef _WINE_SHELLAPI_H
2 #define _WINE_SHELLAPI_H
8 /******************************************
12 typedef struct _DRAGINFOA
18 } DRAGINFOA, * LPDRAGINFOA;
20 typedef struct _DRAGINFOW
26 } DRAGINFOW, LPDRAGINFOW;
28 void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
29 void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
31 UINT16 WINAPI DragQueryFile16(HDROP16 hDrop, WORD wFile, LPSTR lpszFile, WORD wLength);
32 UINT WINAPI DragQueryFileA(HDROP hDrop, UINT lFile, LPSTR lpszFile, UINT lLength);
33 UINT WINAPI DragQueryFileW(HDROP hDrop, UINT lFile, LPWSTR lpszFile, UINT lLength);
34 #define DragQueryFile WINELIB_NAME_AW(DragQueryFile)
36 void WINAPI DragFinish16(HDROP16 h);
37 void WINAPI DragFinish(HDROP h);
39 BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p);
40 BOOL WINAPI DragQueryPoint(HDROP hDrop, POINT *p);
43 /******************************************
46 #define ABM_NEW 0x00000000
47 #define ABM_REMOVE 0x00000001
48 #define ABM_QUERYPOS 0x00000002
49 #define ABM_SETPOS 0x00000003
50 #define ABM_GETSTATE 0x00000004
51 #define ABM_GETTASKBARPOS 0x00000005
52 #define ABM_ACTIVATE 0x00000006
53 #define ABM_GETAUTOHIDEBAR 0x00000007
54 #define ABM_SETAUTOHIDEBAR 0x00000008
55 #define ABM_WINDOWPOSCHANGED 0x00000009
57 #define ABN_STATECHANGE 0x00000000
58 #define ABN_POSCHANGED 0x00000001
59 #define ABN_FULLSCREENAPP 0x00000002
60 #define ABN_WINDOWARRANGE 0x00000003
62 #define ABS_AUTOHIDE 0x00000001
63 #define ABS_ALWAYSONTOP 0x00000002
70 typedef struct _AppBarData
73 UINT uCallbackMessage;
77 } APPBARDATA, *PAPPBARDATA;
80 /******************************************
84 #define SHGFI_LARGEICON 0x000000000 /* get large icon */
85 #define SHGFI_SMALLICON 0x000000001 /* get small icon */
86 #define SHGFI_OPENICON 0x000000002 /* get open icon */
87 #define SHGFI_SHELLICONSIZE 0x000000004 /* get shell size icon */
88 #define SHGFI_PIDL 0x000000008 /* pszPath is a pidl */
89 #define SHGFI_USEFILEATTRIBUTES 0x000000010 /* use passed dwFileAttribute */
90 #define SHGFI_UNKNOWN1 0x000000020
91 #define SHGFI_UNKNOWN2 0x000000040
92 #define SHGFI_UNKNOWN3 0x000000080
93 #define SHGFI_ICON 0x000000100 /* get icon */
94 #define SHGFI_DISPLAYNAME 0x000000200 /* get display name */
95 #define SHGFI_TYPENAME 0x000000400 /* get type name */
96 #define SHGFI_ATTRIBUTES 0x000000800 /* get attributes */
97 #define SHGFI_ICONLOCATION 0x000001000 /* get icon location */
98 #define SHGFI_EXETYPE 0x000002000 /* return exe type */
99 #define SHGFI_SYSICONINDEX 0x000004000 /* get system icon index */
100 #define SHGFI_LINKOVERLAY 0x000008000 /* put a link overlay on icon */
101 #define SHGFI_SELECTED 0x000010000 /* show icon in selected state */
102 #define SHGFI_ATTR_SPECIFIED 0x000020000 /* get only specified attributes */
104 typedef struct tagSHFILEINFOA
105 { HICON hIcon; /* icon */
106 int iIcon; /* icon index */
107 DWORD dwAttributes; /* SFGAO_ flags */
108 CHAR szDisplayName[MAX_PATH];/* display name (or path) */
109 CHAR szTypeName[80]; /* type name */
112 typedef struct tagSHFILEINFOW
113 { HICON hIcon; /* icon */
114 int iIcon; /* icon index */
115 DWORD dwAttributes; /* SFGAO_ flags */
116 WCHAR szDisplayName[MAX_PATH];/* display name (or path) */
117 WCHAR szTypeName[80]; /* type name */
120 DECL_WINELIB_TYPE_AW(SHFILEINFO)
122 DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
123 DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
124 #define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
126 /******************************************
130 /******************************************
133 #define FO_MOVE 0x0001
134 #define FO_COPY 0x0002
135 #define FO_DELETE 0x0003
136 #define FO_RENAME 0x0004
138 #define FOF_MULTIDESTFILES 0x0001
139 #define FOF_CONFIRMMOUSE 0x0002
140 #define FOF_SILENT 0x0004
141 #define FOF_RENAMEONCOLLISION 0x0008
142 #define FOF_NOCONFIRMATION 0x0010
143 #define FOF_WANTMAPPINGHANDLE 0x0020
144 #define FOF_ALLOWUNDO 0x0040
145 #define FOF_FILESONLY 0x0080
146 #define FOF_SIMPLEPROGRESS 0x0100
147 #define FOF_NOCONFIRMMKDIR 0x0200
148 #define FOF_NOERRORUI 0x0400
150 typedef WORD FILEOP_FLAGS;
152 #define PO_DELETE 0x0013
153 #define PO_RENAME 0x0014
154 #define PO_PORTCHANGE 0x0020
156 typedef WORD PRINTEROP_FLAGS;
158 typedef struct _SHFILEOPSTRUCTA
164 BOOL fAnyOperationsAborted;
165 LPVOID hNameMappings;
166 LPCSTR lpszProgressTitle;
167 } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
169 typedef struct _SHFILEOPSTRUCTW
175 BOOL fAnyOperationsAborted;
176 LPVOID hNameMappings;
177 LPCWSTR lpszProgressTitle;
178 } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
180 #define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
181 #define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
183 DWORD WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
184 DWORD WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
185 #define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
187 DWORD WINAPI SHFileOperationAW(DWORD x);
189 /******************************************
192 #define SE_ERR_SHARE 26
193 #define SE_ERR_ASSOCINCOMPLETE 27
194 #define SE_ERR_DDETIMEOUT 28
195 #define SE_ERR_DDEFAIL 29
196 #define SE_ERR_DDEBUSY 30
197 #define SE_ERR_NOASSOC 31
199 HINSTANCE16 WINAPI ShellExecute16(HWND16,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT16);
200 HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
201 HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
202 #define ShellExecute WINELIB_NAME_AW(ShellExecute)
204 /******************************************
207 typedef struct _NOTIFYICONDATAA
212 UINT uCallbackMessage;
215 } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
217 typedef struct _NOTIFYICONDATAW
222 UINT uCallbackMessage;
225 } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
228 /******************************************
232 HICON16 WINAPI ExtractIcon16(HINSTANCE16,LPCSTR,UINT16);
233 HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
234 HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
235 #define ExtractIcon WINELIB_NAME_AW(ExtractIcon)
237 HICON16 WINAPI ExtractAssociatedIcon16(HINSTANCE16,LPSTR,LPWORD);
238 HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
239 HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
240 #define ExtractAssociatedIcon WINELIB_NAME_AW(ExtractAssociatedIcon)
242 HICON16 WINAPI ExtractIconEx16 ( LPCSTR, INT16, HICON16 *, HICON16 *, UINT16 );
243 HICON WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
244 HICON WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
245 #define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
246 HICON WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
248 HINSTANCE16 WINAPI FindExecutable16(LPCSTR,LPCSTR,LPSTR);
249 HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
250 HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
251 #define FindExecutable WINELIB_NAME_AW(FindExecutable)
253 BOOL16 WINAPI ShellAbout16(HWND16,LPCSTR,LPCSTR,HICON16);
254 BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
255 BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
256 #define ShellAbout WINELIB_NAME_AW(ShellAbout)
260 #endif /* _WINE_SHELLAPI_H */