/*
* Copyright 2002 Ove Kaaven
* Copyright 2004 Francois Gouget
* Copyright 2005 Juan Lang
*
* 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
*/
/*
* Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
* other than GPL or LGPL is available it will apply instead, Oracle 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.
*/
import "objidl.idl";
import "oaidl.idl";
/*
* Windows SDK braindamage alert
*
* PID_DICTIONARY and PID_CODEPAGE are defined by msidefs.h too
* PID_SECURITY is defined in msidefs.h with a different value!
* So these need to be undefined first.
*/
cpp_quote("#ifdef PID_DICTIONARY")
cpp_quote("#undef PID_DICTIONARY")
cpp_quote("#endif")
cpp_quote("#ifdef PID_CODEPAGE")
cpp_quote("#undef PID_CODEPAGE")
cpp_quote("#endif")
cpp_quote("#ifdef PID_SECURITY")
cpp_quote("#undef PID_SECURITY")
cpp_quote("#endif")
/******************** Property Storage ********************/
interface IEnumSTATPROPSTG;
interface IEnumSTATPROPSETSTG;
[
]
interface IPropertyStorage : IUnknown
{
} name
TYPEDEF_CA(short, CAI);
TYPEDEF_CA(long, CAL);
TYPEDEF_CA(float, CAFLT);
TYPEDEF_CA(double, CADBL);
#if 0 /* illegal in C++ */
};
};
cpp_quote("#if 0")
cpp_quote("#endif")
cpp_quote("#ifndef _REFPROPVARIANT_DEFINED")
cpp_quote("#define _REFPROPVARIANT_DEFINED")
cpp_quote("#ifdef __cplusplus")
cpp_quote("#define REFPROPVARIANT const PROPVARIANT &")
cpp_quote("#else")
cpp_quote("#define REFPROPVARIANT const PROPVARIANT * __MIDL_CONST")
cpp_quote("#endif")
cpp_quote("#endif")
cpp_quote("#define PIDDI_THUMBNAIL 0x00000002L /* VT_BLOB */")
cpp_quote("")
cpp_quote("#define PIDSI_TITLE 0x00000002L /* VT_LPSTR */")
cpp_quote("#define PIDSI_SUBJECT 0x00000003L /* VT_LPSTR */")
cpp_quote("#define PIDSI_AUTHOR 0x00000004L /* VT_LPSTR */")
cpp_quote("#define PIDSI_KEYWORDS 0x00000005L /* VT_LPSTR */")
cpp_quote("#define PIDSI_COMMENTS 0x00000006L /* VT_LPSTR */")
cpp_quote("#define PIDSI_TEMPLATE 0x00000007L /* VT_LPSTR */")
cpp_quote("#define PIDSI_LASTAUTHOR 0x00000008L /* VT_LPSTR */")
cpp_quote("#define PIDSI_REVNUMBER 0x00000009L /* VT_LPSTR */")
cpp_quote("#define PIDSI_EDITTIME 0x0000000AL /* VT_FILETIME (UTC) */")
cpp_quote("#define PIDSI_LASTPRINTED 0x0000000BL /* VT_FILETIME (UTC) */")
cpp_quote("#define PIDSI_CREATE_DTM 0x0000000CL /* VT_FILETIME (UTC) */")
cpp_quote("#define PIDSI_LASTSAVE_DTM 0x0000000DL /* VT_FILETIME (UTC) */")
cpp_quote("#define PIDSI_PAGECOUNT 0x0000000EL /* VT_I4 */")
cpp_quote("#define PIDSI_WORDCOUNT 0x0000000FL /* VT_I4 */")
cpp_quote("#define PIDSI_CHARCOUNT 0x00000010L /* VT_I4 */")
cpp_quote("#define PIDSI_THUMBNAIL 0x00000011L /* VT_CF */")
cpp_quote("#define PIDSI_APPNAME 0x00000012L /* VT_LPSTR */")
cpp_quote("#define PIDSI_DOC_SECURITY 0x00000013L /* VT_I4 */")
cpp_quote("")
cpp_quote("#define PIDDSI_CATEGORY 0x00000002L /* VT_LPSTR */")
cpp_quote("#define PIDDSI_PRESFORMAT 0x00000003L /* VT_LPSTR */")
cpp_quote("#define PIDDSI_BYTECOUNT 0x00000004L /* VT_I4 */")
cpp_quote("#define PIDDSI_LINECOUNT 0x00000005L /* VT_I4 */")
cpp_quote("#define PIDDSI_PARCOUNT 0x00000006L /* VT_I4 */")
cpp_quote("#define PIDDSI_SLIDECOUNT 0x00000007L /* VT_I4 */")
cpp_quote("#define PIDDSI_NOTECOUNT 0x00000008L /* VT_I4 */")
cpp_quote("#define PIDDSI_HIDDENCOUNT 0x00000009L /* VT_I4 */")
cpp_quote("#define PIDDSI_MMCLIPCOUNT 0x0000000AL /* VT_I4 */")
cpp_quote("#define PIDDSI_SCALE 0x0000000BL /* VT_BOOL */")
cpp_quote("#define PIDDSI_HEADINGPAIR 0x0000000CL /* VT_VARIANT|VT_VECTOR */")
cpp_quote("#define PIDDSI_DOCPARTS 0x0000000DL /* VT_LPSTR|VT_VECTOR */")
cpp_quote("#define PIDDSI_MANAGER 0x0000000EL /* VT_LPSTR */")
cpp_quote("#define PIDDSI_COMPANY 0x0000000FL /* VT_LPSTR */")
cpp_quote("#define PIDDSI_LINKSDIRTY 0x00000010L /* VT_B0OL */")
[default] ;
} PROPSPEC;
} STATPROPSTG;
cpp_quote("/* Macros for dwOSVersion member of STATPROPSETSTG */")
cpp_quote("#define PROPSETHDR_OSVER_KIND(dwOSVer) HIWORD((dwOSVer))")
cpp_quote("#define PROPSETHDR_OSVER_MAJOR(dwOSVer) LOBYTE(LOWORD((dwOSVer)))")
cpp_quote("#define PROPSETHDR_OSVER_MINOR(dwOSVer) HIBYTE(LOWORD((dwOSVer)))")
cpp_quote("#define PROPSETHDR_OSVERSION_UNKNOWN 0xffffffff")
}
[
]
interface IPropertySetStorage : IUnknown
{
}
[
]
interface IEnumSTATPROPSTG : IUnknown
{
[local]
}
[
]
interface IEnumSTATPROPSETSTG : IUnknown
{
[local]
}
cpp_quote("HRESULT WINAPI FreePropVariantArray(ULONG,PROPVARIANT*);")
cpp_quote("HRESULT WINAPI PropVariantClear(PROPVARIANT*);")
cpp_quote("HRESULT WINAPI PropVariantCopy(PROPVARIANT*,const PROPVARIANT*);")
cpp_quote("")
cpp_quote("#define _PROPVARIANT_INIT_DEFINED_")
cpp_quote("#define PropVariantInit(p) memset((p), 0, sizeof(PROPVARIANT))")
cpp_quote("")
cpp_quote("#ifndef _STGCREATEPROPSTG_DEFINED_")
cpp_quote("#define _STGCREATEPROPSTG_DEFINED_")
cpp_quote("HRESULT WINAPI StgCreatePropStg(IUnknown *, REFFMTID, const CLSID *, DWORD, DWORD, IPropertyStorage **);")
cpp_quote("HRESULT WINAPI StgOpenPropStg(IUnknown *, REFFMTID, DWORD, DWORD, IPropertyStorage **);")
cpp_quote("HRESULT WINAPI StgCreatePropSetStg(IStorage *, DWORD, IPropertySetStorage **);")
cpp_quote("#define CCH_MAX_PROPSTG_NAME 31")
cpp_quote("HRESULT WINAPI FmtIdToPropStgName(const FMTID *, LPOLESTR);")
cpp_quote("HRESULT WINAPI PropStgNameToFmtId(const LPOLESTR, FMTID *);")
cpp_quote("#endif /* _STGCREATEPROPSTG_DEFINED_ */")
cpp_quote("")