Simply call the Win32 API TaskDialogIndirect in Rust.
Can be safely call on not windows platforms, but it has no effect.After version 1.0.0, it can no longer run properly on Linux. Please use
cfg(windows)to mark the usage.
[target.'cfg(windows)'.dependencies]
win-task-dialog = "1.0.0"
[build-dependencies]
embed-resource = "2.1"NOTE: You must be Enabling Visual Styles and using embed-resource to change manifest.
I used a very unsafe way to implement these functions and I didn't have a good way to solve this problem.
