ReactOS 0.4.16-dev-329-g9223134
ktmtypes.h
Go to the documentation of this file.
1/*
2 * ktmtypes.h
3 *
4 * This file is part of the ReactOS PSDK package.
5 *
6 * Contributors:
7 * Created by Timo Kreuzer <timo.kreuzer@reactos.org>
8 *
9 * THIS SOFTWARE IS NOT COPYRIGHTED
10 *
11 * This source code is offered for use in the public domain. You may
12 * use, modify or distribute it freely.
13 *
14 * This code is distributed in the hope that it will be useful but
15 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
16 * DISCLAIMED. This includes but is not limited to warranties of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18 *
19 */
20
21#ifndef _KTMTYPES_
22#define _KTMTYPES_
23
24#define TRANSACTION_MANAGER_VOLATILE 0x00000001
25#define TRANSACTION_MANAGER_COMMIT_DEFAULT 0x00000000
26#define TRANSACTION_MANAGER_COMMIT_SYSTEM_VOLUME 0x00000002
27#define TRANSACTION_MANAGER_COMMIT_SYSTEM_HIVES 0x00000004
28#define TRANSACTION_MANAGER_COMMIT_LOWEST 0x00000008
29#define TRANSACTION_MANAGER_CORRUPT_FOR_RECOVERY 0x00000010
30#define TRANSACTION_MANAGER_CORRUPT_FOR_PROGRESS 0x00000020
31#define TRANSACTION_MANAGER_MAXIMUM_OPTION 0x0000003F
32
33#define TRANSACTION_DO_NOT_PROMOTE 0x00000001
34#define TRANSACTION_MAXIMUM_OPTION 0x00000001
35
36#define RESOURCE_MANAGER_VOLATILE 0x00000001
37#define RESOURCE_MANAGER_COMMUNICATION 0x00000002
38#define RESOURCE_MANAGER_MAXIMUM_OPTION 0x00000003
39
40#define CRM_PROTOCOL_EXPLICIT_MARSHAL_ONLY 0x00000001
41#define CRM_PROTOCOL_DYNAMIC_MARSHAL_INFO 0x00000002
42#define CRM_PROTOCOL_MAXIMUM_OPTION 0x00000003
43
44#define ENLISTMENT_SUPERIOR 0x00000001
45#define ENLISTMENT_MAXIMUM_OPTION 0x00000001
46
47#define TRANSACTION_NOTIFY_MASK 0x3FFFFFFF
48#define TRANSACTION_NOTIFY_PREPREPARE 0x00000001
49#define TRANSACTION_NOTIFY_PREPARE 0x00000002
50#define TRANSACTION_NOTIFY_COMMIT 0x00000004
51#define TRANSACTION_NOTIFY_ROLLBACK 0x00000008
52#define TRANSACTION_NOTIFY_PREPREPARE_COMPLETE 0x00000010
53#define TRANSACTION_NOTIFY_PREPARE_COMPLETE 0x00000020
54#define TRANSACTION_NOTIFY_COMMIT_COMPLETE 0x00000040
55#define TRANSACTION_NOTIFY_ROLLBACK_COMPLETE 0x00000080
56#define TRANSACTION_NOTIFY_RECOVER 0x00000100
57#define TRANSACTION_NOTIFY_SINGLE_PHASE_COMMIT 0x00000200
58#define TRANSACTION_NOTIFY_DELEGATE_COMMIT 0x00000400
59#define TRANSACTION_NOTIFY_RECOVER_QUERY 0x00000800
60#define TRANSACTION_NOTIFY_ENLIST_PREPREPARE 0x00001000
61#define TRANSACTION_NOTIFY_LAST_RECOVER 0x00002000
62#define TRANSACTION_NOTIFY_INDOUBT 0x00004000
63#define TRANSACTION_NOTIFY_PROPAGATE_PULL 0x00008000
64#define TRANSACTION_NOTIFY_PROPAGATE_PUSH 0x00010000
65#define TRANSACTION_NOTIFY_MARSHAL 0x00020000
66#define TRANSACTION_NOTIFY_ENLIST_MASK 0x00040000
67#define TRANSACTION_NOTIFY_RM_DISCONNECTED 0x01000000
68#define TRANSACTION_NOTIFY_TM_ONLINE 0x02000000
69#define TRANSACTION_NOTIFY_COMMIT_REQUEST 0x04000000
70#define TRANSACTION_NOTIFY_PROMOTE 0x08000000
71#define TRANSACTION_NOTIFY_PROMOTE_NEW 0x10000000
72#define TRANSACTION_NOTIFY_REQUEST_OUTCOME 0x20000000
73
74#define TRANSACTION_NOTIFY_COMMIT_FINALIZE 0x40000000
75
76#define TRANSACTIONMANAGER_OBJECT_PATH L"\\TransactionManager\\"
77#define TRANSACTION_OBJECT_PATH L"\\Transaction\\"
78#define ENLISTMENT_OBJECT_PATH L"\\Enlistment\\"
79#define RESOURCE_MANAGER_OBJECT_PATH L"\\ResourceManager\\"
80
81#define TRANSACTIONMANAGER_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(TRANSACTIONMANAGER_OBJECT_PATH)+(38*sizeof(WCHAR)))
82#define TRANSACTION_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(TRANSACTION_OBJECT_PATH)+(38*sizeof(WCHAR)))
83#define ENLISTMENT_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(ENLISTMENT_OBJECT_PATH)+(38*sizeof(WCHAR)))
84#define RESOURCE_MANAGER_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(RESOURCE_MANAGER_OBJECT_PATH)+(38*sizeof(WCHAR)))
85
86#define TRANSACTION_NOTIFICATION_TM_ONLINE_FLAG_IS_CLUSTERED 0x1
87
88#define KTM_MARSHAL_BLOB_VERSION_MAJOR 1
89#define KTM_MARSHAL_BLOB_VERSION_MINOR 1
90
91#define MAX_TRANSACTION_DESCRIPTION_LENGTH 64
92#define MAX_RESOURCEMANAGER_DESCRIPTION_LENGTH 64
93
94#ifndef _WDMDDK_
95typedef GUID UOW, *PUOW;
96#endif
97
101
108
111#if defined(__cplusplus)
112 ::UOW UOW;
113#else
115#endif
117
122
126
134
139
140typedef struct _KCRM_MARSHAL_HEADER {
146
148#if defined(__cplusplus)
149 ::UOW UOW;
150#else
152#endif
159
160typedef struct _KCRM_PROTOCOL_BLOB {
167
168#endif /* _KTMTYPES_ */
169
struct _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT * PTRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT
ULONG * PSAVEPOINT_ID
Definition: ktmtypes.h:100
GUID CRM_PROTOCOL_ID
Definition: ktmtypes.h:98
struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT
struct _KCRM_TRANSACTION_BLOB KCRM_TRANSACTION_BLOB
GUID * PUOW
Definition: ktmtypes.h:95
GUID * PCRM_PROTOCOL_ID
Definition: ktmtypes.h:98
struct _KCRM_MARSHAL_HEADER KCRM_MARSHAL_HEADER
struct _KCRM_TRANSACTION_BLOB PRKCRM_TRANSACTION_BLOB
struct _KCRM_MARSHAL_HEADER PRKCRM_MARSHAL_HEADER
struct _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT
struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT TRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT
struct _TRANSACTION_NOTIFICATION TRANSACTION_NOTIFICATION
struct _TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT TRANSACTION_NOTIFICATION_RECOVERY_ARGUMENT
struct _TRANSACTION_NOTIFICATION * PTRANSACTION_NOTIFICATION
struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT * PTRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT
struct _KCRM_MARSHAL_HEADER * PKCRM_MARSHAL_HEADER
struct _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT * PTRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT
struct _KCRM_PROTOCOL_BLOB KCRM_PROTOCOL_BLOB
#define MAX_TRANSACTION_DESCRIPTION_LENGTH
Definition: ktmtypes.h:91
struct _TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT TRANSACTION_NOTIFICATION_TM_ONLINE_ARGUMENT
struct _KCRM_PROTOCOL_BLOB PRKCRM_PROTOCOL_BLOB
struct _TRANSACTION_NOTIFICATION_PROPAGATE_ARGUMENT * PTRANSACTION_NOTIFICATION_PROMOTE_ARGUMENT
struct _KCRM_TRANSACTION_BLOB * PKCRM_TRANSACTION_BLOB
GUID UOW
Definition: ktmtypes.h:95
struct _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT
struct _TRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT * PTRANSACTION_NOTIFICATION_MARSHAL_ARGUMENT
ULONG SAVEPOINT_ID
Definition: ktmtypes.h:100
struct _KCRM_PROTOCOL_BLOB * PKCRM_PROTOCOL_BLOB
struct _TRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT * PTRANSACTION_NOTIFICATION_SAVEPOINT_ARGUMENT
ULONG NOTIFICATION_MASK
Definition: ktmtypes.h:99
#define RESTRICTED_POINTER
Definition: ntbasedef.h:97
ULONG TransactionIdInfoLength
Definition: ktmtypes.h:163
CRM_PROTOCOL_ID ProtocolId
Definition: ktmtypes.h:161
ULONG StaticInfoLength
Definition: ktmtypes.h:162
WCHAR Description[MAX_TRANSACTION_DESCRIPTION_LENGTH]
Definition: ktmtypes.h:157
LARGE_INTEGER TmVirtualClock
Definition: ktmtypes.h:105
uint32_t ULONG
Definition: typedefs.h:59
__wchar_t WCHAR
Definition: xmlstorage.h:180