af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Type definitions for shell objects
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 1999 Juergen Schmied
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2003 Alexandre Julliard
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "wtypes.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#include <pshpack1.h>")
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync WORD cb; /* nr of bytes in this item */
af062818b47340eef15700d2f0211576ba3506eevboxsync BYTE abID[1]; /* first byte in this item */
af062818b47340eef15700d2f0211576ba3506eevboxsync} SHITEMID, *LPSHITEMID;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef const SHITEMID *LPCSHITEMID;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _ITEMIDLIST
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync SHITEMID mkid; /* first itemid in list */
af062818b47340eef15700d2f0211576ba3506eevboxsync} ITEMIDLIST,*LPITEMIDLIST;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef const ITEMIDLIST *LPCITEMIDLIST;
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsynctypedef LPITEMIDLIST PITEMID_CHILD;
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsynctypedef const PITEMID_CHILD PCITEMID_CHILD;
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsynctypedef LPCITEMIDLIST PCUITEMID_CHILD;
ee6bcfc59fe3b0230aad85e2ef63d0402b7719b2vboxsynctypedef LPCITEMIDLIST *PCUITEMID_CHILD_ARRAY;
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#include <poppack.h>")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef MAX_PATH
af062818b47340eef15700d2f0211576ba3506eevboxsync#define MAX_PATH 260
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#if 0")
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct { int dummy; } WIN32_FIND_DATAA, WIN32_FIND_DATAW;
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#endif")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef enum tagSTRRET_TYPE
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync STRRET_WSTR = 0,
af062818b47340eef15700d2f0211576ba3506eevboxsync STRRET_OFFSET = 1,
af062818b47340eef15700d2f0211576ba3506eevboxsync STRRET_CSTR = 2
af062818b47340eef15700d2f0211576ba3506eevboxsync} STRRET_TYPE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsynccpp_quote("#include <pshpack8.h>")
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _STRRET
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync UINT uType; /* STRRET_xxx */
af062818b47340eef15700d2f0211576ba3506eevboxsync [switch_type(UINT), switch_is(uType)] union
af062818b47340eef15700d2f0211576ba3506eevboxsync {
af062818b47340eef15700d2f0211576ba3506eevboxsync [case(STRRET_WSTR)][string] LPWSTR pOleStr; /* OLESTR that will be freed */
af062818b47340eef15700d2f0211576ba3506eevboxsync [case(STRRET_OFFSET)] UINT uOffset; /* Offset into SHITEMID (ANSI) */
af062818b47340eef15700d2f0211576ba3506eevboxsync [case(STRRET_CSTR)] char cStr[MAX_PATH]; /* ANSI Buffer */
af062818b47340eef15700d2f0211576ba3506eevboxsync } DUMMYUNIONNAME;
af062818b47340eef15700d2f0211576ba3506eevboxsync} STRRET, *LPSTRRET;
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#include <poppack.h>")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#include <pshpack1.h>")
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync int fmt;
af062818b47340eef15700d2f0211576ba3506eevboxsync int cxChar;
af062818b47340eef15700d2f0211576ba3506eevboxsync STRRET str;
af062818b47340eef15700d2f0211576ba3506eevboxsync} SHELLDETAILS, *LPSHELLDETAILS;
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#include <poppack.h>")
5112e32d7072e280613921c982a6672f2c859cf3vboxsync
5112e32d7072e280613921c982a6672f2c859cf3vboxsynctypedef [v1_enum] enum tagSHCOLSTATE
5112e32d7072e280613921c982a6672f2c859cf3vboxsync{
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_DEFAULT = 0,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_TYPE_STR,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_TYPE_INT,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_TYPE_DATE,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_TYPEMASK = 0xf,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_ONBYDEFAULT = 0x10,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_SLOW = 0x20,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_EXTENDED = 0x40,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_SECONDARYUI = 0x80,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_HIDDEN = 0x100,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_PREFER_VARCMP = 0x200,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_PREFER_FMTCMP = 0x400,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_NOSORTBYFOLDERNESS = 0x800,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_VIEWONLY = 0x10000,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_BATCHREAD = 0x20000,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_NO_GROUPBY = 0x40000,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_FIXED_WIDTH = 0x1000,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_NODPISCALE = 0x2000,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_FIXED_RATIO = 0x4000,
5112e32d7072e280613921c982a6672f2c859cf3vboxsync SHCOLSTATE_DISPLAYMASK = 0xf000
5112e32d7072e280613921c982a6672f2c859cf3vboxsync} SHCOLSTATE;
5112e32d7072e280613921c982a6672f2c859cf3vboxsync
5112e32d7072e280613921c982a6672f2c859cf3vboxsynctypedef DWORD SHCOLSTATEF;