ktmw32/
lib.rs

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
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright © 2015, Peter Atashian
// Licensed under the MIT License <LICENSE.md>
//! FFI bindings to ktmw32.
#![cfg(windows)]
extern crate winapi;
use winapi::*;
extern "system" {
    // pub fn CommitComplete();
    // pub fn CommitEnlistment();
    pub fn CommitTransaction(TransactionHandle: HANDLE) -> BOOL;
    // pub fn CommitTransactionAsync();
    // pub fn CreateEnlistment();
    // pub fn CreateResourceManager();
    pub fn CreateTransaction(
        lpTransactionAttributes: LPSECURITY_ATTRIBUTES, UOW: LPGUID, CreateOptions: DWORD,
        IsolationLevel: DWORD, IsolationFlags: DWORD, Timeout: DWORD, Description: LPWSTR,
    ) -> HANDLE;
    // pub fn CreateTransactionManager();
    // pub fn GetCurrentClockTransactionManager();
    // pub fn GetEnlistmentId();
    // pub fn GetEnlistmentRecoveryInformation();
    // pub fn GetNotificationResourceManager();
    // pub fn GetNotificationResourceManagerAsync();
    // pub fn GetTransactionId();
    // pub fn GetTransactionInformation();
    // pub fn GetTransactionManagerId();
    // pub fn OpenEnlistment();
    // pub fn OpenResourceManager();
    // pub fn OpenTransaction();
    // pub fn OpenTransactionManager();
    // pub fn OpenTransactionManagerById();
    // pub fn PrepareComplete();
    // pub fn PrepareEnlistment();
    // pub fn PrePrepareComplete();
    // pub fn PrePrepareEnlistment();
    // pub fn PrivCreateTransaction();
    // pub fn PrivIsLogWritableTransactionManager();
    // pub fn PrivPropagationComplete();
    // pub fn PrivPropagationFailed();
    // pub fn PrivRegisterProtocolAddressInformation();
    // pub fn ReadOnlyEnlistment();
    // pub fn RecoverEnlistment();
    // pub fn RecoverResourceManager();
    // pub fn RecoverTransactionManager();
    // pub fn RenameTransactionManager();
    // pub fn RollbackComplete();
    // pub fn RollbackEnlistment();
    pub fn RollbackTransaction(TransactionHandle: HANDLE) -> BOOL;
    // pub fn RollbackTransactionAsync();
    // pub fn RollforwardTransactionManager();
    // pub fn SetEnlistmentRecoveryInformation();
    // pub fn SetResourceManagerCompletionPort();
    // pub fn SetTransactionInformation();
    // pub fn SinglePhaseReject();
}