2003-09-04 21:43:39 +02:00
|
|
|
/*
|
|
|
|
* Type definitions for shell objects
|
|
|
|
*
|
|
|
|
* Copyright (C) 1999 Juergen Schmied
|
|
|
|
* Copyright (C) 2003 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* 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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
2003-09-04 21:43:39 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
import "wtypes.idl";
|
|
|
|
|
|
|
|
cpp_quote("#include <pshpack1.h>")
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WORD cb; /* nr of bytes in this item */
|
|
|
|
BYTE abID[1]; /* first byte in this item */
|
|
|
|
} SHITEMID, *LPSHITEMID;
|
|
|
|
typedef const SHITEMID *LPCSHITEMID;
|
|
|
|
|
|
|
|
typedef struct _ITEMIDLIST
|
|
|
|
{
|
|
|
|
SHITEMID mkid; /* first itemid in list */
|
|
|
|
} ITEMIDLIST,*LPITEMIDLIST;
|
|
|
|
typedef const ITEMIDLIST *LPCITEMIDLIST;
|
2010-03-04 18:19:03 +01:00
|
|
|
typedef LPITEMIDLIST PITEMID_CHILD;
|
2010-03-21 22:45:21 +01:00
|
|
|
typedef const PITEMID_CHILD PCITEMID_CHILD;
|
2010-03-04 18:19:03 +01:00
|
|
|
typedef LPCITEMIDLIST PCUITEMID_CHILD;
|
|
|
|
typedef LPCITEMIDLIST *PCUITEMID_CHILD_ARRAY;
|
2010-05-24 16:40:42 +02:00
|
|
|
typedef LPCITEMIDLIST PCUIDLIST_RELATIVE;
|
2010-06-11 13:19:49 +02:00
|
|
|
typedef LPITEMIDLIST PIDLIST_ABSOLUTE;
|
2010-05-24 16:40:42 +02:00
|
|
|
typedef LPCITEMIDLIST PCIDLIST_ABSOLUTE;
|
2003-09-04 21:43:39 +02:00
|
|
|
cpp_quote("#include <poppack.h>")
|
|
|
|
|
|
|
|
#ifndef MAX_PATH
|
|
|
|
#define MAX_PATH 260
|
|
|
|
#endif
|
|
|
|
|
|
|
|
cpp_quote("#if 0")
|
|
|
|
typedef struct { int dummy; } WIN32_FIND_DATAA, WIN32_FIND_DATAW;
|
|
|
|
cpp_quote("#endif")
|
|
|
|
|
|
|
|
typedef enum tagSTRRET_TYPE
|
|
|
|
{
|
|
|
|
STRRET_WSTR = 0,
|
|
|
|
STRRET_OFFSET = 1,
|
|
|
|
STRRET_CSTR = 2
|
|
|
|
} STRRET_TYPE;
|
|
|
|
|
2009-01-09 17:46:24 +01:00
|
|
|
cpp_quote("#include <pshpack8.h>")
|
2003-09-04 21:43:39 +02:00
|
|
|
typedef struct _STRRET
|
|
|
|
{
|
|
|
|
UINT uType; /* STRRET_xxx */
|
|
|
|
[switch_type(UINT), switch_is(uType)] union
|
|
|
|
{
|
|
|
|
[case(STRRET_WSTR)][string] LPWSTR pOleStr; /* OLESTR that will be freed */
|
|
|
|
[case(STRRET_OFFSET)] UINT uOffset; /* Offset into SHITEMID (ANSI) */
|
|
|
|
[case(STRRET_CSTR)] char cStr[MAX_PATH]; /* ANSI Buffer */
|
|
|
|
} DUMMYUNIONNAME;
|
|
|
|
} STRRET, *LPSTRRET;
|
|
|
|
cpp_quote("#include <poppack.h>")
|
|
|
|
|
|
|
|
cpp_quote("#include <pshpack1.h>")
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int fmt;
|
|
|
|
int cxChar;
|
|
|
|
STRRET str;
|
|
|
|
} SHELLDETAILS, *LPSHELLDETAILS;
|
|
|
|
cpp_quote("#include <poppack.h>")
|
2009-11-11 00:45:44 +01:00
|
|
|
|
2010-07-20 16:39:11 +02:00
|
|
|
typedef struct _COMDLG_FILTERSPEC
|
|
|
|
{
|
|
|
|
[string] LPCWSTR pszName;
|
|
|
|
[string] LPCWSTR pszSpec;
|
|
|
|
} COMDLG_FILTERSPEC;
|
|
|
|
|
2009-11-11 00:45:44 +01:00
|
|
|
typedef [v1_enum] enum tagSHCOLSTATE
|
|
|
|
{
|
|
|
|
SHCOLSTATE_DEFAULT = 0,
|
|
|
|
SHCOLSTATE_TYPE_STR,
|
|
|
|
SHCOLSTATE_TYPE_INT,
|
|
|
|
SHCOLSTATE_TYPE_DATE,
|
|
|
|
SHCOLSTATE_TYPEMASK = 0xf,
|
|
|
|
SHCOLSTATE_ONBYDEFAULT = 0x10,
|
|
|
|
SHCOLSTATE_SLOW = 0x20,
|
|
|
|
SHCOLSTATE_EXTENDED = 0x40,
|
|
|
|
SHCOLSTATE_SECONDARYUI = 0x80,
|
|
|
|
SHCOLSTATE_HIDDEN = 0x100,
|
|
|
|
SHCOLSTATE_PREFER_VARCMP = 0x200,
|
|
|
|
SHCOLSTATE_PREFER_FMTCMP = 0x400,
|
|
|
|
SHCOLSTATE_NOSORTBYFOLDERNESS = 0x800,
|
|
|
|
SHCOLSTATE_VIEWONLY = 0x10000,
|
|
|
|
SHCOLSTATE_BATCHREAD = 0x20000,
|
|
|
|
SHCOLSTATE_NO_GROUPBY = 0x40000,
|
|
|
|
SHCOLSTATE_FIXED_WIDTH = 0x1000,
|
|
|
|
SHCOLSTATE_NODPISCALE = 0x2000,
|
|
|
|
SHCOLSTATE_FIXED_RATIO = 0x4000,
|
|
|
|
SHCOLSTATE_DISPLAYMASK = 0xf000
|
|
|
|
} SHCOLSTATE;
|
|
|
|
|
|
|
|
typedef DWORD SHCOLSTATEF;
|
2010-09-02 13:10:44 +02:00
|
|
|
|
|
|
|
typedef GUID KNOWNFOLDERID;
|
|
|
|
|
|
|
|
cpp_quote("#if 0")
|
|
|
|
typedef KNOWNFOLDERID *REFKNOWNFOLDERID;
|
|
|
|
cpp_quote("#endif")
|
|
|
|
|
|
|
|
cpp_quote("#ifdef __cplusplus")
|
|
|
|
cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID &")
|
|
|
|
cpp_quote("#else")
|
|
|
|
cpp_quote("#define REFKNOWNFOLDERID const KNOWNFOLDERID * __MIDL_CONST")
|
|
|
|
cpp_quote("#endif")
|