af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2004 Mike McCormack
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 "oaidl.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _ITS_Control_Data
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync UINT cdwControlData;
af062818b47340eef15700d2f0211576ba3506eevboxsync UINT adwControlData[1];
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync} ITS_Control_Data, *PITS_Control_Data;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef enum ECompactionLev {
af062818b47340eef15700d2f0211576ba3506eevboxsync COMPACT_DATA = 0,
af062818b47340eef15700d2f0211576ba3506eevboxsync COMPACT_DATA_AND_PATH
af062818b47340eef15700d2f0211576ba3506eevboxsync} ECompactionLev;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(88cc31de-27ab-11d0-9df9-00a0c922e6ec),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IITStorage : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgCreateDocfile(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const WCHAR * pwcsName,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD grfMode,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD reserved,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IStorage ** ppstgOpen);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgCreateDocfileOnILockBytes(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] ILockBytes * plkbyt,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD grfMode,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD reserved,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IStorage ** ppstgOpen);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgIsStorageFile(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const WCHAR * pwcsName);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgIsStorageILockBytes(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] ILockBytes * plkbyt);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgOpenStorage(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const WCHAR * pwcsName,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IStorage * pstgPriority,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD grfMode,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] SNB snbExclude,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD reserved,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IStorage ** ppstgOpen);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgOpenStorageOnILockBytes(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] ILockBytes * plkbyt,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] IStorage * pStgPriority,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD grfMode,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] SNB snbExclude,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] DWORD reserved,
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] IStorage ** ppstgOpen);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT StgSetTimes(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] WCHAR const * lpszName,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] FILETIME const * pctime,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] FILETIME const * patime,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] FILETIME const * pmtime);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetControlData(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] PITS_Control_Data pControlData);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT DefaultControlData(
af062818b47340eef15700d2f0211576ba3506eevboxsync [out] PITS_Control_Data * ppControlData);
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT Compact(
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] const WCHAR * pwcsName,
af062818b47340eef15700d2f0211576ba3506eevboxsync [in] ECompactionLev iLev);
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_MSFSStore,0xd54eee56,0xaaab,0x11d0,0x9e,0x1d,0x00,0xa0,0xc9,0x22,0xe6,0xec);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_MSITStore,0x9d148290,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("DEFINE_GUID(CLSID_ITSProtocol,0x9d148291,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);")