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 | /*
|
---|
20 | * Oracle 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, Oracle 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 "txcoord.idl";
|
---|
29 |
|
---|
30 | interface IXATransLookup;
|
---|
31 | interface IXATransLookup2;
|
---|
32 | interface IResourceManagerSink;
|
---|
33 | interface IResourceManager;
|
---|
34 | interface ILastResourceManager;
|
---|
35 | interface IResourceManager2;
|
---|
36 | interface IXAConfig;
|
---|
37 | /*interface IRMHelper;
|
---|
38 | interface IXAObtainRMInfo;*/
|
---|
39 | interface IResourceManagerFactory;
|
---|
40 | interface IResourceManagerFactory2;
|
---|
41 | interface IPrepareInfo;
|
---|
42 | interface IPrepareInfo2;
|
---|
43 | interface IGetDispenser;
|
---|
44 | interface ITransactionVoterBallotAsync2;
|
---|
45 | interface ITransactionVoterNotifyAsync2;
|
---|
46 | interface ITransactionVoterFactory2;
|
---|
47 | interface ITransactionPhase0EnlistmentAsync;
|
---|
48 | interface ITransactionPhase0NotifyAsync;
|
---|
49 | interface ITransactionPhase0Factory;
|
---|
50 | interface ITransactionTransmitter;
|
---|
51 | interface ITransactionTransmitterFactory;
|
---|
52 | interface ITransactionReceiver;
|
---|
53 | interface ITransactionReceiverFactory;
|
---|
54 | interface IDtcLuConfigure;
|
---|
55 | interface IDtcLuRecovery;
|
---|
56 | interface IDtcLuRecoveryFactory;
|
---|
57 | interface IDtcLuRecoveryInitiatedByDtcTransWork;
|
---|
58 | interface IDtcLuRecoveryInitiatedByDtcStatusWork;
|
---|
59 | interface IDtcLuRecoveryInitiatedByDtc;
|
---|
60 | interface IDtcLuRecoveryInitiatedByLuWork;
|
---|
61 | interface IDtcLuRecoveryInitiatedByLu;
|
---|
62 | interface IDtcLuRmEnlistment;
|
---|
63 | interface IDtcLuRmEnlistmentSink;
|
---|
64 | interface IDtcLuRmEnlistmentFactory;
|
---|
65 | interface IDtcLuSubordinateDtc;
|
---|
66 | interface IDtcLuSubordinateDtcSink;
|
---|
67 | interface IDtcLuSubordinateDtcFactory;
|
---|
68 |
|
---|
69 | cpp_quote("#define XACTTOMSG(dwXact) (dwXact-0x00040000+0x40000000)")
|
---|
70 | typedef enum XACT_DTC_CONSTANTS {
|
---|
71 | XACT_E_CONNECTION_REQUEST_DENIED = 0x8004d100,
|
---|
72 | XACT_E_TOOMANY_ENLISTMENTS = 0x8004d101,
|
---|
73 | XACT_E_DUPLICATE_GUID = 0x8004d102,
|
---|
74 | XACT_E_NOTSINGLEPHASE = 0x8004d103,
|
---|
75 | XACT_E_RECOVERYALREADYDONE = 0x8004d104,
|
---|
76 | XACT_E_PROTOCOL = 0x8004d105,
|
---|
77 | XACT_E_RM_FAILURE = 0x8004d106,
|
---|
78 | XACT_E_RECOVERY_FAILED = 0x8004d107,
|
---|
79 | XACT_E_LU_NOT_FOUND = 0x8004d108,
|
---|
80 | XACT_E_DUPLICATE_LU = 0x8004d109,
|
---|
81 | XACT_E_LU_NOT_CONNECTED = 0x8004d10a,
|
---|
82 | XACT_E_DUPLICATE_TRANSID = 0x8004d10b,
|
---|
83 | XACT_E_LU_BUSY = 0x8004d10c,
|
---|
84 | XACT_E_LU_NO_RECOVERY_PROCESS = 0x8004d10d,
|
---|
85 | XACT_E_LU_DOWN = 0x8004d10e,
|
---|
86 | XACT_E_LU_RECOVERING = 0x8004d10f,
|
---|
87 | XACT_E_LU_RECOVERY_MISMATCH = 0x8004d110,
|
---|
88 | XACT_E_RM_UNAVAILABLE = 0x8004d111,
|
---|
89 | XACT_E_LRMRECOVERYALREADYDONE = 0x8004d112,
|
---|
90 | XACT_E_NOLASTRESOURCEINTERFACE = 0x8004d113,
|
---|
91 | XACT_S_NONOTIFY = 0x4d100,
|
---|
92 | XACT_OK_NONOTIFY = 0x4d101,
|
---|
93 | dwUSER_MS_SQLSERVER = 0xffff
|
---|
94 | } XACT_DTC_CONSTANTS;
|
---|
95 |
|
---|
96 | cpp_quote("#ifndef _XID_T_DEFINED")
|
---|
97 | cpp_quote("#define _XID_T_DEFINED")
|
---|
98 | typedef struct xid_t {
|
---|
99 | LONG32 formatID;
|
---|
100 | LONG32 gtrid_length;
|
---|
101 | LONG32 bqual_length;
|
---|
102 | char data[128 ];
|
---|
103 | } XID;
|
---|
104 | cpp_quote("#endif")
|
---|
105 | /* idl doesn't like this type
|
---|
106 | cpp_quote("#ifndef _XA_SWITCH_T_DEFINED")
|
---|
107 | cpp_quote("#define _XA_SWITCH_T_DEFINED")
|
---|
108 | typedef struct xa_switch_t {
|
---|
109 | char name[32 ];
|
---|
110 | LONG32 flags;
|
---|
111 | LONG32 version;
|
---|
112 | int (__cdecl *xa_open_entry)(char *__MIDL_0004,int __MIDL_0005,LONG32 __MIDL_0006);
|
---|
113 | int (__cdecl *xa_close_entry)(char *__MIDL_0008,int __MIDL_0009,LONG32 __MIDL_0010);
|
---|
114 | int (__cdecl *xa_start_entry)(XID *__MIDL_0012,int __MIDL_0013,LONG32 __MIDL_0014);
|
---|
115 | int (__cdecl *xa_end_entry)(XID *__MIDL_0016,int __MIDL_0017,LONG32 __MIDL_0018);
|
---|
116 | int (__cdecl *xa_rollback_entry)(XID *__MIDL_0020,int __MIDL_0021,LONG32 __MIDL_0022);
|
---|
117 | int (__cdecl *xa_prepare_entry)(XID *__MIDL_0024,int __MIDL_0025,LONG32 __MIDL_0026);
|
---|
118 | int (__cdecl *xa_commit_entry)(XID *__MIDL_0028,int __MIDL_0029,LONG32 __MIDL_0030);
|
---|
119 | int (__cdecl *xa_recover_entry)(XID *__MIDL_0032,LONG32 __MIDL_0033,int __MIDL_0034,LONG32 __MIDL_0035);
|
---|
120 | int (__cdecl *xa_forget_entry)(XID *__MIDL_0037,int __MIDL_0038,LONG32 __MIDL_0039);
|
---|
121 | int (__cdecl *xa_complete_entry)(int *__MIDL_0041,int *__MIDL_0042,int __MIDL_0043,LONG32 __MIDL_0044);
|
---|
122 | } xa_switch_t;
|
---|
123 | cpp_quote("#endif")
|
---|
124 | */
|
---|
125 | [
|
---|
126 | object,
|
---|
127 | uuid(f3b1f131-eeda-11ce-aed4-00aa0051e2c4)
|
---|
128 | ]
|
---|
129 | interface IXATransLookup : IUnknown {
|
---|
130 | HRESULT Lookup([out]ITransaction **ppTransaction);
|
---|
131 | };
|
---|
132 | [
|
---|
133 | object,
|
---|
134 | uuid(bf193c85-0d1a-4290-b88f-d2cb8873d1e7)
|
---|
135 | ]
|
---|
136 | interface IXATransLookup2 : IUnknown {
|
---|
137 | HRESULT Lookup([in]XID *pXID,[out]ITransaction **ppTransaction);
|
---|
138 | };
|
---|
139 | [
|
---|
140 | object,
|
---|
141 | uuid(0d563181-defb-11ce-aed1-00aa0051e2c4)
|
---|
142 | ]
|
---|
143 | interface IResourceManagerSink : IUnknown {
|
---|
144 | HRESULT TMDown(void);
|
---|
145 | };
|
---|
146 | [
|
---|
147 | object,
|
---|
148 | uuid(13741d21-87eb-11ce-8081-0080c758527e)
|
---|
149 | ]
|
---|
150 | interface IResourceManager : IUnknown {
|
---|
151 | HRESULT Enlist([in]ITransaction *pTransaction,[in]ITransactionResourceAsync *pRes,[out]XACTUOW *pUOW,[out]LONG *pisoLevel,[out]ITransactionEnlistmentAsync **ppEnlist);
|
---|
152 | HRESULT Reenlist([in]byte *pPrepInfo,[in]ULONG cbPrepInfo,[in]DWORD lTimeout,[out]XACTSTAT *pXactStat);
|
---|
153 | HRESULT ReenlistmentComplete(void);
|
---|
154 | HRESULT GetDistributedTransactionManager([in]REFIID iid,[out,iid_is(iid)]void **ppvObject);
|
---|
155 | };
|
---|
156 | [
|
---|
157 | object,
|
---|
158 | uuid(4d964ad4-5b33-11d3-8a91-00c04f79eb6d)
|
---|
159 | ]
|
---|
160 | interface ILastResourceManager : IUnknown {
|
---|
161 | HRESULT TransactionCommitted([in]byte *pPrepInfo,[in]ULONG cbPrepInfo);
|
---|
162 | HRESULT RecoveryDone(void);
|
---|
163 | };
|
---|
164 | [
|
---|
165 | object,
|
---|
166 | uuid(d136c69a-f749-11d1-8f47-00c04f8ee57d)
|
---|
167 | ]
|
---|
168 | interface IResourceManager2 : IResourceManager {
|
---|
169 | HRESULT Enlist2([in]ITransaction *pTransaction,[in]ITransactionResourceAsync *pResAsync,[out]XACTUOW *pUOW,[out]LONG *pisoLevel,[out]XID *pXid,[out]ITransactionEnlistmentAsync **ppEnlist);
|
---|
170 | HRESULT Reenlist2([in]XID *pXid,[in]DWORD dwTimeout,[out]XACTSTAT *pXactStat);
|
---|
171 | };
|
---|
172 | [
|
---|
173 | object,
|
---|
174 | uuid(c8a6e3a1-9a8c-11cf-a308-00a0c905416e)
|
---|
175 | ]
|
---|
176 | interface IXAConfig : IUnknown {
|
---|
177 | HRESULT Initialize([in]GUID clsidHelperDll);
|
---|
178 | HRESULT Terminate(void);
|
---|
179 | };
|
---|
180 | /* commented out because idl doesn't accept xa_switch_t type
|
---|
181 | [
|
---|
182 | object,
|
---|
183 | uuid(E793F6D1-F53D-11cf-A60D-00A0C905416E)
|
---|
184 | ]
|
---|
185 | interface IRMHelper : IUnknown {
|
---|
186 | HRESULT RMCount([in]DWORD dwcTotalNumberOfRMs);
|
---|
187 | HRESULT RMInfo([in]xa_switch_t *pXa_Switch,[in]BOOL fCDeclCallingConv,[in]char *pszOpenString,[in]char *pszCloseString,[in]GUID guidRMRecovery);
|
---|
188 | };
|
---|
189 | [
|
---|
190 | object,
|
---|
191 | uuid(E793F6D2-F53D-11cf-A60D-00A0C905416E)
|
---|
192 | ]
|
---|
193 | interface IXAObtainRMInfo : IUnknown {
|
---|
194 | HRESULT ObtainRMInfo([in]IRMHelper *pIRMHelper);
|
---|
195 | };*/
|
---|
196 | [
|
---|
197 | object,
|
---|
198 | uuid(13741d20-87eb-11ce-8081-0080c758527e)
|
---|
199 | ]
|
---|
200 | interface IResourceManagerFactory : IUnknown {
|
---|
201 | HRESULT Create([in]GUID *pguidRM,[in]CHAR *pszRMName,[in]IResourceManagerSink *pIResMgrSink,[out]IResourceManager **ppResMgr);
|
---|
202 | };
|
---|
203 | [
|
---|
204 | object,
|
---|
205 | uuid(6b369c21-fbd2-11d1-8f47-00c04f8ee57d)
|
---|
206 | ]
|
---|
207 | interface IResourceManagerFactory2 : IResourceManagerFactory {
|
---|
208 | HRESULT CreateEx([in]GUID *pguidRM,[in]CHAR *pszRMName,[in]IResourceManagerSink *pIResMgrSink,[in]REFIID riidRequested,[out, iid_is(riidRequested)]void **ppvResMgr);
|
---|
209 | };
|
---|
210 |
|
---|
211 | [
|
---|
212 | object,
|
---|
213 | uuid(80c7bfd0-87ee-11ce-8081-0080c758527e)
|
---|
214 | ]
|
---|
215 | interface IPrepareInfo : IUnknown {
|
---|
216 | HRESULT GetPrepareInfoSize([out]ULONG *pcbPrepInfo);
|
---|
217 | HRESULT GetPrepareInfo([out]byte *pPrepInfo);
|
---|
218 | };
|
---|
219 | [
|
---|
220 | object,
|
---|
221 | uuid(5fab2547-9779-11d1-b886-00c04fb9618a)
|
---|
222 | ]
|
---|
223 | interface IPrepareInfo2 : IUnknown {
|
---|
224 | HRESULT GetPrepareInfoSize([out]ULONG *pcbPrepInfo);
|
---|
225 | HRESULT GetPrepareInfo([in]ULONG cbPrepareInfo,[out]byte *pPrepInfo);
|
---|
226 | };
|
---|
227 | [
|
---|
228 | object,
|
---|
229 | uuid(c23cc370-87ef-11ce-8081-0080c758527e)
|
---|
230 | ]
|
---|
231 | interface IGetDispenser : IUnknown {
|
---|
232 | HRESULT GetDispenser([in]REFIID iid,[out,iid_is(iid)]void **ppvObject);
|
---|
233 | };
|
---|
234 | [
|
---|
235 | object,
|
---|
236 | uuid(5433376c-414d-11d3-b206-00c04fc2f3ef)
|
---|
237 | ]
|
---|
238 | interface ITransactionVoterBallotAsync2 : IUnknown {
|
---|
239 | HRESULT VoteRequestDone([in]HRESULT hr,[in]BOID *pboidReason);
|
---|
240 | };
|
---|
241 | [
|
---|
242 | object,
|
---|
243 | uuid(5433376b-414d-11d3-b206-00c04fc2f3ef)
|
---|
244 | ]
|
---|
245 | interface ITransactionVoterNotifyAsync2 : ITransactionOutcomeEvents {
|
---|
246 | HRESULT VoteRequest(void);
|
---|
247 | };
|
---|
248 | [
|
---|
249 | object,
|
---|
250 | uuid(5433376a-414d-11d3-b206-00c04fc2f3ef)
|
---|
251 | ]
|
---|
252 | interface ITransactionVoterFactory2 : IUnknown {
|
---|
253 | HRESULT Create([in]ITransaction *pTransaction,[in]ITransactionVoterNotifyAsync2 *pVoterNotify,[out]ITransactionVoterBallotAsync2 **ppVoterBallot);
|
---|
254 | };
|
---|
255 | [
|
---|
256 | object,
|
---|
257 | uuid(82dc88e1-a954-11d1-8f88-00600895e7d5)
|
---|
258 | ]
|
---|
259 | interface ITransactionPhase0EnlistmentAsync : IUnknown {
|
---|
260 | HRESULT Enable(void);
|
---|
261 | HRESULT WaitForEnlistment(void);
|
---|
262 | HRESULT Phase0Done(void);
|
---|
263 | HRESULT Unenlist(void);
|
---|
264 | HRESULT GetTransaction([out]ITransaction **ppITransaction);
|
---|
265 | };
|
---|
266 | [
|
---|
267 | object,
|
---|
268 | uuid(ef081809-0c76-11d2-87a6-00c04f990f34)
|
---|
269 | ]
|
---|
270 | interface ITransactionPhase0NotifyAsync : IUnknown {
|
---|
271 | HRESULT Phase0Request([in]BOOL fAbortingHint);
|
---|
272 | HRESULT EnlistCompleted([in]HRESULT status);
|
---|
273 | };
|
---|
274 | [
|
---|
275 | object,
|
---|
276 | uuid(82dc88e0-a954-11d1-8f88-00600895e7d5)
|
---|
277 | ]
|
---|
278 | interface ITransactionPhase0Factory : IUnknown {
|
---|
279 | HRESULT Create([in]ITransactionPhase0NotifyAsync *pPhase0Notify,[out]ITransactionPhase0EnlistmentAsync **ppPhase0Enlistment);
|
---|
280 | };
|
---|
281 | [
|
---|
282 | object,
|
---|
283 | uuid(59313e01-b36c-11cf-a539-00aa006887c3)
|
---|
284 | ]
|
---|
285 | interface ITransactionTransmitter : IUnknown {
|
---|
286 | HRESULT Set([in]ITransaction *pTransaction);
|
---|
287 | HRESULT GetPropagationTokenSize([out]ULONG *pcbToken);
|
---|
288 | HRESULT MarshalPropagationToken([in]ULONG cbToken,[out]byte *rgbToken,[out]ULONG *pcbUsed);
|
---|
289 | HRESULT UnmarshalReturnToken([in]ULONG cbReturnToken,[in]byte *rgbReturnToken);
|
---|
290 | HRESULT Reset(void);
|
---|
291 | };
|
---|
292 | [
|
---|
293 | object,
|
---|
294 | uuid(59313e00-b36c-11cf-a539-00aa006887c3)
|
---|
295 | ]
|
---|
296 | interface ITransactionTransmitterFactory : IUnknown {
|
---|
297 | HRESULT Create([out]ITransactionTransmitter **ppTransmitter);
|
---|
298 | };
|
---|
299 | [
|
---|
300 | object,
|
---|
301 | uuid(59313e03-b36c-11cf-a539-00aa006887c3)
|
---|
302 | ]
|
---|
303 | interface ITransactionReceiver : IUnknown {
|
---|
304 | HRESULT UnmarshalPropagationToken([in]ULONG cbToken,[in]byte *rgbToken,[out]ITransaction **ppTransaction);
|
---|
305 | HRESULT GetReturnTokenSize([out]ULONG *pcbReturnToken);
|
---|
306 | HRESULT MarshalReturnToken([in]ULONG cbReturnToken,[out]byte *rgbReturnToken,[out]ULONG *pcbUsed);
|
---|
307 | HRESULT Reset(void);
|
---|
308 | };
|
---|
309 | [
|
---|
310 | object,
|
---|
311 | uuid(59313e02-b36c-11cf-a539-00aa006887c3)
|
---|
312 | ]
|
---|
313 | interface ITransactionReceiverFactory : IUnknown {
|
---|
314 | HRESULT Create([out]ITransactionReceiver **ppReceiver);
|
---|
315 | };
|
---|
316 |
|
---|
317 | typedef struct _ProxyConfigParams {
|
---|
318 | WORD wcThreadsMax;
|
---|
319 | } PROXY_CONFIG_PARAMS;
|
---|
320 |
|
---|
321 | [
|
---|
322 | object,
|
---|
323 | uuid(4131e760-1aea-11d0-944b-00a0c905416e)
|
---|
324 | ]
|
---|
325 | interface IDtcLuConfigure : IUnknown {
|
---|
326 | HRESULT Add([in]byte *pucLuPair,[in]DWORD cbLuPair);
|
---|
327 | HRESULT Delete([in]byte *pucLuPair,[in]DWORD cbLuPair);
|
---|
328 | };
|
---|
329 | [
|
---|
330 | object,
|
---|
331 | uuid(ac2b8ad2-d6f0-11d0-b386-00a0c9083365)
|
---|
332 | ]
|
---|
333 | interface IDtcLuRecovery : IUnknown {
|
---|
334 | };
|
---|
335 | [
|
---|
336 | object,
|
---|
337 | uuid(4131e762-1aea-11d0-944b-00a0c905416e)
|
---|
338 | ]
|
---|
339 | interface IDtcLuRecoveryFactory : IUnknown {
|
---|
340 | HRESULT Create([in]byte *pucLuPair,[in]DWORD cbLuPair,[out]IDtcLuRecovery **ppRecovery);
|
---|
341 | };
|
---|
342 |
|
---|
343 | typedef enum _DtcLu_LocalRecovery_Work {
|
---|
344 | DTCINITIATEDRECOVERYWORK_CHECKLUSTATUS = 1,
|
---|
345 | DTCINITIATEDRECOVERYWORK_TRANS,
|
---|
346 | DTCINITIATEDRECOVERYWORK_TMDOWN
|
---|
347 | } DTCINITIATEDRECOVERYWORK;
|
---|
348 |
|
---|
349 | typedef enum _DtcLu_Xln {
|
---|
350 | DTCLUXLN_COLD = 1,
|
---|
351 | DTCLUXLN_WARM
|
---|
352 | } DTCLUXLN;
|
---|
353 |
|
---|
354 | typedef enum _DtcLu_Xln_Confirmation {
|
---|
355 | DTCLUXLNCONFIRMATION_CONFIRM = 1,
|
---|
356 | DTCLUXLNCONFIRMATION_LOGNAMEMISMATCH,
|
---|
357 | DTCLUXLNCONFIRMATION_COLDWARMMISMATCH,
|
---|
358 | DTCLUXLNCONFIRMATION_OBSOLETE
|
---|
359 | } DTCLUXLNCONFIRMATION;
|
---|
360 |
|
---|
361 | typedef enum _DtcLu_Xln_Response {
|
---|
362 | DTCLUXLNRESPONSE_OK_SENDOURXLNBACK = 1,
|
---|
363 | DTCLUXLNRESPONSE_OK_SENDCONFIRMATION,
|
---|
364 | DTCLUXLNRESPONSE_LOGNAMEMISMATCH,
|
---|
365 | DTCLUXLNRESPONSE_COLDWARMMISMATCH
|
---|
366 | } DTCLUXLNRESPONSE;
|
---|
367 |
|
---|
368 | typedef enum _DtcLu_Xln_Error {
|
---|
369 | DTCLUXLNERROR_PROTOCOL = 1,
|
---|
370 | DTCLUXLNERROR_LOGNAMEMISMATCH,
|
---|
371 | DTCLUXLNERROR_COLDWARMMISMATCH
|
---|
372 | } DTCLUXLNERROR;
|
---|
373 |
|
---|
374 | typedef enum _DtcLu_CompareState {
|
---|
375 | DTCLUCOMPARESTATE_COMMITTED = 1,
|
---|
376 | DTCLUCOMPARESTATE_HEURISTICCOMMITTED,
|
---|
377 | DTCLUCOMPARESTATE_HEURISTICMIXED,
|
---|
378 | DTCLUCOMPARESTATE_HEURISTICRESET,
|
---|
379 | DTCLUCOMPARESTATE_INDOUBT,
|
---|
380 | DTCLUCOMPARESTATE_RESET
|
---|
381 | } DTCLUCOMPARESTATE;
|
---|
382 |
|
---|
383 | typedef enum _DtcLu_CompareStates_Confirmation {
|
---|
384 | DTCLUCOMPARESTATESCONFIRMATION_CONFIRM = 1,
|
---|
385 | DTCLUCOMPARESTATESCONFIRMATION_PROTOCOL
|
---|
386 | } DTCLUCOMPARESTATESCONFIRMATION;
|
---|
387 |
|
---|
388 | typedef enum _DtcLu_CompareStates_Error {
|
---|
389 | DTCLUCOMPARESTATESERROR_PROTOCOL = 1
|
---|
390 | } DTCLUCOMPARESTATESERROR;
|
---|
391 |
|
---|
392 | typedef enum _DtcLu_CompareStates_Response {
|
---|
393 | DTCLUCOMPARESTATESRESPONSE_OK = 1,
|
---|
394 | DTCLUCOMPARESTATESRESPONSE_PROTOCOL
|
---|
395 | } DTCLUCOMPARESTATESRESPONSE;
|
---|
396 |
|
---|
397 | [
|
---|
398 | object,
|
---|
399 | uuid(4131e765-1aea-11d0-944b-00a0c905416e)
|
---|
400 | ]
|
---|
401 | interface IDtcLuRecoveryInitiatedByDtcTransWork : IUnknown {
|
---|
402 | HRESULT GetLogNameSizes([out]DWORD *pcbOurLogName,[out]DWORD *pcbRemoteLogName);
|
---|
403 | HRESULT GetOurXln([out]DTCLUXLN *pXln,[in,out]unsigned char *pOurLogName,[in,out]unsigned char *pRemoteLogName,[out]DWORD *pdwProtocol);
|
---|
404 | HRESULT HandleConfirmationFromOurXln([in]DTCLUXLNCONFIRMATION Confirmation);
|
---|
405 | HRESULT HandleTheirXlnResponse([in]DTCLUXLN Xln,[in]unsigned char *pRemoteLogName,[in]DWORD cbRemoteLogName,[in]DWORD dwProtocol,[out]DTCLUXLNCONFIRMATION *pConfirmation);
|
---|
406 | HRESULT HandleErrorFromOurXln([in]DTCLUXLNERROR Error);
|
---|
407 | HRESULT CheckForCompareStates([out]BOOL *fCompareStates);
|
---|
408 | HRESULT GetOurTransIdSize([in,out]DWORD *pcbOurTransId);
|
---|
409 | HRESULT GetOurCompareStates([in,out]unsigned char *pOurTransId,[out]DTCLUCOMPARESTATE *pCompareState);
|
---|
410 | HRESULT HandleTheirCompareStatesResponse([in]DTCLUCOMPARESTATE CompareState,[out]DTCLUCOMPARESTATESCONFIRMATION *pConfirmation);
|
---|
411 | HRESULT HandleErrorFromOurCompareStates([in]DTCLUCOMPARESTATESERROR Error);
|
---|
412 | HRESULT ConversationLost(void);
|
---|
413 | HRESULT GetRecoverySeqNum([out]LONG *plRecoverySeqNum);
|
---|
414 | HRESULT ObsoleteRecoverySeqNum([in]LONG lNewRecoverySeqNum);
|
---|
415 | };
|
---|
416 | [
|
---|
417 | object,
|
---|
418 | uuid(4131e766-1aea-11d0-944b-00a0c905416e)
|
---|
419 | ]
|
---|
420 | interface IDtcLuRecoveryInitiatedByDtcStatusWork : IUnknown {
|
---|
421 | HRESULT HandleCheckLuStatus([in]LONG lRecoverySeqNum);
|
---|
422 | };
|
---|
423 | [
|
---|
424 | object,
|
---|
425 | uuid(4131e764-1aea-11d0-944b-00a0c905416e)
|
---|
426 | ]
|
---|
427 | [local] interface IDtcLuRecoveryInitiatedByDtc : IUnknown {
|
---|
428 | HRESULT GetWork([in,out]DTCINITIATEDRECOVERYWORK *pWork,[in,out]void **ppv);
|
---|
429 | };
|
---|
430 | [
|
---|
431 | object,
|
---|
432 | uuid(ac2b8ad1-d6f0-11d0-b386-00a0c9083365)
|
---|
433 | ]
|
---|
434 | interface IDtcLuRecoveryInitiatedByLuWork : IUnknown {
|
---|
435 | HRESULT HandleTheirXln([in]LONG lRecoverySeqNum,[in]DTCLUXLN Xln,[in]unsigned char *pRemoteLogName,[in]DWORD cbRemoteLogName,[in]unsigned char *pOurLogName,[in]DWORD cbOurLogName,[in]DWORD dwProtocol,[out]DTCLUXLNRESPONSE *pResponse);
|
---|
436 | HRESULT GetOurLogNameSize([in,out]DWORD *pcbOurLogName);
|
---|
437 | HRESULT GetOurXln([out]DTCLUXLN *pXln,[in,out]unsigned char *pOurLogName,[out]DWORD *pdwProtocol);
|
---|
438 | HRESULT HandleConfirmationOfOurXln([in]DTCLUXLNCONFIRMATION Confirmation);
|
---|
439 | HRESULT HandleTheirCompareStates([in,out]unsigned char *pRemoteTransId,[in]DWORD cbRemoteTransId,[in]DTCLUCOMPARESTATE CompareState,[out]DTCLUCOMPARESTATESRESPONSE *pResponse,[out]DTCLUCOMPARESTATE *pCompareState);
|
---|
440 | HRESULT HandleConfirmationOfOurCompareStates([in]DTCLUCOMPARESTATESCONFIRMATION Confirmation);
|
---|
441 | HRESULT HandleErrorFromOurCompareStates([in]DTCLUCOMPARESTATESERROR Error);
|
---|
442 | HRESULT ConversationLost(void);
|
---|
443 | };
|
---|
444 | [
|
---|
445 | object,
|
---|
446 | uuid(4131e768-1aea-11d0-944b-00a0c905416e)
|
---|
447 | ]
|
---|
448 | interface IDtcLuRecoveryInitiatedByLu : IUnknown {
|
---|
449 | HRESULT GetObjectToHandleWorkFromLu([out]IDtcLuRecoveryInitiatedByLuWork **ppWork);
|
---|
450 | };
|
---|
451 | [
|
---|
452 | object,
|
---|
453 | uuid(4131e769-1aea-11d0-944b-00a0c905416e)
|
---|
454 | ]
|
---|
455 | interface IDtcLuRmEnlistment : IUnknown {
|
---|
456 | HRESULT Unplug([in]BOOL fConversationLost);
|
---|
457 | HRESULT BackedOut(void);
|
---|
458 | HRESULT BackOut(void);
|
---|
459 | HRESULT Committed(void);
|
---|
460 | HRESULT Forget(void);
|
---|
461 | HRESULT RequestCommit(void);
|
---|
462 | };
|
---|
463 | [
|
---|
464 | object,
|
---|
465 | uuid(4131e770-1aea-11d0-944b-00a0c905416e)
|
---|
466 | ]
|
---|
467 | interface IDtcLuRmEnlistmentSink : IUnknown {
|
---|
468 | HRESULT AckUnplug(void);
|
---|
469 | HRESULT TmDown(void);
|
---|
470 | HRESULT SessionLost(void);
|
---|
471 | HRESULT BackedOut(void);
|
---|
472 | HRESULT BackOut(void);
|
---|
473 | HRESULT Committed(void);
|
---|
474 | HRESULT Forget(void);
|
---|
475 | HRESULT Prepare(void);
|
---|
476 | HRESULT RequestCommit(void);
|
---|
477 | };
|
---|
478 | [
|
---|
479 | object,
|
---|
480 | uuid(4131e771-1aea-11d0-944b-00a0c905416e)
|
---|
481 | ]
|
---|
482 | interface IDtcLuRmEnlistmentFactory : IUnknown {
|
---|
483 | HRESULT Create([in]unsigned char *pucLuPair,[in]DWORD cbLuPair,[in]ITransaction *pITransaction,[in]unsigned char *pTransId,[in]DWORD cbTransId,[in]IDtcLuRmEnlistmentSink *pRmEnlistmentSink,[in,out]IDtcLuRmEnlistment **ppRmEnlistment);
|
---|
484 | };
|
---|
485 | [
|
---|
486 | object,
|
---|
487 | uuid(4131e773-1aea-11d0-944b-00a0c905416e)
|
---|
488 | ]
|
---|
489 | interface IDtcLuSubordinateDtc : IUnknown {
|
---|
490 | HRESULT Unplug([in]BOOL fConversationLost);
|
---|
491 | HRESULT BackedOut(void);
|
---|
492 | HRESULT BackOut(void);
|
---|
493 | HRESULT Committed(void);
|
---|
494 | HRESULT Forget(void);
|
---|
495 | HRESULT Prepare(void);
|
---|
496 | HRESULT RequestCommit(void);
|
---|
497 | };
|
---|
498 | [
|
---|
499 | object,
|
---|
500 | uuid(4131e774-1aea-11d0-944b-00a0c905416e)
|
---|
501 | ]
|
---|
502 | interface IDtcLuSubordinateDtcSink : IUnknown {
|
---|
503 | HRESULT AckUnplug(void);
|
---|
504 | HRESULT TmDown(void);
|
---|
505 | HRESULT SessionLost(void);
|
---|
506 | HRESULT BackedOut(void);
|
---|
507 | HRESULT BackOut(void);
|
---|
508 | HRESULT Committed(void);
|
---|
509 | HRESULT Forget(void);
|
---|
510 | HRESULT RequestCommit(void);
|
---|
511 | };
|
---|
512 | [
|
---|
513 | object,
|
---|
514 | uuid(4131e775-1aea-11d0-944b-00a0c905416e)
|
---|
515 | ]
|
---|
516 | interface IDtcLuSubordinateDtcFactory : IUnknown {
|
---|
517 | HRESULT Create([in]unsigned char *pucLuPair,[in]DWORD cbLuPair,[in]IUnknown *punkTransactionOuter,[in]ISOLEVEL isoLevel,[in]ULONG isoFlags,[in]ITransactionOptions *pOptions,[out]ITransaction **ppTransaction,[in]unsigned char *pTransId,[in]DWORD cbTransId,[in]IDtcLuSubordinateDtcSink *pSubordinateDtcSink,[in,out]IDtcLuSubordinateDtc **ppSubordinateDtc);
|
---|
518 | };
|
---|
519 |
|
---|
520 | /* these GUIDs were found in mingw header, but without corresponding interface definitions
|
---|
521 | DEFINE_GUID(IID_IXAResourceManager,0x4131e751,0x1aea,0x11d0,0x94,0x4b,0x00,0xa0,0xc9,0x05,0x41,0x6e);
|
---|
522 | DEFINE_GUID(IID_IXAResourceManagerFactory,0x4131e750,0x1aea,0x11d0,0x94,0x4b,0x00,0xa0,0xc9,0x05,0x41,0x6e);
|
---|
523 | DEFINE_GUID(IID_IXATransaction,0x4131e752,0x1aea,0x11d0,0x94,0x4b,0x00,0xa0,0xc9,0x05,0x41,0x6e);
|
---|
524 | */
|
---|