]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/System/Recovery/mod.rs
New upstream version 1.67.1+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / System / Recovery / mod.rs
1 #[cfg_attr(windows, link(name = "windows"))]
2 extern "system" {
3 #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`*"]
4 #[cfg(feature = "Win32_Foundation")]
5 pub fn ApplicationRecoveryFinished(bsuccess: super::super::Foundation::BOOL);
6 #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`*"]
7 #[cfg(feature = "Win32_Foundation")]
8 pub fn ApplicationRecoveryInProgress(pbcancelled: *mut super::super::Foundation::BOOL) -> ::windows_sys::core::HRESULT;
9 #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`, `\"Win32_System_WindowsProgramming\"`*"]
10 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_WindowsProgramming"))]
11 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;
12 #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_Foundation\"`*"]
13 #[cfg(feature = "Win32_Foundation")]
14 pub fn GetApplicationRestartSettings(hprocess: super::super::Foundation::HANDLE, pwzcommandline: ::windows_sys::core::PWSTR, pcchsize: *mut u32, pdwflags: *mut u32) -> ::windows_sys::core::HRESULT;
15 #[doc = "*Required features: `\"Win32_System_Recovery\"`, `\"Win32_System_WindowsProgramming\"`*"]
16 #[cfg(feature = "Win32_System_WindowsProgramming")]
17 pub fn RegisterApplicationRecoveryCallback(precoveycallback: super::WindowsProgramming::APPLICATION_RECOVERY_CALLBACK, pvparameter: *const ::core::ffi::c_void, dwpinginterval: u32, dwflags: u32) -> ::windows_sys::core::HRESULT;
18 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
19 pub fn RegisterApplicationRestart(pwzcommandline: ::windows_sys::core::PCWSTR, dwflags: REGISTER_APPLICATION_RESTART_FLAGS) -> ::windows_sys::core::HRESULT;
20 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
21 pub fn UnregisterApplicationRecoveryCallback() -> ::windows_sys::core::HRESULT;
22 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
23 pub fn UnregisterApplicationRestart() -> ::windows_sys::core::HRESULT;
24 }
25 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
26 pub type REGISTER_APPLICATION_RESTART_FLAGS = u32;
27 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
28 pub const RESTART_NO_CRASH: REGISTER_APPLICATION_RESTART_FLAGS = 1u32;
29 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
30 pub const RESTART_NO_HANG: REGISTER_APPLICATION_RESTART_FLAGS = 2u32;
31 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
32 pub const RESTART_NO_PATCH: REGISTER_APPLICATION_RESTART_FLAGS = 4u32;
33 #[doc = "*Required features: `\"Win32_System_Recovery\"`*"]
34 pub const RESTART_NO_REBOOT: REGISTER_APPLICATION_RESTART_FLAGS = 8u32;