2 * Copyright (C) 2004 Mike McCormack
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 cpp_quote("#ifdef ITSS_INITGUID")
22 cpp_quote("#include \"initguid.h\"")
25 typedef struct _ITS_Control_Data
28 UINT adwControlData[1];
30 } ITS_Control_Data, *PITS_Control_Data;
32 typedef enum ECompactionLev {
39 pointer_default(unique)
41 interface IITStorage : IUnknown
43 HRESULT StgCreateDocfile(
44 [in] const WCHAR * pwcsName,
47 [out] IStorage ** ppstgOpen);
49 HRESULT StgCreateDocfileOnILockBytes(
50 [in] ILockBytes * plkbyt,
53 [out] IStorage ** ppstgOpen);
56 HRESULT StgIsStorageFile(
57 [in] const WCHAR * pwcsName);
59 HRESULT StgIsStorageILockBytes(
60 [in] ILockBytes * plkbyt);
62 HRESULT StgOpenStorage(
63 [in] const WCHAR * pwcsName,
64 [in] IStorage * pstgPriority,
68 [out] IStorage ** ppstgOpen);
70 HRESULT StgOpenStorageOnILockBytes(
71 [in] ILockBytes * plkbyt,
72 [in] IStorage * pStgPriority,
76 [out] IStorage ** ppstgOpen);
79 [in] WCHAR const * lpszName,
80 [in] FILETIME const * pctime,
81 [in] FILETIME const * patime,
82 [in] FILETIME const * pmtime);
84 HRESULT SetControlData(
85 [in] PITS_Control_Data pControlData);
87 HRESULT DefaultControlData(
88 [out] PITS_Control_Data * ppControlData);
91 [in] const WCHAR * pwcsName,
92 [in] ECompactionLev iLev);
95 cpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec );");
96 cpp_quote("DEFINE_GUID(IID_IITStorage, 0x88cc31de, 0x27ab, 0x11d0, 0x9d, 0xf9, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xec);");
97 cpp_quote("DEFINE_GUID(CLSID_ITSProtocol,0x9d148290,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);");