[4] | 1 | #ifndef _WINE_SHELLAPI_H
|
---|
| 2 | #define _WINE_SHELLAPI_H
|
---|
| 3 |
|
---|
| 4 | #include "windef.h"
|
---|
| 5 |
|
---|
[21916] | 6 | #ifdef __cplusplus
|
---|
| 7 | extern "C" {
|
---|
| 8 | #endif
|
---|
| 9 |
|
---|
[4] | 10 | #pragma pack(1)
|
---|
| 11 |
|
---|
| 12 | /******************************************
|
---|
| 13 | * DragObject
|
---|
| 14 | */
|
---|
| 15 |
|
---|
[780] | 16 | typedef struct _DRAGINFOA
|
---|
[4] | 17 | { UINT uSize;
|
---|
| 18 | POINT pt;
|
---|
| 19 | BOOL fNC;
|
---|
| 20 | LPSTR lpFileList;
|
---|
| 21 | DWORD grfKeyState;
|
---|
| 22 | } DRAGINFOA, * LPDRAGINFOA;
|
---|
| 23 |
|
---|
[780] | 24 | typedef struct _DRAGINFOW
|
---|
[4] | 25 | { UINT uSize;
|
---|
| 26 | POINT pt;
|
---|
| 27 | BOOL fNC;
|
---|
| 28 | LPWSTR lpFileList;
|
---|
| 29 | DWORD grfKeyState;
|
---|
| 30 | } DRAGINFOW, LPDRAGINFOW;
|
---|
| 31 |
|
---|
| 32 | void WINAPI DragAcceptFiles(HWND hWnd, BOOL b);
|
---|
| 33 | void WINAPI DragAcceptFiles16(HWND16 hWnd, BOOL16 b);
|
---|
| 34 |
|
---|
| 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)
|
---|
| 39 |
|
---|
| 40 | void WINAPI DragFinish16(HDROP16 h);
|
---|
| 41 | void WINAPI DragFinish(HDROP h);
|
---|
| 42 |
|
---|
| 43 | BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p);
|
---|
| 44 | BOOL WINAPI DragQueryPoint(HDROP hDrop, POINT *p);
|
---|
| 45 |
|
---|
| 46 | #define NIF_MESSAGE 0x00000001
|
---|
| 47 | #define NIF_ICON 0x00000002
|
---|
| 48 | #define NIF_TIP 0x00000004
|
---|
| 49 |
|
---|
| 50 | #define NIM_ADD 0x00000000
|
---|
| 51 | #define NIM_MODIFY 0x00000001
|
---|
| 52 | #define NIM_DELETE 0x00000002
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 |
|
---|
| 56 | /******************************************
|
---|
| 57 | * Application Bar
|
---|
| 58 | */
|
---|
| 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
|
---|
| 69 |
|
---|
| 70 | #define ABN_STATECHANGE 0x00000000
|
---|
| 71 | #define ABN_POSCHANGED 0x00000001
|
---|
| 72 | #define ABN_FULLSCREENAPP 0x00000002
|
---|
| 73 | #define ABN_WINDOWARRANGE 0x00000003
|
---|
| 74 |
|
---|
| 75 | #define ABS_AUTOHIDE 0x00000001
|
---|
| 76 | #define ABS_ALWAYSONTOP 0x00000002
|
---|
| 77 |
|
---|
| 78 | #define ABE_LEFT 0
|
---|
| 79 | #define ABE_TOP 1
|
---|
| 80 | #define ABE_RIGHT 2
|
---|
| 81 | #define ABE_BOTTOM 3
|
---|
| 82 |
|
---|
[780] | 83 | typedef struct _AppBarData
|
---|
[4] | 84 | { DWORD cbSize;
|
---|
| 85 | HWND hWnd;
|
---|
| 86 | UINT uCallbackMessage;
|
---|
| 87 | UINT uEdge;
|
---|
| 88 | RECT rc;
|
---|
| 89 | LPARAM lParam;
|
---|
| 90 | } APPBARDATA, *PAPPBARDATA;
|
---|
| 91 |
|
---|
| 92 |
|
---|
| 93 | /******************************************
|
---|
| 94 | * SHGetFileInfo
|
---|
| 95 | */
|
---|
| 96 |
|
---|
| 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 */
|
---|
| 116 |
|
---|
[780] | 117 | typedef struct tagSHFILEINFOA
|
---|
[4] | 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;
|
---|
| 124 |
|
---|
[780] | 125 | typedef struct tagSHFILEINFOW
|
---|
[4] | 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;
|
---|
| 132 |
|
---|
[2524] | 133 | DECL_WINELIB_TYPE_AW(SHFILEINFO)
|
---|
| 134 |
|
---|
[4] | 135 | DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
|
---|
| 136 | DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
|
---|
[2524] | 137 | #define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
|
---|
[4] | 138 |
|
---|
| 139 | /******************************************
|
---|
| 140 | * SHSetFileInfo
|
---|
| 141 | */
|
---|
| 142 |
|
---|
| 143 | /******************************************
|
---|
| 144 | * SHFileOperation
|
---|
| 145 | */
|
---|
| 146 | #define FO_MOVE 0x0001
|
---|
| 147 | #define FO_COPY 0x0002
|
---|
| 148 | #define FO_DELETE 0x0003
|
---|
| 149 | #define FO_RENAME 0x0004
|
---|
| 150 |
|
---|
| 151 | #define FOF_MULTIDESTFILES 0x0001
|
---|
| 152 | #define FOF_CONFIRMMOUSE 0x0002
|
---|
[780] | 153 | #define FOF_SILENT 0x0004
|
---|
[4] | 154 | #define FOF_RENAMEONCOLLISION 0x0008
|
---|
[780] | 155 | #define FOF_NOCONFIRMATION 0x0010
|
---|
| 156 | #define FOF_WANTMAPPINGHANDLE 0x0020
|
---|
[4] | 157 | #define FOF_ALLOWUNDO 0x0040
|
---|
[780] | 158 | #define FOF_FILESONLY 0x0080
|
---|
| 159 | #define FOF_SIMPLEPROGRESS 0x0100
|
---|
| 160 | #define FOF_NOCONFIRMMKDIR 0x0200
|
---|
| 161 | #define FOF_NOERRORUI 0x0400
|
---|
[10162] | 162 | #define FOF_NOCOPYSECURITYATTRIBS 0x0800
|
---|
[4] | 163 |
|
---|
| 164 | typedef WORD FILEOP_FLAGS;
|
---|
| 165 |
|
---|
[780] | 166 | #define PO_DELETE 0x0013
|
---|
| 167 | #define PO_RENAME 0x0014
|
---|
| 168 | #define PO_PORTCHANGE 0x0020
|
---|
[4] | 169 |
|
---|
| 170 | typedef WORD PRINTEROP_FLAGS;
|
---|
| 171 |
|
---|
[21916] | 172 | typedef struct _SHNAMEMAPPINGW {
|
---|
| 173 | LPWSTR pszOldPath;
|
---|
| 174 | LPWSTR pszNewPath;
|
---|
| 175 | int cchOldPath;
|
---|
| 176 | int cchNewPath;
|
---|
| 177 | } SHNAMEMAPPINGW, *LPSHNAMEMAPPINGW;
|
---|
[10314] | 178 |
|
---|
[4] | 179 | typedef struct _SHFILEOPSTRUCTA
|
---|
| 180 | { HWND hwnd;
|
---|
| 181 | UINT wFunc;
|
---|
| 182 | LPCSTR pFrom;
|
---|
| 183 | LPCSTR pTo;
|
---|
| 184 | FILEOP_FLAGS fFlags;
|
---|
| 185 | BOOL fAnyOperationsAborted;
|
---|
| 186 | LPVOID hNameMappings;
|
---|
| 187 | LPCSTR lpszProgressTitle;
|
---|
| 188 | } SHFILEOPSTRUCTA, *LPSHFILEOPSTRUCTA;
|
---|
| 189 |
|
---|
| 190 | typedef struct _SHFILEOPSTRUCTW
|
---|
| 191 | { HWND hwnd;
|
---|
| 192 | UINT wFunc;
|
---|
| 193 | LPCWSTR pFrom;
|
---|
| 194 | LPCWSTR pTo;
|
---|
| 195 | FILEOP_FLAGS fFlags;
|
---|
| 196 | BOOL fAnyOperationsAborted;
|
---|
| 197 | LPVOID hNameMappings;
|
---|
| 198 | LPCWSTR lpszProgressTitle;
|
---|
| 199 | } SHFILEOPSTRUCTW, *LPSHFILEOPSTRUCTW;
|
---|
| 200 |
|
---|
[10162] | 201 | #define SHFILEOPSTRUCT WINELIB_NAME_AW(SHFILEOPSTRUCT)
|
---|
| 202 | #define LPSHFILEOPSTRUCT WINELIB_NAME_AW(LPSHFILEOPSTRUCT)
|
---|
| 203 |
|
---|
[1546] | 204 | DWORD WINAPI SHFileOperationA (LPSHFILEOPSTRUCTA lpFileOp);
|
---|
| 205 | DWORD WINAPI SHFileOperationW (LPSHFILEOPSTRUCTW lpFileOp);
|
---|
[10162] | 206 | #define SHFileOperation WINELIB_NAME_AW(SHFileOperation)
|
---|
[4] | 207 |
|
---|
| 208 |
|
---|
[785] | 209 | /*************************************
|
---|
| 210 | * code that is shared with shlobj.h *
|
---|
| 211 | *************************************/
|
---|
| 212 |
|
---|
[4] | 213 | /******************************************
|
---|
| 214 | * ShellExecute
|
---|
| 215 | */
|
---|
| 216 | #define SE_ERR_SHARE 26
|
---|
| 217 | #define SE_ERR_ASSOCINCOMPLETE 27
|
---|
| 218 | #define SE_ERR_DDETIMEOUT 28
|
---|
| 219 | #define SE_ERR_DDEFAIL 29
|
---|
| 220 | #define SE_ERR_DDEBUSY 30
|
---|
| 221 | #define SE_ERR_NOASSOC 31
|
---|
| 222 |
|
---|
| 223 | HINSTANCE WINAPI ShellExecuteA(HWND,LPCSTR,LPCSTR,LPCSTR,LPCSTR,INT);
|
---|
| 224 | HINSTANCE WINAPI ShellExecuteW(HWND,LPCWSTR,LPCWSTR,LPCWSTR,LPCWSTR,INT);
|
---|
[1007] | 225 | #define ShellExecute WINELIB_NAME_AW(ShellExecute)
|
---|
| 226 |
|
---|
[4] | 227 | /******************************************
|
---|
[785] | 228 | * Tray Notification
|
---|
| 229 | */
|
---|
| 230 | typedef struct _NOTIFYICONDATAA
|
---|
| 231 | { DWORD cbSize;
|
---|
| 232 | HWND hWnd;
|
---|
| 233 | UINT uID;
|
---|
| 234 | UINT uFlags;
|
---|
| 235 | UINT uCallbackMessage;
|
---|
| 236 | HICON hIcon;
|
---|
| 237 | CHAR szTip[64];
|
---|
| 238 | } NOTIFYICONDATAA, *PNOTIFYICONDATAA;
|
---|
| 239 |
|
---|
| 240 | typedef struct _NOTIFYICONDATAW
|
---|
| 241 | { DWORD cbSize;
|
---|
| 242 | HWND hWnd;
|
---|
| 243 | UINT uID;
|
---|
| 244 | UINT uFlags;
|
---|
| 245 | UINT uCallbackMessage;
|
---|
| 246 | HICON hIcon;
|
---|
| 247 | WCHAR szTip[64];
|
---|
| 248 | } NOTIFYICONDATAW, *PNOTIFYICONDATAW;
|
---|
| 249 |
|
---|
[5155] | 250 | DECL_WINELIB_TYPE_AW(NOTIFYICONDATA)
|
---|
[21510] | 251 | DECL_WINELIB_TYPE_AW(PNOTIFYICONDATA)
|
---|
[5154] | 252 |
|
---|
[5148] | 253 | BOOL WINAPI Shell_NotifyIconA(DWORD dwMessage, PNOTIFYICONDATAA lpData);
|
---|
| 254 | BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW lpData);
|
---|
| 255 | #define Shell_NotifyIcon WINELIB_NAME_AW(Shell_NotifyIcon)
|
---|
[785] | 256 |
|
---|
| 257 | #define SEE_MASK_CLASSNAME 0x00000001
|
---|
| 258 | #define SEE_MASK_CLASSKEY 0x00000003
|
---|
| 259 | #define SEE_MASK_IDLIST 0x00000004
|
---|
| 260 | #define SEE_MASK_INVOKEIDLIST 0x0000000c
|
---|
| 261 | #define SEE_MASK_ICON 0x00000010
|
---|
| 262 | #define SEE_MASK_HOTKEY 0x00000020
|
---|
| 263 | #define SEE_MASK_NOCLOSEPROCESS 0x00000040
|
---|
| 264 | #define SEE_MASK_CONNECTNETDRV 0x00000080
|
---|
| 265 | #define SEE_MASK_FLAG_DDEWAIT 0x00000100
|
---|
| 266 | #define SEE_MASK_DOENVSUBST 0x00000200
|
---|
| 267 | #define SEE_MASK_FLAG_NO_UI 0x00000400
|
---|
| 268 | #define SEE_MASK_UNICODE 0x00004000
|
---|
| 269 | #define SEE_MASK_NO_CONSOLE 0x00008000
|
---|
| 270 | #define SEE_MASK_ASYNCOK 0x00100000
|
---|
| 271 |
|
---|
| 272 |
|
---|
| 273 | /******************************************
|
---|
[4] | 274 | * Misc
|
---|
| 275 | */
|
---|
| 276 |
|
---|
| 277 | HICON WINAPI ExtractIconA(HINSTANCE,LPCSTR,UINT);
|
---|
| 278 | HICON WINAPI ExtractIconW(HINSTANCE,LPCWSTR,UINT);
|
---|
| 279 |
|
---|
| 280 | HICON WINAPI ExtractAssociatedIconA(HINSTANCE,LPSTR,LPWORD);
|
---|
| 281 | HICON WINAPI ExtractAssociatedIconW(HINSTANCE,LPWSTR,LPWORD);
|
---|
[4688] | 282 | UINT WINAPI ExtractIconExA( LPCSTR, INT, HICON *, HICON *, UINT );
|
---|
| 283 | UINT WINAPI ExtractIconExW( LPCWSTR, INT, HICON *, HICON *, UINT );
|
---|
[10162] | 284 | #define ExtractIconEx WINELIB_NAME_AW(ExtractIconEx)
|
---|
[4688] | 285 | UINT WINAPI ExtractIconExAW(LPCVOID, INT, HICON *, HICON *, UINT );
|
---|
[4] | 286 | HINSTANCE WINAPI FindExecutableA(LPCSTR,LPCSTR,LPSTR);
|
---|
| 287 | HINSTANCE WINAPI FindExecutableW(LPCWSTR,LPCWSTR,LPWSTR);
|
---|
[9973] | 288 | #define FindExecutable WINELIB_NAME_AW(FindExecutable)
|
---|
[4] | 289 |
|
---|
[21465] | 290 | LPWSTR* WINAPI CommandLineToArgvW(LPCWSTR lpCmdline, int*);
|
---|
| 291 |
|
---|
[4124] | 292 | BOOL WINAPI ShellAboutA(HWND,LPCSTR,LPCSTR,HICON);
|
---|
| 293 | BOOL WINAPI ShellAboutW(HWND,LPCWSTR,LPCWSTR,HICON);
|
---|
[9973] | 294 | #define ShellAbout WINELIB_NAME_AW(ShellAbout)
|
---|
[4] | 295 |
|
---|
| 296 | #pragma pack(4)
|
---|
| 297 |
|
---|
[21916] | 298 | #ifdef __cplusplus
|
---|
| 299 | } // extern "C"
|
---|
| 300 | #endif
|
---|
| 301 |
|
---|
[4] | 302 | #endif /* _WINE_SHELLAPI_H */
|
---|