Dynamically calls CreateTransaction.
(attributes: *mut SECURITY_ATTRIBUTES,uow: *mut GUID, options: u32, isolation_level: u32, isolation_flags: u32, timeout: u32, description: *mut u16)
| 439 | /// Dynamically calls CreateTransaction. |
| 440 | /// |
| 441 | pub fn create_transaction(attributes: *mut SECURITY_ATTRIBUTES,uow: *mut GUID, options: u32, isolation_level: u32, isolation_flags: u32, timeout: u32, description: *mut u16) -> HANDLE { |
| 442 | |
| 443 | unsafe |
| 444 | { |
| 445 | let ret: Option<HANDLE>; |
| 446 | let func_ptr: data::CreateTransaction; |
| 447 | let ktmv = load_library_a(&lc!("KtmW32.dll")).unwrap(); |
| 448 | dynamic_invoke!(ktmv,&lc!("CreateTransaction"),func_ptr,ret,attributes,uow,options,isolation_level,isolation_flags,timeout,description); |
| 449 | |
| 450 | match ret { |
| 451 | Some(x) => return x, |
| 452 | None => return HANDLE { 0: 0 } , |
| 453 | } |
| 454 | } |
| 455 | } |
| 456 | |
| 457 | /// Dynamically calls CreateFileTransactedA. |
| 458 | /// |
no test coverage detected