ReactOS  0.4.14-dev-323-g6fe6a88
transact.idl
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2013 Daniel JeliƄski
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 import "unknwn.idl";
20 
21 cpp_quote("#include <winerror.h>")
22 
30 
31 typedef struct BOID {
32  byte rgb[16];
33 } BOID;
34 
35 cpp_quote("#ifndef MAX_TRAN_DESC_DEFINED")
36 cpp_quote("#define MAX_TRAN_DESC_DEFINED")
37 typedef enum TX_MISC_CONSTANTS {
40 cpp_quote("#endif")
41 
42 typedef BOID XACTUOW;
43 typedef LONG ISOLEVEL;
44 
56 
57 typedef struct XACTTRANSINFO {
66 
67 typedef struct XACTSTATS {
76 } XACTSTATS;
77 
78 typedef enum ISOFLAG {
90 } ISOFLAG;
91 
92 typedef enum XACTTC {
99 } XACTTC;
100 
101 typedef enum XACTRM {
104 } XACTRM;
105 
106 typedef enum XACTCONST {
108 } XACTCONST;
109 
110 typedef enum XACTHEURISTIC {
115 } XACTHEURISTIC;
116 
117 typedef enum XACTSTAT {
136  XACTSTAT_INDOUBT = 0x20000,
137  XACTSTAT_CLOSED = 0x40000,
140  XACTSTAT_ALL = 0x7ffff
141 } XACTSTAT;
142 
143 typedef struct XACTOPT {
145  char szDescription[40 ];
146 } XACTOPT;
147 
148 [
149  object,
150  uuid(0fb15084-af41-11ce-bd2b-204c4f4f5020)
151 ]
152 interface ITransaction : IUnknown {
153  HRESULT Commit([in] BOOL fRetaining,
154  [in] DWORD grfTC,
155  [in] DWORD grfRM);
156  HRESULT Abort([in, unique] BOID *pboidReason,
157  [in] BOOL fRetaining,
158  [in] BOOL fAsync);
160 }
161 
162 [
163  object,
164  uuid(02656950-2152-11d0-944C-00A0C905416E)
165 ]
167  HRESULT CloneWithCommitDisabled([out] ITransaction **ppITransaction);
168 }
169 
170 [
171  object,
172  uuid(34021548-0065-11d3-bac1-00c04f797be2)
173 ]
176 }
177 
178 [
179  object,
180  uuid(3A6AD9E1-23B9-11cf-AD60-00AA00A74CCD)
181 ]
184  HRESULT BeginTransaction([in, unique] IUnknown *punkOuter,
185  [in] ISOLEVEL isoLevel,
186  [in] ULONG isoFlags,
187  [in, unique] ITransactionOptions *pOptions,
188  [out] ITransaction **ppTransaction);
189 }
190 
191 [
192  object,
193  uuid(3A6AD9E0-23B9-11cf-AD60-00AA00A74CCD)
194 ]
196  HRESULT SetOptions([in] XACTOPT *pOptions);
197  HRESULT GetOptions([in, out] XACTOPT *pOptions);
198 }
199 
200 [
201  object,
202  uuid(3A6AD9E2-23B9-11cf-AD60-00AA00A74CCD)
203 ]
205  HRESULT Committed([in] BOOL fRetaining,
206  [in, unique] XACTUOW *pNewUOW,
207  [in] HRESULT hr);
208  HRESULT Aborted([in, unique] BOID *pboidReason,
209  [in] BOOL fRetaining,
210  [in, unique] XACTUOW *pNewUOW,
211  [in] HRESULT hr);
212  HRESULT HeuristicDecision([in] DWORD dwDecision,
213  [in, unique] BOID *pboidReason,
214  [in] HRESULT hr);
215  HRESULT Indoubt(void);
216 }
217 
218 [
219  object,
220  uuid(30274F88-6EE4-474e-9B95-7807BC9EF8CF)
221 ]
222 interface ITmNodeName : IUnknown {
223  HRESULT GetNodeNameSize([out] ULONG *pcbNodeNameSize);
224  HRESULT GetNodeName([in] ULONG cbNodeNameBufferSize,
225  [in, out] LPWSTR pNodeNameBuffer);
226 }
ULONG cAborting
Definition: transact.idl:71
DWORD grfRMSupported
Definition: transact.idl:62
HRESULT hr
Definition: shlfolder.c:183
HRESULT GetNodeNameSize([out] ULONG *pcbNodeNameSize)
ULONG cInDoubt
Definition: transact.idl:73
ISOLEVEL isoLevel
Definition: transact.idl:59
ULONG cHeuristicDecision
Definition: transact.idl:74
ULONG cCommitting
Definition: transact.idl:69
struct BOID BOID
ULONG cOpen
Definition: transact.idl:68
char szDescription[40]
Definition: transact.idl:145
HRESULT SetOptions([in] XACTOPT *pOptions)
LONG ISOLEVEL
Definition: transact.idl:43
coclass AMMultiMediaStream cpp_quote("DEFINE_GUID(CLSID_AMDirectDrawStream, 0x49c47ce4, 0x9ba4, 0x11d0, 0x82, 0x12, 0x00, 0xc0, 0x4f, 0xc3, 0x2c, 0x45);") cpp_quote("DEFINE_GUID(CLSID_AMAudioStream
DWORD grfTCSupported
Definition: transact.idl:61
HRESULT GetOptionsObject([out] ITransactionOptions **ppOptions)
XACTSTAT
Definition: transact.idl:117
XACTHEURISTIC
Definition: transact.idl:110
unsigned int BOOL
Definition: ntddk_ex.h:94
long LONG
Definition: pedump.c:60
#define e
Definition: ke_i.h:82
FILETIME timeTransactionsUp
Definition: transact.idl:75
XACTTC
Definition: transact.idl:92
XACTCONST
Definition: transact.idl:106
ISOLATIONLEVEL
Definition: transact.idl:45
HRESULT Commit([in] BOOL fRetaining, [in] DWORD grfTC, [in] DWORD grfRM)
HRESULT GetTransactionInfo([out] XACTTRANSINFO *pinfo)
TX_MISC_CONSTANTS
Definition: transact.idl:37
XACTRM
Definition: transact.idl:101
HRESULT BeginTransaction([in, unique] IUnknown *punkOuter, [in] ISOLEVEL isoLevel, [in] ULONG isoFlags, [in, unique] ITransactionOptions *pOptions, [out] ITransaction **ppTransaction)
LONG HRESULT
Definition: typedefs.h:77
static FILE * out
Definition: regtests2xml.c:44
HRESULT GetTransactionInfo2([out] XACTTRANSINFO *pinfo)
unsigned long DWORD
Definition: ntddk_ex.h:95
ULONG cAborted
Definition: transact.idl:72
XACTUOW uow
Definition: transact.idl:58
ULONG cCommitted
Definition: transact.idl:70
ULONG ulTimeout
Definition: transact.idl:144
DWORD grfRMSupportedRetaining
Definition: transact.idl:64
HRESULT HeuristicDecision([in] DWORD dwDecision, [in, unique] BOID *pboidReason, [in] HRESULT hr)
#define interface
Definition: basetyps.h:61
ULONG isoFlags
Definition: transact.idl:60
HRESULT GetOptions([in, out] XACTOPT *pOptions)
GLuint in
Definition: glext.h:9616
_In_ ULONG _In_ ULONG rgb
Definition: winddi.h:3520
struct XACTOPT XACTOPT
HRESULT GetNodeName([in] ULONG cbNodeNameBufferSize, [in, out] LPWSTR pNodeNameBuffer)
Definition: ttei6.cpp:27
LPAVICOMPRESSOPTIONS * ppOptions
Definition: api.c:62
HRESULT Committed([in] BOOL fRetaining, [in, unique] XACTUOW *pNewUOW, [in] HRESULT hr)
ISOFLAG
Definition: transact.idl:78
HRESULT CloneWithCommitDisabled([out] ITransaction **ppITransaction)
unsigned int ULONG
Definition: retypes.h:1
struct XACTTRANSINFO XACTTRANSINFO
WCHAR * LPWSTR
Definition: xmlstorage.h:184
HRESULT Aborted([in, unique] BOID *pboidReason, [in] BOOL fRetaining, [in, unique] XACTUOW *pNewUOW, [in] HRESULT hr)
void * object
Definition: jmemsys.h:48
struct XACTSTATS XACTSTATS
DWORD grfTCSupportedRetaining
Definition: transact.idl:63
HRESULT Abort([in, unique] BOID *pboidReason, [in] BOOL fRetaining, [in] BOOL fAsync)