1 | /*
|
---|
2 | * Copyright (C) 2004 Mike McCormack
|
---|
3 | *
|
---|
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.
|
---|
8 | *
|
---|
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.
|
---|
13 | *
|
---|
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
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Sun elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "oaidl.idl";
|
---|
29 |
|
---|
30 | typedef struct _ITS_Control_Data
|
---|
31 | {
|
---|
32 | UINT cdwControlData;
|
---|
33 | UINT adwControlData[1];
|
---|
34 |
|
---|
35 | } ITS_Control_Data, *PITS_Control_Data;
|
---|
36 |
|
---|
37 | typedef enum ECompactionLev {
|
---|
38 | COMPACT_DATA = 0,
|
---|
39 | COMPACT_DATA_AND_PATH
|
---|
40 | } ECompactionLev;
|
---|
41 |
|
---|
42 | [
|
---|
43 | object,
|
---|
44 | uuid(88cc31de-27ab-11d0-9df9-00a0c922e6ec),
|
---|
45 | pointer_default(unique)
|
---|
46 | ]
|
---|
47 | interface IITStorage : IUnknown
|
---|
48 | {
|
---|
49 | HRESULT StgCreateDocfile(
|
---|
50 | [in] const WCHAR * pwcsName,
|
---|
51 | [in] DWORD grfMode,
|
---|
52 | [in] DWORD reserved,
|
---|
53 | [out] IStorage ** ppstgOpen);
|
---|
54 |
|
---|
55 | HRESULT StgCreateDocfileOnILockBytes(
|
---|
56 | [in] ILockBytes * plkbyt,
|
---|
57 | [in] DWORD grfMode,
|
---|
58 | [in] DWORD reserved,
|
---|
59 | [out] IStorage ** ppstgOpen);
|
---|
60 |
|
---|
61 |
|
---|
62 | HRESULT StgIsStorageFile(
|
---|
63 | [in] const WCHAR * pwcsName);
|
---|
64 |
|
---|
65 | HRESULT StgIsStorageILockBytes(
|
---|
66 | [in] ILockBytes * plkbyt);
|
---|
67 |
|
---|
68 | HRESULT StgOpenStorage(
|
---|
69 | [in] const WCHAR * pwcsName,
|
---|
70 | [in] IStorage * pstgPriority,
|
---|
71 | [in] DWORD grfMode,
|
---|
72 | [in] SNB snbExclude,
|
---|
73 | [in] DWORD reserved,
|
---|
74 | [out] IStorage ** ppstgOpen);
|
---|
75 |
|
---|
76 | HRESULT StgOpenStorageOnILockBytes(
|
---|
77 | [in] ILockBytes * plkbyt,
|
---|
78 | [in] IStorage * pStgPriority,
|
---|
79 | [in] DWORD grfMode,
|
---|
80 | [in] SNB snbExclude,
|
---|
81 | [in] DWORD reserved,
|
---|
82 | [out] IStorage ** ppstgOpen);
|
---|
83 |
|
---|
84 | HRESULT StgSetTimes(
|
---|
85 | [in] WCHAR const * lpszName,
|
---|
86 | [in] FILETIME const * pctime,
|
---|
87 | [in] FILETIME const * patime,
|
---|
88 | [in] FILETIME const * pmtime);
|
---|
89 |
|
---|
90 | HRESULT SetControlData(
|
---|
91 | [in] PITS_Control_Data pControlData);
|
---|
92 |
|
---|
93 | HRESULT DefaultControlData(
|
---|
94 | [out] PITS_Control_Data * ppControlData);
|
---|
95 |
|
---|
96 | HRESULT Compact(
|
---|
97 | [in] const WCHAR * pwcsName,
|
---|
98 | [in] ECompactionLev iLev);
|
---|
99 | }
|
---|
100 |
|
---|
101 | cpp_quote("DEFINE_GUID(CLSID_ITStorage,0x5d02926a,0x212e,0x11d0,0x9d,0xf9,0x00,0xa0,0xc9,0x22,0xe6,0xec);")
|
---|
102 | cpp_quote("DEFINE_GUID(CLSID_MSFSStore,0xd54eee56,0xaaab,0x11d0,0x9e,0x1d,0x00,0xa0,0xc9,0x22,0xe6,0xec);")
|
---|
103 | cpp_quote("DEFINE_GUID(CLSID_MSITStore,0x9d148290,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);")
|
---|
104 | cpp_quote("DEFINE_GUID(CLSID_ITSProtocol,0x9d148291,0xb9c8,0x11d0,0xa4,0xcc,0x00,0x00,0xf8,0x01,0x49,0xf6);")
|
---|