diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 12:19:03 +0000 |
commit | 64d98f8ee037282c35007b64c2649055c56af1db (patch) | |
tree | 5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs | |
parent | Adding debian version 1.67.1+dfsg1-1. (diff) | |
download | rustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip |
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs')
-rw-r--r-- | vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs | 46 |
1 files changed, 16 insertions, 30 deletions
diff --git a/vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs b/vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs index bb1b10576..c9c79b08c 100644 --- a/vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs +++ b/vendor/windows-sys/src/Windows/Win32/System/RestartManager/mod.rs @@ -1,32 +1,18 @@ -#[cfg_attr(windows, link(name = "windows"))] -extern "system" { - #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RmAddFilter(dwsessionhandle: u32, strmodulename: ::windows_sys::core::PCWSTR, pprocess: *const RM_UNIQUE_PROCESS, strserviceshortname: ::windows_sys::core::PCWSTR, filteraction: RM_FILTER_ACTION) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmCancelCurrentTask(dwsessionhandle: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmEndSession(dwsessionhandle: u32) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmGetFilterList(dwsessionhandle: u32, pbfilterbuf: *mut u8, cbfilterbuf: u32, cbfilterbufneeded: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RmGetList(dwsessionhandle: u32, pnprocinfoneeded: *mut u32, pnprocinfo: *mut u32, rgaffectedapps: *mut RM_PROCESS_INFO, lpdwrebootreasons: *mut u32) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmJoinSession(psessionhandle: *mut u32, strsessionkey: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RmRegisterResources(dwsessionhandle: u32, nfiles: u32, rgsfilenames: *const ::windows_sys::core::PWSTR, napplications: u32, rgapplications: *const RM_UNIQUE_PROCESS, nservices: u32, rgsservicenames: *const ::windows_sys::core::PWSTR) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] - #[cfg(feature = "Win32_Foundation")] - pub fn RmRemoveFilter(dwsessionhandle: u32, strmodulename: ::windows_sys::core::PCWSTR, pprocess: *const RM_UNIQUE_PROCESS, strserviceshortname: ::windows_sys::core::PCWSTR) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmRestart(dwsessionhandle: u32, dwrestartflags: u32, fnstatus: RM_WRITE_STATUS_CALLBACK) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmShutdown(dwsessionhandle: u32, lactionflags: u32, fnstatus: RM_WRITE_STATUS_CALLBACK) -> u32; - #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] - pub fn RmStartSession(psessionhandle: *mut u32, dwsessionflags: u32, strsessionkey: ::windows_sys::core::PWSTR) -> u32; -} +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] fn RmAddFilter ( dwsessionhandle : u32 , strmodulename : :: windows_sys::core::PCWSTR , pprocess : *const RM_UNIQUE_PROCESS , strserviceshortname : :: windows_sys::core::PCWSTR , filteraction : RM_FILTER_ACTION ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmCancelCurrentTask ( dwsessionhandle : u32 ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmEndSession ( dwsessionhandle : u32 ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmGetFilterList ( dwsessionhandle : u32 , pbfilterbuf : *mut u8 , cbfilterbuf : u32 , cbfilterbufneeded : *mut u32 ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] fn RmGetList ( dwsessionhandle : u32 , pnprocinfoneeded : *mut u32 , pnprocinfo : *mut u32 , rgaffectedapps : *mut RM_PROCESS_INFO , lpdwrebootreasons : *mut u32 ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmJoinSession ( psessionhandle : *mut u32 , strsessionkey : :: windows_sys::core::PCWSTR ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] fn RmRegisterResources ( dwsessionhandle : u32 , nfiles : u32 , rgsfilenames : *const :: windows_sys::core::PCWSTR , napplications : u32 , rgapplications : *const RM_UNIQUE_PROCESS , nservices : u32 , rgsservicenames : *const :: windows_sys::core::PCWSTR ) -> u32 ); +#[cfg(feature = "Win32_Foundation")] +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`, `\"Win32_Foundation\"`*"] fn RmRemoveFilter ( dwsessionhandle : u32 , strmodulename : :: windows_sys::core::PCWSTR , pprocess : *const RM_UNIQUE_PROCESS , strserviceshortname : :: windows_sys::core::PCWSTR ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmRestart ( dwsessionhandle : u32 , dwrestartflags : u32 , fnstatus : RM_WRITE_STATUS_CALLBACK ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmShutdown ( dwsessionhandle : u32 , lactionflags : u32 , fnstatus : RM_WRITE_STATUS_CALLBACK ) -> u32 ); +::windows_sys::core::link ! ( "rstrtmgr.dll""system" #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] fn RmStartSession ( psessionhandle : *mut u32 , dwsessionflags : u32 , strsessionkey : :: windows_sys::core::PWSTR ) -> u32 ); #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] pub const CCH_RM_MAX_APP_NAME: u32 = 255u32; #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] @@ -180,4 +166,4 @@ impl ::core::clone::Clone for RM_UNIQUE_PROCESS { } } #[doc = "*Required features: `\"Win32_System_RestartManager\"`*"] -pub type RM_WRITE_STATUS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(npercentcomplete: u32)>; +pub type RM_WRITE_STATUS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(npercentcomplete: u32) -> ()>; |