Commit | Line | Data |
---|---|---|
5f6e3c88 AJ |
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
17 | */ | |
18 | ||
19 | import "oaidl.idl"; | |
20 | ||
21 | typedef struct _ITS_Control_Data | |
22 | { | |
23 | UINT cdwControlData; | |
24 | UINT adwControlData[1]; | |
25 | ||
26 | } ITS_Control_Data, *PITS_Control_Data; | |
27 | ||
28 | typedef enum ECompactionLev { | |
29 | COMPACT_DATA = 0, | |
30 | COMPACT_DATA_AND_PATH | |
31 | } ECompactionLev; | |
32 | ||
33 | [ | |
34 | object, | |
35 | pointer_default(unique) | |
36 | ] | |
37 | interface IITStorage : IUnknown | |
38 | { | |
39 | HRESULT StgCreateDocfile( | |
40 | [in] const WCHAR * pwcsName, | |
41 | [in] DWORD grfMode, | |
42 | [in] DWORD reserved, | |
43 | [out] IStorage ** ppstgOpen); | |
44 | ||
45 | HRESULT StgCreateDocfileOnILockBytes( | |
46 | [in] ILockBytes * plkbyt, | |
47 | [in] DWORD grfMode, | |
48 | [in] DWORD reserved, | |
49 | [out] IStorage ** ppstgOpen); | |
50 | ||
51 | ||
52 | HRESULT StgIsStorageFile( | |
53 | [in] const WCHAR * pwcsName); | |
54 | ||
55 | HRESULT StgIsStorageILockBytes( | |
56 | [in] ILockBytes * plkbyt); | |
57 | ||
58 | HRESULT StgOpenStorage( | |
59 | [in] const WCHAR * pwcsName, | |
60 | [in] IStorage * pstgPriority, | |
61 | [in] DWORD grfMode, | |
62 | [in] SNB snbExclude, | |
63 | [in] DWORD reserved, | |
64 | [out] IStorage ** ppstgOpen); | |
65 | ||
66 | HRESULT StgOpenStorageOnILockBytes( | |
67 | [in] ILockBytes * plkbyt, | |
68 | [in] IStorage * pStgPriority, | |
69 | [in] DWORD grfMode, | |
70 | [in] SNB snbExclude, | |
71 | [in] DWORD reserved, | |
72 | [out] IStorage ** ppstgOpen); | |
73 | ||
74 | HRESULT StgSetTimes( | |
75 | [in] WCHAR const * lpszName, | |
76 | [in] FILETIME const * pctime, | |
77 | [in] FILETIME const * patime, | |
78 | [in] FILETIME const * pmtime); | |
79 | ||
80 | HRESULT SetControlData( | |
81 | [in] PITS_Control_Data pControlData); | |
82 | ||
83 | HRESULT DefaultControlData( | |
84 | [out] PITS_Control_Data * ppControlData); | |
85 | ||
86 | HRESULT Compact( | |
87 | [in] const WCHAR * pwcsName, | |
88 | [in] ECompactionLev iLev); | |
89 | } | |
90 | ||
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);"); |