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 typedef struct _ITS_Control_Data
24 UINT adwControlData[1];
26 } ITS_Control_Data, *PITS_Control_Data;
28 typedef enum ECompactionLev {
35 pointer_default(unique)
37 interface IITStorage : IUnknown
39 HRESULT StgCreateDocfile(
40 [in] const WCHAR * pwcsName,
43 [out] IStorage ** ppstgOpen);
45 HRESULT StgCreateDocfileOnILockBytes(
46 [in] ILockBytes * plkbyt,
49 [out] IStorage ** ppstgOpen);
52 HRESULT StgIsStorageFile(
53 [in] const WCHAR * pwcsName);
55 HRESULT StgIsStorageILockBytes(
56 [in] ILockBytes * plkbyt);
58 HRESULT StgOpenStorage(
59 [in] const WCHAR * pwcsName,
60 [in] IStorage * pstgPriority,
64 [out] IStorage ** ppstgOpen);
66 HRESULT StgOpenStorageOnILockBytes(
67 [in] ILockBytes * plkbyt,
68 [in] IStorage * pStgPriority,
72 [out] IStorage ** ppstgOpen);
75 [in] WCHAR const * lpszName,
76 [in] FILETIME const * pctime,
77 [in] FILETIME const * patime,
78 [in] FILETIME const * pmtime);
80 HRESULT SetControlData(
81 [in] PITS_Control_Data pControlData);
83 HRESULT DefaultControlData(
84 [out] PITS_Control_Data * ppControlData);
87 [in] const WCHAR * pwcsName,
88 [in] ECompactionLev iLev);
91 cpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec );");
92 cpp_quote("DEFINE_GUID(IID_IITStorage, 0x88cc31de, 0x27ab, 0x11d0, 0x9d, 0xf9, 0x0, 0xa0, 0xc9, 0x22, 0xe6, 0xec);");