Unicodify wineesd.
[wine] / dlls / itss / itss.idl
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 cpp_quote("#ifdef ITSS_INITGUID")
22 cpp_quote("#include \"initguid.h\"")
23 cpp_quote("#endif")
24
25 typedef struct _ITS_Control_Data
26 {
27     UINT cdwControlData;
28     UINT adwControlData[1];
29
30 } ITS_Control_Data, *PITS_Control_Data;
31
32 typedef enum ECompactionLev { 
33     COMPACT_DATA = 0,
34     COMPACT_DATA_AND_PATH
35 } ECompactionLev;
36
37 [
38   object,
39   pointer_default(unique)
40 ]
41 interface IITStorage : IUnknown
42 {
43     HRESULT StgCreateDocfile(
44         [in] const WCHAR * pwcsName,
45         [in] DWORD grfMode,
46         [in] DWORD reserved,
47         [out] IStorage ** ppstgOpen);
48
49     HRESULT StgCreateDocfileOnILockBytes(
50         [in] ILockBytes * plkbyt,
51         [in] DWORD grfMode,
52         [in] DWORD reserved, 
53         [out] IStorage ** ppstgOpen);
54
55
56     HRESULT StgIsStorageFile(
57         [in] const WCHAR * pwcsName);
58
59     HRESULT StgIsStorageILockBytes(
60         [in] ILockBytes * plkbyt);
61
62     HRESULT StgOpenStorage(
63         [in] const WCHAR * pwcsName,
64         [in] IStorage * pstgPriority,
65         [in] DWORD grfMode,
66         [in] SNB snbExclude,
67         [in] DWORD reserved,
68         [out] IStorage ** ppstgOpen);
69
70     HRESULT StgOpenStorageOnILockBytes(
71         [in] ILockBytes * plkbyt,
72         [in] IStorage * pStgPriority,
73         [in] DWORD grfMode,
74         [in] SNB snbExclude,
75         [in] DWORD reserved,
76         [out] IStorage ** ppstgOpen);
77
78     HRESULT StgSetTimes(
79         [in] WCHAR const * lpszName,
80         [in] FILETIME const * pctime,
81         [in] FILETIME const * patime,
82         [in] FILETIME const * pmtime);
83
84     HRESULT SetControlData(
85         [in] PITS_Control_Data pControlData);
86     
87     HRESULT DefaultControlData(
88         [out] PITS_Control_Data * ppControlData);
89
90     HRESULT Compact(
91         [in] const WCHAR * pwcsName,
92         [in] ECompactionLev iLev);
93 }
94
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);");