]>
Commit | Line | Data |
---|---|---|
ff7c6d11 XL |
1 | // Copyright © 2015-2017 winapi-rs developers |
2 | // Licensed under the Apache License, Version 2.0 | |
3 | // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | |
4 | // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option. | |
5 | // All files in the project carrying such notice may not be copied, modified, or distributed | |
6 | // except according to those terms | |
7 | //! FFI bindings to ktmw32. | |
8 | use shared::guiddef::LPGUID; | |
9 | use shared::minwindef::{BOOL, DWORD}; | |
10 | use um::minwinbase::LPSECURITY_ATTRIBUTES; | |
11 | use um::winnt::{HANDLE, LPWSTR}; | |
12 | extern "system" { | |
13 | pub fn CreateTransaction( | |
14 | lpTransactionAttributes: LPSECURITY_ATTRIBUTES, | |
15 | UOW: LPGUID, | |
16 | CreateOptions: DWORD, | |
17 | IsolationLevel: DWORD, | |
18 | IsolationFlags: DWORD, | |
19 | Timeout: DWORD, | |
20 | Description: LPWSTR, | |
21 | ) -> HANDLE; | |
22 | // pub fn OpenTransaction(); | |
23 | pub fn CommitTransaction( | |
24 | TransactionHandle: HANDLE, | |
25 | ) -> BOOL; | |
26 | // pub fn CommitTransactionAsync(); | |
27 | pub fn RollbackTransaction( | |
28 | TransactionHandle: HANDLE, | |
29 | ) -> BOOL; | |
30 | // pub fn RollbackTransactionAsync(); | |
31 | // pub fn GetTransactionId(); | |
32 | // pub fn GetTransactionInformation(); | |
33 | // pub fn SetTransactionInformation(); | |
34 | // pub fn CreateTransactionManager(); | |
35 | // pub fn OpenTransactionManager(); | |
36 | // pub fn OpenTransactionManagerById(); | |
37 | // pub fn RenameTransactionManager(); | |
38 | // pub fn RollforwardTransactionManager(); | |
39 | // pub fn RecoverTransactionManager(); | |
40 | // pub fn GetCurrentClockTransactionManager(); | |
41 | // pub fn GetTransactionManagerId(); | |
42 | // pub fn CreateResourceManager(); | |
43 | // pub fn OpenResourceManager(); | |
44 | // pub fn RecoverResourceManager(); | |
45 | // pub fn GetNotificationResourceManager(); | |
46 | // pub fn GetNotificationResourceManagerAsync(); | |
47 | // pub fn SetResourceManagerCompletionPort(); | |
48 | // pub fn CreateEnlistment(); | |
49 | // pub fn OpenEnlistment(); | |
50 | // pub fn RecoverEnlistment(); | |
51 | // pub fn GetEnlistmentRecoveryInformation(); | |
52 | // pub fn GetEnlistmentId(); | |
53 | // pub fn SetEnlistmentRecoveryInformation(); | |
54 | // pub fn PrepareEnlistment(); | |
55 | // pub fn PrePrepareEnlistment(); | |
56 | // pub fn CommitEnlistment(); | |
57 | // pub fn RollbackEnlistment(); | |
58 | // pub fn PrePrepareComplete(); | |
59 | // pub fn PrepareComplete(); | |
60 | // pub fn ReadOnlyEnlistment(); | |
61 | // pub fn CommitComplete(); | |
62 | // pub fn RollbackComplete(); | |
63 | // pub fn SinglePhaseReject(); | |
64 | } |