microsoft / windows-rs

Rust for Windows
https://kennykerr.ca/rust-getting-started/
Apache License 2.0
10.32k stars 484 forks source link

Suggest windows-registry can support transactions. #3269

Open amone-bit opened 1 week ago

amone-bit commented 1 week ago

Suggestion

Like the crate named winreg support transactions.

gentoo90 commented 5 days ago

Side note: WinAPI functions used in https://github.com/gentoo90/winreg-rs/blob/master/src/transaction.rs are part of Windows Kernel Transaction Manager API which should probably have its own crate, windows-ktm or something that should be used as a dependency by windows-registry and by other things that need transactions.

kennykerr commented 3 days ago

The Kernel Transaction Manager API is primarily intended for the registry and file system APIs but the latter is strongly discouraged so that just leaves the registry API. As such, there doesn't appear to be much value in generalizing this beyond the windows-registry crate.