-
Notifications
You must be signed in to change notification settings - Fork 15
/
pgenlist.h
42 lines (36 loc) · 929 Bytes
/
pgenlist.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* File: enlist.h
*
* Description: See "msdtc_enlist.c"
*
* Comments: See "readme.txt" for copyright and license information.
*
*/
#ifndef __PGENLIST_H__
#define __PGENLIST_H__
#ifdef __cplusplus
extern "C" {
#endif
#ifdef WIN32
#ifdef _HANDLE_ENLIST_IN_DTC_
#undef DLL_DECLARE
#ifdef _PGENLIST_FUNCS_IMPLEMENT_
#define DLL_DECLARE _declspec(dllexport)
#else
#ifdef _PGENLIST_FUNCS_IMPORT_
#define DLL_DECLARE _declspec(dllimport)
#else
#define DLL_DECLARE
#endif /* _PGENLIST_FUNCS_IMPORT_ */
#endif /* _PGENLIST_FUNCS_IMPLEMENT_ */
RETCODE EnlistInDtc(void *conn, void *pTra, int method);
RETCODE DtcOnDisconnect(void *);
RETCODE IsolateDtcConn(void *, BOOL continueConnection);
// for testing
DLL_DECLARE void *GetTransactionObject(HRESULT *hres);
DLL_DECLARE void ReleaseTransactionObject(void *);
#endif /* _HANDLE_ENLIST_IN_DTC_ */
#endif /* WIN32 */
#ifdef __cplusplus
}
#endif
#endif /* __PGENLIST_H__ */