diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:02:58 +0000 |
commit | 698f8c2f01ea549d77d7dc3338a12e04c11057b9 (patch) | |
tree | 173a775858bd501c378080a10dca74132f05bc50 /vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs | |
parent | Initial commit. (diff) | |
download | rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.tar.xz rustc-698f8c2f01ea549d77d7dc3338a12e04c11057b9.zip |
Adding upstream version 1.64.0+dfsg1.upstream/1.64.0+dfsg1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs new file mode 100644 index 000000000..5ce573729 --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs @@ -0,0 +1,34 @@ +#[link(name = "windows")] +extern "system" { + #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ApplicationRecoveryFinished(bsuccess: super::super::Foundation::BOOL); + #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn ApplicationRecoveryInProgress(pbcancelled: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`, `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_WindowsProgramming"))] + pub fn GetApplicationRecoveryCallback(hprocess: super::super::Foundation::HANDLE, precoverycallback: *mut super::WindowsProgramming::APPLICATION_RECOVERY_CALLBACK, ppvparameter: *mut *mut ::core::ffi::c_void, pdwpinginterval: *mut u32, pdwflags: *mut u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`*"] + #[cfg(feature = "Win32_Foundation")] + pub fn GetApplicationRestartSettings(hprocess: super::super::Foundation::HANDLE, pwzcommandline: ::windows_sys::core::PWSTR, pcchsize: *mut u32, pdwflags: *mut u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_System_WindowsProgramming\"`*"] + #[cfg(feature = "Win32_System_WindowsProgramming")] + pub fn RegisterApplicationRecoveryCallback(precoveycallback: super::WindowsProgramming::APPLICATION_RECOVERY_CALLBACK, pvparameter: *const ::core::ffi::c_void, dwpinginterval: u32, dwflags: u32) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Recovery\"`*"] + pub fn RegisterApplicationRestart(pwzcommandline: ::windows_sys::core::PCWSTR, dwflags: REGISTER_APPLICATION_RESTART_FLAGS) -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Recovery\"`*"] + pub fn UnregisterApplicationRecoveryCallback() -> ::windows_sys::core::HRESULT; + #[doc = "*Required features: `\"Win32_System_Recovery\"`*"] + pub fn UnregisterApplicationRestart() -> ::windows_sys::core::HRESULT; +} +#[doc = "*Required features: `\"Win32_System_Recovery\"`*"] +pub type REGISTER_APPLICATION_RESTART_FLAGS = u32; +#[doc = "*Required features: `\"Win32_System_Recovery\"`*"] +pub const RESTART_NO_CRASH: REGISTER_APPLICATION_RESTART_FLAGS = 1u32; +#[doc = "*Required features: `\"Win32_System_Recovery\"`*"] +pub const RESTART_NO_HANG: REGISTER_APPLICATION_RESTART_FLAGS = 2u32; +#[doc = "*Required features: `\"Win32_System_Recovery\"`*"] +pub const RESTART_NO_PATCH: REGISTER_APPLICATION_RESTART_FLAGS = 4u32; +#[doc = "*Required features: `\"Win32_System_Recovery\"`*"] +pub const RESTART_NO_REBOOT: REGISTER_APPLICATION_RESTART_FLAGS = 8u32; |