shellapi.h revision b955672b950093ff7416d1269dd4d3b69983bd8f
/*
* Copyright (C) the Wine project
*
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/*
* Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Sun elects to use only
* the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
* a choice of LGPL license versions is made available with the language indicating
* that LGPLv2 or any later version may be used, or where a choice of which version
* of the LGPL is applied is otherwise unspecified.
*/
#ifndef __WINE_SHELLAPI_H
#define __WINE_SHELLAPI_H
#ifdef __cplusplus
extern "C" {
#endif /* defined(__cplusplus) */
#include <pshpack1.h>
/******************************************
* DragObject
*/
typedef struct _DRAGINFOA
} DRAGINFOA, *LPDRAGINFOA;
typedef struct _DRAGINFOW
} DRAGINFOW, *LPDRAGINFOW;
/******************************************
* Application Bar
*/
#define ABM_NEW 0x00000000
#define ABM_REMOVE 0x00000001
#define ABM_QUERYPOS 0x00000002
#define ABM_SETPOS 0x00000003
#define ABM_GETSTATE 0x00000004
#define ABM_GETTASKBARPOS 0x00000005
#define ABM_ACTIVATE 0x00000006
#define ABM_GETAUTOHIDEBAR 0x00000007
#define ABM_SETAUTOHIDEBAR 0x00000008
#define ABM_WINDOWPOSCHANGED 0x00000009
#define ABN_STATECHANGE 0x00000000
#define ABN_POSCHANGED 0x00000001
#define ABN_FULLSCREENAPP 0x00000002
#define ABN_WINDOWARRANGE 0x00000003
#define ABS_AUTOHIDE 0x00000001
#define ABS_ALWAYSONTOP 0x00000002
#define ABE_LEFT 0
#define ABE_TOP 1
#define ABE_RIGHT 2
#define ABE_BOTTOM 3
typedef struct _AppBarData
} APPBARDATA, *PAPPBARDATA;
/******************************************
* SHGetFileInfo
*/
#define SHGFI_ADDOVERLAYS 0x000000020
#define SHGFI_OVERLAYINDEX 0x000000040
typedef struct tagSHFILEINFOA
int iIcon; /* icon index */
} SHFILEINFOA;
typedef struct tagSHFILEINFOW
int iIcon; /* icon index */
} SHFILEINFOW;
/******************************************
* SHSetFileInfo
*/
/******************************************
* SHFileOperation
*/
#define FO_MOVE 0x0001
#define FO_COPY 0x0002
#define FO_DELETE 0x0003
#define FO_RENAME 0x0004
#define FOF_MULTIDESTFILES 0x0001
#define FOF_CONFIRMMOUSE 0x0002
#define FOF_SILENT 0x0004
#define FOF_RENAMEONCOLLISION 0x0008
#define FOF_NOCONFIRMATION 0x0010
#define FOF_WANTMAPPINGHANDLE 0x0020
#define FOF_ALLOWUNDO 0x0040
#define FOF_FILESONLY 0x0080
#define FOF_SIMPLEPROGRESS 0x0100
#define FOF_NOCONFIRMMKDIR 0x0200
#define FOF_NOERRORUI 0x0400
#define FOF_NOCOPYSECURITYATTRIBS 0x0800
of recycling (even if FOF_NOCONFIRMATION) */
typedef WORD FILEOP_FLAGS;
#define PO_DELETE 0x0013
#define PO_RENAME 0x0014
#define PO_PORTCHANGE 0x0020
typedef WORD PRINTEROP_FLAGS;
typedef struct _SHFILEOPSTRUCTA
typedef struct _SHFILEOPSTRUCTW
typedef struct _SHNAMEMAPPINGA
{
int cchOldPath;
int cchNewPath;
typedef struct _SHNAMEMAPPINGW
{
int cchOldPath;
int cchNewPath;
/******************************************
* ShellExecute
*/
#define SE_ERR_SHARE 26
#define SE_ERR_ASSOCINCOMPLETE 27
#define SE_ERR_DDETIMEOUT 28
#define SE_ERR_DDEFAIL 29
#define SE_ERR_DDEBUSY 30
#define SE_ERR_NOASSOC 31
#define SE_ERR_DLLNOTFOUND 32
#define SE_ERR_SHARE 26
#define SE_ERR_ASSOCINCOMPLETE 27
#define SE_ERR_DDETIMEOUT 28
#define SE_ERR_DDEFAIL 29
#define SE_ERR_DDEBUSY 30
#define SE_ERR_NOASSOC 31
#define SEE_MASK_CLASSNAME 0x00000001
#define SEE_MASK_CLASSKEY 0x00000003
#define SEE_MASK_IDLIST 0x00000004
#define SEE_MASK_INVOKEIDLIST 0x0000000c
#define SEE_MASK_ICON 0x00000010
#define SEE_MASK_HOTKEY 0x00000020
#define SEE_MASK_NOCLOSEPROCESS 0x00000040
#define SEE_MASK_CONNECTNETDRV 0x00000080
#define SEE_MASK_NOASYNC 0x00000100
#define SEE_MASK_DOENVSUBST 0x00000200
#define SEE_MASK_FLAG_NO_UI 0x00000400
#define SEE_MASK_UNICODE 0x00004000
#define SEE_MASK_NO_CONSOLE 0x00008000
#define SEE_MASK_ASYNCOK 0x00100000
#define SEE_MASK_HMONITOR 0x00200000
#define SEE_MASK_NOZONECHECKS 0x00800000
#define SEE_MASK_NOQUERYCLASSSTORE 0x01000000
#define SEE_MASK_WAITFORINPUTIDLE 0x02000000
#define SEE_MASK_FLAG_LOG_USAGE 0x04000000
typedef struct _SHELLEXECUTEINFOA
/* Optional fields */
union
typedef struct _SHELLEXECUTEINFOW
/* Optional fields*/
union
/******************************************
* Tray Notification
*/
/* notifyicondata.uFlags values*/
#define NIF_MESSAGE 0x00000001
#define NIF_ICON 0x00000002
#define NIF_TIP 0x00000004
#define NIF_STATE 0x00000008
#define NIF_INFO 0x00000010
#define NIF_GUID 0x00000020
#define NIF_REALTIME 0x00000040
#define NIF_SHOWTIP 0x00000080
/* notifyicondata.dwState values */
#define NIS_HIDDEN 0x00000001
#define NIS_SHAREDICON 0x00000002
/* notifyicondata.dwInfoFlags values */
#define NIIF_NONE 0x00000000
#define NIIF_INFO 0x00000001
#define NIIF_WARNING 0x00000002
#define NIIF_ERROR 0x00000003
#define NIIF_USER 0x00000004
#define NIIF_ICONMASK 0x0000000f
#define NIIF_NOSOUND 0x00000010
#define NIIF_LARGEICON 0x00000020
/* dwMessage values */
#define NIM_ADD 0x00000000
#define NIM_MODIFY 0x00000001
#define NIM_DELETE 0x00000002
#define NIM_SETFOCUS 0x00000003
#define NIM_SETVERSION 0x00000004
/* callback message lParam values */
#define NIN_SELECT (WM_USER+0)
#define NINF_KEY 1
typedef struct _NOTIFYICONDATAA
union {
typedef struct _NOTIFYICONDATAW
union {
/* pre IE 5.0 */
/* pre Window XP */
/* pre Window Vista */
/******************************************
* Links
*/
#define SHGNLI_PIDL 0x01
#define SHGNLI_PREFIXNAME 0x02
#define SHGNLI_NOUNIQUE 0x04
#define SHGNLI_NOLNK 0x08
/******************************************
* Recycle bin
*/
typedef struct _SHQUERYRBINFO
{
/******************************************
* Misc
*/
#ifdef __cplusplus
} /* extern "C" */
#endif /* defined(__cplusplus) */
#include <poppack.h>
#endif /* __WINE_SHELLAPI_H */