| 1 |
#[cfg(feature = "Win32_Foundation")] |
| 2 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"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) -> super::super::Foundation:: WIN32_ERROR); |
| 3 |
#[cfg(feature = "Win32_Foundation")] |
| 4 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmCancelCurrentTask(dwsessionhandle : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 5 |
#[cfg(feature = "Win32_Foundation")] |
| 6 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmEndSession(dwsessionhandle : u32) -> super::super::Foundation:: WIN32_ERROR); |
| 7 |
#[cfg(feature = "Win32_Foundation")] |
| 8 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmGetFilterList(dwsessionhandle : u32, pbfilterbuf : *mut u8, cbfilterbuf : u32, cbfilterbufneeded : *mut u32) -> super::super::Foundation:: WIN32_ERROR); |
| 9 |
#[cfg(feature = "Win32_Foundation")] |
| 10 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmGetList(dwsessionhandle : u32, pnprocinfoneeded : *mut u32, pnprocinfo : *mut u32, rgaffectedapps : *mut RM_PROCESS_INFO, lpdwrebootreasons : *mut u32) -> super::super::Foundation:: WIN32_ERROR); |
| 11 |
#[cfg(feature = "Win32_Foundation")] |
| 12 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmJoinSession(psessionhandle : *mut u32, strsessionkey : ::windows_sys::core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); |
| 13 |
#[cfg(feature = "Win32_Foundation")] |
| 14 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"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) -> super::super::Foundation:: WIN32_ERROR); |
| 15 |
#[cfg(feature = "Win32_Foundation")] |
| 16 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmRemoveFilter(dwsessionhandle : u32, strmodulename : ::windows_sys::core::PCWSTR, pprocess : *const RM_UNIQUE_PROCESS, strserviceshortname : ::windows_sys::core::PCWSTR) -> super::super::Foundation:: WIN32_ERROR); |
| 17 |
#[cfg(feature = "Win32_Foundation")] |
| 18 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmRestart(dwsessionhandle : u32, dwrestartflags : u32, fnstatus : RM_WRITE_STATUS_CALLBACK) -> super::super::Foundation:: WIN32_ERROR); |
| 19 |
#[cfg(feature = "Win32_Foundation")] |
| 20 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmShutdown(dwsessionhandle : u32, lactionflags : u32, fnstatus : RM_WRITE_STATUS_CALLBACK) -> super::super::Foundation:: WIN32_ERROR); |
| 21 |
#[cfg(feature = "Win32_Foundation")] |
| 22 |
::windows_targets::link!("rstrtmgr.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RmStartSession(psessionhandle : *mut u32, dwsessionflags : u32, strsessionkey : ::windows_sys::core::PWSTR) -> super::super::Foundation:: WIN32_ERROR); |
| 23 |
pub const CCH_RM_MAX_APP_NAME: u32 = 255u32; |
| 24 |
pub const CCH_RM_MAX_SVC_NAME: u32 = 63u32; |
| 25 |
pub const CCH_RM_SESSION_KEY: u32 = 32u32; |
| 26 |
pub const RM_INVALID_PROCESS: i32 = -1i32; |
| 27 |
pub const RM_INVALID_TS_SESSION: i32 = -1i32; |
| 28 |
pub const RmConsole: RM_APP_TYPE = 5i32; |
| 29 |
pub const RmCritical: RM_APP_TYPE = 1000i32; |
| 30 |
pub const RmExplorer: RM_APP_TYPE = 4i32; |
| 31 |
pub const RmFilterTriggerFile: RM_FILTER_TRIGGER = 1i32; |
| 32 |
pub const RmFilterTriggerInvalid: RM_FILTER_TRIGGER = 0i32; |
| 33 |
pub const RmFilterTriggerProcess: RM_FILTER_TRIGGER = 2i32; |
| 34 |
pub const RmFilterTriggerService: RM_FILTER_TRIGGER = 3i32; |
| 35 |
pub const RmForceShutdown: RM_SHUTDOWN_TYPE = 1i32; |
| 36 |
pub const RmInvalidFilterAction: RM_FILTER_ACTION = 0i32; |
| 37 |
pub const RmMainWindow: RM_APP_TYPE = 1i32; |
| 38 |
pub const RmNoRestart: RM_FILTER_ACTION = 1i32; |
| 39 |
pub const RmNoShutdown: RM_FILTER_ACTION = 2i32; |
| 40 |
pub const RmOtherWindow: RM_APP_TYPE = 2i32; |
| 41 |
pub const RmRebootReasonCriticalProcess: RM_REBOOT_REASON = 4i32; |
| 42 |
pub const RmRebootReasonCriticalService: RM_REBOOT_REASON = 8i32; |
| 43 |
pub const RmRebootReasonDetectedSelf: RM_REBOOT_REASON = 16i32; |
| 44 |
pub const RmRebootReasonNone: RM_REBOOT_REASON = 0i32; |
| 45 |
pub const RmRebootReasonPermissionDenied: RM_REBOOT_REASON = 1i32; |
| 46 |
pub const RmRebootReasonSessionMismatch: RM_REBOOT_REASON = 2i32; |
| 47 |
pub const RmService: RM_APP_TYPE = 3i32; |
| 48 |
pub const RmShutdownOnlyRegistered: RM_SHUTDOWN_TYPE = 16i32; |
| 49 |
pub const RmStatusErrorOnRestart: RM_APP_STATUS = 32i32; |
| 50 |
pub const RmStatusErrorOnStop: RM_APP_STATUS = 16i32; |
| 51 |
pub const RmStatusRestartMasked: RM_APP_STATUS = 128i32; |
| 52 |
pub const RmStatusRestarted: RM_APP_STATUS = 8i32; |
| 53 |
pub const RmStatusRunning: RM_APP_STATUS = 1i32; |
| 54 |
pub const RmStatusShutdownMasked: RM_APP_STATUS = 64i32; |
| 55 |
pub const RmStatusStopped: RM_APP_STATUS = 2i32; |
| 56 |
pub const RmStatusStoppedOther: RM_APP_STATUS = 4i32; |
| 57 |
pub const RmStatusUnknown: RM_APP_STATUS = 0i32; |
| 58 |
pub const RmUnknownApp: RM_APP_TYPE = 0i32; |
| 59 |
pub type RM_APP_STATUS = i32; |
| 60 |
pub type RM_APP_TYPE = i32; |
| 61 |
pub type RM_FILTER_ACTION = i32; |
| 62 |
pub type RM_FILTER_TRIGGER = i32; |
| 63 |
pub type RM_REBOOT_REASON = i32; |
| 64 |
pub type RM_SHUTDOWN_TYPE = i32; |
| 65 |
#[repr(C)] |
| 66 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 67 |
#[cfg(feature = "Win32_Foundation")] |
| 68 |
pub struct RM_FILTER_INFO { |
| 69 |
pub FilterAction: RM_FILTER_ACTION, |
| 70 |
pub FilterTrigger: RM_FILTER_TRIGGER, |
| 71 |
pub cbNextOffset: u32, |
| 72 |
pub Anonymous: RM_FILTER_INFO_0, |
| 73 |
} |
| 74 |
#[cfg(feature = "Win32_Foundation")] |
| 75 |
impl ::core::marker::Copy for RM_FILTER_INFO {} |
| 76 |
#[cfg(feature = "Win32_Foundation")] |
| 77 |
impl ::core::clone::Clone for RM_FILTER_INFO { |
| 78 |
fn clone(&self) -> Self { |
| 79 |
*self |
| 80 |
} |
| 81 |
} |
| 82 |
#[repr(C)] |
| 83 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 84 |
#[cfg(feature = "Win32_Foundation")] |
| 85 |
pub union RM_FILTER_INFO_0 { |
| 86 |
pub strFilename: ::windows_sys::core::PWSTR, |
| 87 |
pub Process: RM_UNIQUE_PROCESS, |
| 88 |
pub strServiceShortName: ::windows_sys::core::PWSTR, |
| 89 |
} |
| 90 |
#[cfg(feature = "Win32_Foundation")] |
| 91 |
impl ::core::marker::Copy for RM_FILTER_INFO_0 {} |
| 92 |
#[cfg(feature = "Win32_Foundation")] |
| 93 |
impl ::core::clone::Clone for RM_FILTER_INFO_0 { |
| 94 |
fn clone(&self) -> Self { |
| 95 |
*self |
| 96 |
} |
| 97 |
} |
| 98 |
#[repr(C)] |
| 99 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 100 |
#[cfg(feature = "Win32_Foundation")] |
| 101 |
pub struct RM_PROCESS_INFO { |
| 102 |
pub Process: RM_UNIQUE_PROCESS, |
| 103 |
pub strAppName: [u16; 256], |
| 104 |
pub strServiceShortName: [u16; 64], |
| 105 |
pub ApplicationType: RM_APP_TYPE, |
| 106 |
pub AppStatus: u32, |
| 107 |
pub TSSessionId: u32, |
| 108 |
pub bRestartable: super::super::Foundation::BOOL, |
| 109 |
} |
| 110 |
#[cfg(feature = "Win32_Foundation")] |
| 111 |
impl ::core::marker::Copy for RM_PROCESS_INFO {} |
| 112 |
#[cfg(feature = "Win32_Foundation")] |
| 113 |
impl ::core::clone::Clone for RM_PROCESS_INFO { |
| 114 |
fn clone(&self) -> Self { |
| 115 |
*self |
| 116 |
} |
| 117 |
} |
| 118 |
#[repr(C)] |
| 119 |
#[doc = "Required features: `\"Win32_Foundation\"`"] |
| 120 |
#[cfg(feature = "Win32_Foundation")] |
| 121 |
pub struct RM_UNIQUE_PROCESS { |
| 122 |
pub dwProcessId: u32, |
| 123 |
pub ProcessStartTime: super::super::Foundation::FILETIME, |
| 124 |
} |
| 125 |
#[cfg(feature = "Win32_Foundation")] |
| 126 |
impl ::core::marker::Copy for RM_UNIQUE_PROCESS {} |
| 127 |
#[cfg(feature = "Win32_Foundation")] |
| 128 |
impl ::core::clone::Clone for RM_UNIQUE_PROCESS { |
| 129 |
fn clone(&self) -> Self { |
| 130 |
*self |
| 131 |
} |
| 132 |
} |
| 133 |
pub type RM_WRITE_STATUS_CALLBACK = ::core::option::Option<unsafe extern "system" fn(npercentcomplete: u32) -> ()>; |