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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 typedef struct _ITS_Control_Data
24 UINT adwControlData[1];
26 } ITS_Control_Data, *PITS_Control_Data;
28 typedef enum ECompactionLev {
35 uuid(88cc31de-27ab-11d0-9df9-00a0c922e6ec),
36 pointer_default(unique)
38 interface IITStorage : IUnknown
40 HRESULT StgCreateDocfile(
41 [in] const WCHAR * pwcsName,
44 [out] IStorage ** ppstgOpen);
46 HRESULT StgCreateDocfileOnILockBytes(
47 [in] ILockBytes * plkbyt,
50 [out] IStorage ** ppstgOpen);
53 HRESULT StgIsStorageFile(
54 [in] const WCHAR * pwcsName);
56 HRESULT StgIsStorageILockBytes(
57 [in] ILockBytes * plkbyt);
59 HRESULT StgOpenStorage(
60 [in] const WCHAR * pwcsName,
61 [in] IStorage * pstgPriority,
65 [out] IStorage ** ppstgOpen);
67 HRESULT StgOpenStorageOnILockBytes(
68 [in] ILockBytes * plkbyt,
69 [in] IStorage * pStgPriority,
73 [out] IStorage ** ppstgOpen);
76 [in] WCHAR const * lpszName,
77 [in] FILETIME const * pctime,
78 [in] FILETIME const * patime,
79 [in] FILETIME const * pmtime);
81 HRESULT SetControlData(
82 [in] PITS_Control_Data pControlData);
84 HRESULT DefaultControlData(
85 [out] PITS_Control_Data * ppControlData);
88 [in] const WCHAR * pwcsName,
89 [in] ECompactionLev iLev);
92 cpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec );")
93 cpp_quote("DEFINE_GUID(CLSID_ITSProtocol,0x9d148290,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);")