ktmw32/
lib.rs

1// Copyright © 2015, Peter Atashian
2// Licensed under the MIT License <LICENSE.md>
3//! FFI bindings to ktmw32.
4#![cfg(windows)]
5extern crate winapi;
6use winapi::*;
7extern "system" {
8    // pub fn CommitComplete();
9    // pub fn CommitEnlistment();
10    pub fn CommitTransaction(TransactionHandle: HANDLE) -> BOOL;
11    // pub fn CommitTransactionAsync();
12    // pub fn CreateEnlistment();
13    // pub fn CreateResourceManager();
14    pub fn CreateTransaction(
15        lpTransactionAttributes: LPSECURITY_ATTRIBUTES, UOW: LPGUID, CreateOptions: DWORD,
16        IsolationLevel: DWORD, IsolationFlags: DWORD, Timeout: DWORD, Description: LPWSTR,
17    ) -> HANDLE;
18    // pub fn CreateTransactionManager();
19    // pub fn GetCurrentClockTransactionManager();
20    // pub fn GetEnlistmentId();
21    // pub fn GetEnlistmentRecoveryInformation();
22    // pub fn GetNotificationResourceManager();
23    // pub fn GetNotificationResourceManagerAsync();
24    // pub fn GetTransactionId();
25    // pub fn GetTransactionInformation();
26    // pub fn GetTransactionManagerId();
27    // pub fn OpenEnlistment();
28    // pub fn OpenResourceManager();
29    // pub fn OpenTransaction();
30    // pub fn OpenTransactionManager();
31    // pub fn OpenTransactionManagerById();
32    // pub fn PrepareComplete();
33    // pub fn PrepareEnlistment();
34    // pub fn PrePrepareComplete();
35    // pub fn PrePrepareEnlistment();
36    // pub fn PrivCreateTransaction();
37    // pub fn PrivIsLogWritableTransactionManager();
38    // pub fn PrivPropagationComplete();
39    // pub fn PrivPropagationFailed();
40    // pub fn PrivRegisterProtocolAddressInformation();
41    // pub fn ReadOnlyEnlistment();
42    // pub fn RecoverEnlistment();
43    // pub fn RecoverResourceManager();
44    // pub fn RecoverTransactionManager();
45    // pub fn RenameTransactionManager();
46    // pub fn RollbackComplete();
47    // pub fn RollbackEnlistment();
48    pub fn RollbackTransaction(TransactionHandle: HANDLE) -> BOOL;
49    // pub fn RollbackTransactionAsync();
50    // pub fn RollforwardTransactionManager();
51    // pub fn SetEnlistmentRecoveryInformation();
52    // pub fn SetResourceManagerCompletionPort();
53    // pub fn SetTransactionInformation();
54    // pub fn SinglePhaseReject();
55}