1 #![allow(unused_variables, non_upper_case_globals, non_snake_case, unused_unsafe, non_camel_case_types, dead_code, clippy::all)] 2 pub const CLSID_CTask: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(344708384, 41643, 4558, [177, 31, 0, 170, 0, 83, 5, 3]); 3 pub const CLSID_CTaskScheduler: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(344708394, 41643, 4558, [177, 31, 0, 170, 0, 83, 5, 3]); 4 #[derive(:: std :: clone :: Clone, :: std :: marker :: Copy)] 5 #[repr(C)] 6 pub struct DAILY { 7 pub DaysInterval: u16, 8 } 9 impl DAILY {} 10 impl ::std::default::Default for DAILY { default() -> Self11 fn default() -> Self { 12 unsafe { ::std::mem::zeroed() } 13 } 14 } 15 impl ::std::fmt::Debug for DAILY { fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result16 fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result { 17 fmt.debug_struct("DAILY").field("DaysInterval", &self.DaysInterval).finish() 18 } 19 } 20 impl ::std::cmp::PartialEq for DAILY { eq(&self, other: &Self) -> bool21 fn eq(&self, other: &Self) -> bool { 22 self.DaysInterval == other.DaysInterval 23 } 24 } 25 impl ::std::cmp::Eq for DAILY {} 26 unsafe impl ::windows::runtime::Abi for DAILY { 27 type Abi = Self; 28 type DefaultType = Self; 29 } 30 #[repr(transparent)] 31 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 32 pub struct IAction(::windows::runtime::IUnknown); 33 impl IAction { 34 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>35 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 36 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 37 } 38 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>39 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 40 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 41 } Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()>42 pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()> { 43 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 44 } 45 } 46 unsafe impl ::windows::runtime::Interface for IAction { 47 type Vtable = IAction_abi; 48 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3135588759, 18609, 19646, [153, 101, 214, 190, 38, 62, 190, 164]); 49 } 50 impl ::std::convert::From<IAction> for ::windows::runtime::IUnknown { from(value: IAction) -> Self51 fn from(value: IAction) -> Self { 52 unsafe { ::std::mem::transmute(value) } 53 } 54 } 55 impl ::std::convert::From<&IAction> for ::windows::runtime::IUnknown { from(value: &IAction) -> Self56 fn from(value: &IAction) -> Self { 57 ::std::convert::From::from(::std::clone::Clone::clone(value)) 58 } 59 } 60 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>61 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 62 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 63 } 64 } 65 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>66 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 67 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 68 } 69 } 70 #[cfg(feature = "Win32_System_Ole_Automation")] 71 impl ::std::convert::From<IAction> for super::Ole::Automation::IDispatch { from(value: IAction) -> Self72 fn from(value: IAction) -> Self { 73 unsafe { ::std::mem::transmute(value) } 74 } 75 } 76 #[cfg(feature = "Win32_System_Ole_Automation")] 77 impl ::std::convert::From<&IAction> for super::Ole::Automation::IDispatch { from(value: &IAction) -> Self78 fn from(value: &IAction) -> Self { 79 ::std::convert::From::from(::std::clone::Clone::clone(value)) 80 } 81 } 82 #[cfg(feature = "Win32_System_Ole_Automation")] 83 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>84 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 85 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 86 } 87 } 88 #[cfg(feature = "Win32_System_Ole_Automation")] 89 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>90 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 91 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 92 } 93 } 94 #[repr(C)] 95 #[doc(hidden)] 96 pub struct IAction_abi( 97 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 98 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 99 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 100 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 101 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 102 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 103 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 104 #[cfg(not(feature = "Win32_Foundation"))] usize, 105 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 106 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 107 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 108 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 109 #[cfg(not(feature = "Win32_Foundation"))] usize, 110 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 111 #[cfg(not(feature = "Win32_Foundation"))] usize, 112 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::HRESULT, 113 ); 114 #[repr(transparent)] 115 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 116 pub struct IActionCollection(::windows::runtime::IUnknown); 117 impl IActionCollection { Count(&self, pcount: *mut i32) -> ::windows::runtime::Result<()>118 pub unsafe fn Count(&self, pcount: *mut i32) -> ::windows::runtime::Result<()> { 119 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcount)).ok() 120 } Item(&self, index: i32) -> ::windows::runtime::Result<IAction>121 pub unsafe fn Item(&self, index: i32) -> ::windows::runtime::Result<IAction> { 122 let mut result__: <IAction as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 123 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(index), &mut result__).from_abi::<IAction>(result__) 124 } _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown>125 pub unsafe fn _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 126 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 127 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 128 } 129 #[cfg(feature = "Win32_Foundation")] XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>130 pub unsafe fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 131 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptext)).ok() 132 } 133 #[cfg(feature = "Win32_Foundation")] SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()>134 pub unsafe fn SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()> { 135 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), text.into_param().abi()).ok() 136 } Create(&self, r#type: TASK_ACTION_TYPE) -> ::windows::runtime::Result<IAction>137 pub unsafe fn Create(&self, r#type: TASK_ACTION_TYPE) -> ::windows::runtime::Result<IAction> { 138 let mut result__: <IAction as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 139 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(r#type), &mut result__).from_abi::<IAction>(result__) 140 } 141 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Remove<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<()>142 pub unsafe fn Remove<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<()> { 143 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), index.into_param().abi()).ok() 144 } Clear(&self) -> ::windows::runtime::Result<()>145 pub unsafe fn Clear(&self) -> ::windows::runtime::Result<()> { 146 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self)).ok() 147 } 148 #[cfg(feature = "Win32_Foundation")] Context(&self, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>149 pub unsafe fn Context(&self, pcontext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 150 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcontext)).ok() 151 } 152 #[cfg(feature = "Win32_Foundation")] SetContext<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, context: Param0) -> ::windows::runtime::Result<()>153 pub unsafe fn SetContext<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, context: Param0) -> ::windows::runtime::Result<()> { 154 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), context.into_param().abi()).ok() 155 } 156 } 157 unsafe impl ::windows::runtime::Interface for IActionCollection { 158 type Vtable = IActionCollection_abi; 159 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(42077721, 31640, 20178, [178, 232, 253, 204, 206, 255, 97, 155]); 160 } 161 impl ::std::convert::From<IActionCollection> for ::windows::runtime::IUnknown { from(value: IActionCollection) -> Self162 fn from(value: IActionCollection) -> Self { 163 unsafe { ::std::mem::transmute(value) } 164 } 165 } 166 impl ::std::convert::From<&IActionCollection> for ::windows::runtime::IUnknown { from(value: &IActionCollection) -> Self167 fn from(value: &IActionCollection) -> Self { 168 ::std::convert::From::from(::std::clone::Clone::clone(value)) 169 } 170 } 171 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IActionCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>172 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 173 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 174 } 175 } 176 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IActionCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>177 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 178 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 179 } 180 } 181 #[cfg(feature = "Win32_System_Ole_Automation")] 182 impl ::std::convert::From<IActionCollection> for super::Ole::Automation::IDispatch { from(value: IActionCollection) -> Self183 fn from(value: IActionCollection) -> Self { 184 unsafe { ::std::mem::transmute(value) } 185 } 186 } 187 #[cfg(feature = "Win32_System_Ole_Automation")] 188 impl ::std::convert::From<&IActionCollection> for super::Ole::Automation::IDispatch { from(value: &IActionCollection) -> Self189 fn from(value: &IActionCollection) -> Self { 190 ::std::convert::From::from(::std::clone::Clone::clone(value)) 191 } 192 } 193 #[cfg(feature = "Win32_System_Ole_Automation")] 194 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IActionCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>195 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 196 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 197 } 198 } 199 #[cfg(feature = "Win32_System_Ole_Automation")] 200 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IActionCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>201 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 202 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 203 } 204 } 205 #[repr(C)] 206 #[doc(hidden)] 207 pub struct IActionCollection_abi( 208 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 209 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 210 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 211 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 212 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 213 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 214 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 215 #[cfg(not(feature = "Win32_Foundation"))] usize, 216 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 217 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 218 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 219 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcount: *mut i32) -> ::windows::runtime::HRESULT, 220 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: i32, ppaction: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 221 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenum: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 222 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptext: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 223 #[cfg(not(feature = "Win32_Foundation"))] usize, 224 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, text: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 225 #[cfg(not(feature = "Win32_Foundation"))] usize, 226 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, r#type: TASK_ACTION_TYPE, ppaction: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 227 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: ::std::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::runtime::HRESULT, 228 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 229 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 230 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcontext: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 231 #[cfg(not(feature = "Win32_Foundation"))] usize, 232 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, context: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 233 #[cfg(not(feature = "Win32_Foundation"))] usize, 234 ); 235 #[repr(transparent)] 236 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 237 pub struct IBootTrigger(::windows::runtime::IUnknown); 238 impl IBootTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>239 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 240 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 241 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 242 } 243 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>244 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 245 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 246 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 247 } 248 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>249 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 250 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 251 } 252 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>253 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 254 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 255 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>256 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 257 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 258 } 259 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>260 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 261 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 262 } 263 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>264 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 265 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 266 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>267 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 268 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 269 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 270 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>271 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 272 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 273 } 274 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>275 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 276 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 277 } 278 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>279 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 280 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 281 } 282 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>283 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 284 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 285 } 286 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>287 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 288 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 289 } 290 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>291 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 292 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 293 } 294 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>295 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 296 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 297 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>298 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 299 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 300 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>301 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 302 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 303 } 304 #[cfg(feature = "Win32_Foundation")] Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>305 pub unsafe fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 306 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdelay)).ok() 307 } 308 #[cfg(feature = "Win32_Foundation")] SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()>309 pub unsafe fn SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()> { 310 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), delay.into_param().abi()).ok() 311 } 312 } 313 unsafe impl ::windows::runtime::Interface for IBootTrigger { 314 type Vtable = IBootTrigger_abi; 315 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(714880474, 54103, 16884, [187, 193, 32, 122, 193, 177, 243, 203]); 316 } 317 impl ::std::convert::From<IBootTrigger> for ::windows::runtime::IUnknown { from(value: IBootTrigger) -> Self318 fn from(value: IBootTrigger) -> Self { 319 unsafe { ::std::mem::transmute(value) } 320 } 321 } 322 impl ::std::convert::From<&IBootTrigger> for ::windows::runtime::IUnknown { from(value: &IBootTrigger) -> Self323 fn from(value: &IBootTrigger) -> Self { 324 ::std::convert::From::from(::std::clone::Clone::clone(value)) 325 } 326 } 327 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IBootTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>328 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 329 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 330 } 331 } 332 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IBootTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>333 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 334 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 335 } 336 } 337 impl ::std::convert::From<IBootTrigger> for ITrigger { from(value: IBootTrigger) -> Self338 fn from(value: IBootTrigger) -> Self { 339 unsafe { ::std::mem::transmute(value) } 340 } 341 } 342 impl ::std::convert::From<&IBootTrigger> for ITrigger { from(value: &IBootTrigger) -> Self343 fn from(value: &IBootTrigger) -> Self { 344 ::std::convert::From::from(::std::clone::Clone::clone(value)) 345 } 346 } 347 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IBootTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>348 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 349 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 350 } 351 } 352 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IBootTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>353 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 354 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 355 } 356 } 357 #[cfg(feature = "Win32_System_Ole_Automation")] 358 impl ::std::convert::From<IBootTrigger> for super::Ole::Automation::IDispatch { from(value: IBootTrigger) -> Self359 fn from(value: IBootTrigger) -> Self { 360 unsafe { ::std::mem::transmute(value) } 361 } 362 } 363 #[cfg(feature = "Win32_System_Ole_Automation")] 364 impl ::std::convert::From<&IBootTrigger> for super::Ole::Automation::IDispatch { from(value: &IBootTrigger) -> Self365 fn from(value: &IBootTrigger) -> Self { 366 ::std::convert::From::from(::std::clone::Clone::clone(value)) 367 } 368 } 369 #[cfg(feature = "Win32_System_Ole_Automation")] 370 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IBootTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>371 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 372 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 373 } 374 } 375 #[cfg(feature = "Win32_System_Ole_Automation")] 376 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IBootTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>377 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 378 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 379 } 380 } 381 #[repr(C)] 382 #[doc(hidden)] 383 pub struct IBootTrigger_abi( 384 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 385 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 386 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 387 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 388 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 389 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 390 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 391 #[cfg(not(feature = "Win32_Foundation"))] usize, 392 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 393 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 394 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 395 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 396 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 397 #[cfg(not(feature = "Win32_Foundation"))] usize, 398 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 399 #[cfg(not(feature = "Win32_Foundation"))] usize, 400 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 401 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 402 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 403 #[cfg(not(feature = "Win32_Foundation"))] usize, 404 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 405 #[cfg(not(feature = "Win32_Foundation"))] usize, 406 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 407 #[cfg(not(feature = "Win32_Foundation"))] usize, 408 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 409 #[cfg(not(feature = "Win32_Foundation"))] usize, 410 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 411 #[cfg(not(feature = "Win32_Foundation"))] usize, 412 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 413 #[cfg(not(feature = "Win32_Foundation"))] usize, 414 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 415 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 416 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 417 #[cfg(not(feature = "Win32_Foundation"))] usize, 418 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, delay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 419 #[cfg(not(feature = "Win32_Foundation"))] usize, 420 ); 421 #[repr(transparent)] 422 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 423 pub struct IComHandlerAction(::windows::runtime::IUnknown); 424 impl IComHandlerAction { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>425 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 426 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 427 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 428 } 429 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>430 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 431 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 432 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 433 } 434 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>435 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 436 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 437 } 438 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>439 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 440 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 441 } 442 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>443 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 444 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 445 } 446 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>447 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 448 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 449 } Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()>450 pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()> { 451 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 452 } 453 #[cfg(feature = "Win32_Foundation")] ClassId(&self, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>454 pub unsafe fn ClassId(&self, pclsid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 455 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(pclsid)).ok() 456 } 457 #[cfg(feature = "Win32_Foundation")] SetClassId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, clsid: Param0) -> ::windows::runtime::Result<()>458 pub unsafe fn SetClassId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, clsid: Param0) -> ::windows::runtime::Result<()> { 459 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), clsid.into_param().abi()).ok() 460 } 461 #[cfg(feature = "Win32_Foundation")] Data(&self, pdata: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>462 pub unsafe fn Data(&self, pdata: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 463 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdata)).ok() 464 } 465 #[cfg(feature = "Win32_Foundation")] SetData<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, data: Param0) -> ::windows::runtime::Result<()>466 pub unsafe fn SetData<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, data: Param0) -> ::windows::runtime::Result<()> { 467 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), data.into_param().abi()).ok() 468 } 469 } 470 unsafe impl ::windows::runtime::Interface for IComHandlerAction { 471 type Vtable = IComHandlerAction_abi; 472 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1831850578, 30149, 20326, [144, 186, 42, 125, 140, 195, 3, 159]); 473 } 474 impl ::std::convert::From<IComHandlerAction> for ::windows::runtime::IUnknown { from(value: IComHandlerAction) -> Self475 fn from(value: IComHandlerAction) -> Self { 476 unsafe { ::std::mem::transmute(value) } 477 } 478 } 479 impl ::std::convert::From<&IComHandlerAction> for ::windows::runtime::IUnknown { from(value: &IComHandlerAction) -> Self480 fn from(value: &IComHandlerAction) -> Self { 481 ::std::convert::From::from(::std::clone::Clone::clone(value)) 482 } 483 } 484 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IComHandlerAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>485 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 486 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 487 } 488 } 489 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IComHandlerAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>490 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 491 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 492 } 493 } 494 impl ::std::convert::From<IComHandlerAction> for IAction { from(value: IComHandlerAction) -> Self495 fn from(value: IComHandlerAction) -> Self { 496 unsafe { ::std::mem::transmute(value) } 497 } 498 } 499 impl ::std::convert::From<&IComHandlerAction> for IAction { from(value: &IComHandlerAction) -> Self500 fn from(value: &IComHandlerAction) -> Self { 501 ::std::convert::From::from(::std::clone::Clone::clone(value)) 502 } 503 } 504 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for IComHandlerAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>505 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 506 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(self)) 507 } 508 } 509 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for &IComHandlerAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>510 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 511 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(::std::clone::Clone::clone(self))) 512 } 513 } 514 #[cfg(feature = "Win32_System_Ole_Automation")] 515 impl ::std::convert::From<IComHandlerAction> for super::Ole::Automation::IDispatch { from(value: IComHandlerAction) -> Self516 fn from(value: IComHandlerAction) -> Self { 517 unsafe { ::std::mem::transmute(value) } 518 } 519 } 520 #[cfg(feature = "Win32_System_Ole_Automation")] 521 impl ::std::convert::From<&IComHandlerAction> for super::Ole::Automation::IDispatch { from(value: &IComHandlerAction) -> Self522 fn from(value: &IComHandlerAction) -> Self { 523 ::std::convert::From::from(::std::clone::Clone::clone(value)) 524 } 525 } 526 #[cfg(feature = "Win32_System_Ole_Automation")] 527 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IComHandlerAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>528 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 529 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 530 } 531 } 532 #[cfg(feature = "Win32_System_Ole_Automation")] 533 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IComHandlerAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>534 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 535 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 536 } 537 } 538 #[repr(C)] 539 #[doc(hidden)] 540 pub struct IComHandlerAction_abi( 541 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 542 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 543 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 544 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 545 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 546 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 547 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 548 #[cfg(not(feature = "Win32_Foundation"))] usize, 549 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 550 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 551 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 552 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 553 #[cfg(not(feature = "Win32_Foundation"))] usize, 554 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 555 #[cfg(not(feature = "Win32_Foundation"))] usize, 556 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::HRESULT, 557 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pclsid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 558 #[cfg(not(feature = "Win32_Foundation"))] usize, 559 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, clsid: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 560 #[cfg(not(feature = "Win32_Foundation"))] usize, 561 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdata: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 562 #[cfg(not(feature = "Win32_Foundation"))] usize, 563 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, data: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 564 #[cfg(not(feature = "Win32_Foundation"))] usize, 565 ); 566 #[repr(transparent)] 567 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 568 pub struct IDailyTrigger(::windows::runtime::IUnknown); 569 impl IDailyTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>570 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 571 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 572 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 573 } 574 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>575 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 576 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 577 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 578 } 579 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>580 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 581 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 582 } 583 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>584 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 585 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 586 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>587 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 588 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 589 } 590 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>591 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 592 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 593 } 594 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>595 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 596 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 597 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>598 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 599 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 600 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 601 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>602 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 603 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 604 } 605 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>606 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 607 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 608 } 609 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>610 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 611 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 612 } 613 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>614 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 615 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 616 } 617 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>618 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 619 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 620 } 621 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>622 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 623 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 624 } 625 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>626 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 627 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 628 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>629 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 630 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 631 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>632 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 633 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 634 } DaysInterval(&self, pdays: *mut i16) -> ::windows::runtime::Result<()>635 pub unsafe fn DaysInterval(&self, pdays: *mut i16) -> ::windows::runtime::Result<()> { 636 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdays)).ok() 637 } SetDaysInterval(&self, days: i16) -> ::windows::runtime::Result<()>638 pub unsafe fn SetDaysInterval(&self, days: i16) -> ::windows::runtime::Result<()> { 639 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(days)).ok() 640 } 641 #[cfg(feature = "Win32_Foundation")] RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>642 pub unsafe fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 643 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(prandomdelay)).ok() 644 } 645 #[cfg(feature = "Win32_Foundation")] SetRandomDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, randomdelay: Param0) -> ::windows::runtime::Result<()>646 pub unsafe fn SetRandomDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, randomdelay: Param0) -> ::windows::runtime::Result<()> { 647 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), randomdelay.into_param().abi()).ok() 648 } 649 } 650 unsafe impl ::windows::runtime::Interface for IDailyTrigger { 651 type Vtable = IDailyTrigger_abi; 652 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(309091544, 45704, 16853, [141, 191, 228, 145, 68, 106, 220, 92]); 653 } 654 impl ::std::convert::From<IDailyTrigger> for ::windows::runtime::IUnknown { from(value: IDailyTrigger) -> Self655 fn from(value: IDailyTrigger) -> Self { 656 unsafe { ::std::mem::transmute(value) } 657 } 658 } 659 impl ::std::convert::From<&IDailyTrigger> for ::windows::runtime::IUnknown { from(value: &IDailyTrigger) -> Self660 fn from(value: &IDailyTrigger) -> Self { 661 ::std::convert::From::from(::std::clone::Clone::clone(value)) 662 } 663 } 664 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IDailyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>665 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 666 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 667 } 668 } 669 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IDailyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>670 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 671 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 672 } 673 } 674 impl ::std::convert::From<IDailyTrigger> for ITrigger { from(value: IDailyTrigger) -> Self675 fn from(value: IDailyTrigger) -> Self { 676 unsafe { ::std::mem::transmute(value) } 677 } 678 } 679 impl ::std::convert::From<&IDailyTrigger> for ITrigger { from(value: &IDailyTrigger) -> Self680 fn from(value: &IDailyTrigger) -> Self { 681 ::std::convert::From::from(::std::clone::Clone::clone(value)) 682 } 683 } 684 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IDailyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>685 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 686 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 687 } 688 } 689 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IDailyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>690 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 691 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 692 } 693 } 694 #[cfg(feature = "Win32_System_Ole_Automation")] 695 impl ::std::convert::From<IDailyTrigger> for super::Ole::Automation::IDispatch { from(value: IDailyTrigger) -> Self696 fn from(value: IDailyTrigger) -> Self { 697 unsafe { ::std::mem::transmute(value) } 698 } 699 } 700 #[cfg(feature = "Win32_System_Ole_Automation")] 701 impl ::std::convert::From<&IDailyTrigger> for super::Ole::Automation::IDispatch { from(value: &IDailyTrigger) -> Self702 fn from(value: &IDailyTrigger) -> Self { 703 ::std::convert::From::from(::std::clone::Clone::clone(value)) 704 } 705 } 706 #[cfg(feature = "Win32_System_Ole_Automation")] 707 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IDailyTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>708 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 709 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 710 } 711 } 712 #[cfg(feature = "Win32_System_Ole_Automation")] 713 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IDailyTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>714 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 715 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 716 } 717 } 718 #[repr(C)] 719 #[doc(hidden)] 720 pub struct IDailyTrigger_abi( 721 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 722 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 723 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 724 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 725 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 726 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 727 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 728 #[cfg(not(feature = "Win32_Foundation"))] usize, 729 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 730 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 731 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 732 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 733 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 734 #[cfg(not(feature = "Win32_Foundation"))] usize, 735 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 736 #[cfg(not(feature = "Win32_Foundation"))] usize, 737 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 738 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 739 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 740 #[cfg(not(feature = "Win32_Foundation"))] usize, 741 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 742 #[cfg(not(feature = "Win32_Foundation"))] usize, 743 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 744 #[cfg(not(feature = "Win32_Foundation"))] usize, 745 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 746 #[cfg(not(feature = "Win32_Foundation"))] usize, 747 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 748 #[cfg(not(feature = "Win32_Foundation"))] usize, 749 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 750 #[cfg(not(feature = "Win32_Foundation"))] usize, 751 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 752 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 753 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdays: *mut i16) -> ::windows::runtime::HRESULT, 754 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, days: i16) -> ::windows::runtime::HRESULT, 755 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prandomdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 756 #[cfg(not(feature = "Win32_Foundation"))] usize, 757 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, randomdelay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 758 #[cfg(not(feature = "Win32_Foundation"))] usize, 759 ); 760 #[repr(transparent)] 761 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 762 pub struct IEmailAction(::windows::runtime::IUnknown); 763 impl IEmailAction { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>764 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 765 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 766 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 767 } 768 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>769 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 770 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 771 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 772 } 773 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>774 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 775 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 776 } 777 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>778 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 779 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 780 } 781 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>782 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 783 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 784 } 785 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>786 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 787 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 788 } Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()>789 pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()> { 790 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 791 } 792 #[cfg(feature = "Win32_Foundation")] Server(&self, pserver: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>793 pub unsafe fn Server(&self, pserver: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 794 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(pserver)).ok() 795 } 796 #[cfg(feature = "Win32_Foundation")] SetServer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, server: Param0) -> ::windows::runtime::Result<()>797 pub unsafe fn SetServer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, server: Param0) -> ::windows::runtime::Result<()> { 798 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), server.into_param().abi()).ok() 799 } 800 #[cfg(feature = "Win32_Foundation")] Subject(&self, psubject: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>801 pub unsafe fn Subject(&self, psubject: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 802 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(psubject)).ok() 803 } 804 #[cfg(feature = "Win32_Foundation")] SetSubject<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, subject: Param0) -> ::windows::runtime::Result<()>805 pub unsafe fn SetSubject<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, subject: Param0) -> ::windows::runtime::Result<()> { 806 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), subject.into_param().abi()).ok() 807 } 808 #[cfg(feature = "Win32_Foundation")] To(&self, pto: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>809 pub unsafe fn To(&self, pto: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 810 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pto)).ok() 811 } 812 #[cfg(feature = "Win32_Foundation")] SetTo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, to: Param0) -> ::windows::runtime::Result<()>813 pub unsafe fn SetTo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, to: Param0) -> ::windows::runtime::Result<()> { 814 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), to.into_param().abi()).ok() 815 } 816 #[cfg(feature = "Win32_Foundation")] Cc(&self, pcc: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>817 pub unsafe fn Cc(&self, pcc: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 818 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcc)).ok() 819 } 820 #[cfg(feature = "Win32_Foundation")] SetCc<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, cc: Param0) -> ::windows::runtime::Result<()>821 pub unsafe fn SetCc<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, cc: Param0) -> ::windows::runtime::Result<()> { 822 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), cc.into_param().abi()).ok() 823 } 824 #[cfg(feature = "Win32_Foundation")] Bcc(&self, pbcc: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>825 pub unsafe fn Bcc(&self, pbcc: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 826 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(pbcc)).ok() 827 } 828 #[cfg(feature = "Win32_Foundation")] SetBcc<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bcc: Param0) -> ::windows::runtime::Result<()>829 pub unsafe fn SetBcc<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, bcc: Param0) -> ::windows::runtime::Result<()> { 830 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), bcc.into_param().abi()).ok() 831 } 832 #[cfg(feature = "Win32_Foundation")] ReplyTo(&self, preplyto: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>833 pub unsafe fn ReplyTo(&self, preplyto: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 834 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(preplyto)).ok() 835 } 836 #[cfg(feature = "Win32_Foundation")] SetReplyTo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, replyto: Param0) -> ::windows::runtime::Result<()>837 pub unsafe fn SetReplyTo<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, replyto: Param0) -> ::windows::runtime::Result<()> { 838 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), replyto.into_param().abi()).ok() 839 } 840 #[cfg(feature = "Win32_Foundation")] From(&self, pfrom: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>841 pub unsafe fn From(&self, pfrom: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 842 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(pfrom)).ok() 843 } 844 #[cfg(feature = "Win32_Foundation")] SetFrom<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, from: Param0) -> ::windows::runtime::Result<()>845 pub unsafe fn SetFrom<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, from: Param0) -> ::windows::runtime::Result<()> { 846 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), from.into_param().abi()).ok() 847 } HeaderFields(&self) -> ::windows::runtime::Result<ITaskNamedValueCollection>848 pub unsafe fn HeaderFields(&self) -> ::windows::runtime::Result<ITaskNamedValueCollection> { 849 let mut result__: <ITaskNamedValueCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 850 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), &mut result__).from_abi::<ITaskNamedValueCollection>(result__) 851 } SetHeaderFields<'a, Param0: ::windows::runtime::IntoParam<'a, ITaskNamedValueCollection>>(&self, pheaderfields: Param0) -> ::windows::runtime::Result<()>852 pub unsafe fn SetHeaderFields<'a, Param0: ::windows::runtime::IntoParam<'a, ITaskNamedValueCollection>>(&self, pheaderfields: Param0) -> ::windows::runtime::Result<()> { 853 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), pheaderfields.into_param().abi()).ok() 854 } 855 #[cfg(feature = "Win32_Foundation")] Body(&self, pbody: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>856 pub unsafe fn Body(&self, pbody: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 857 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(pbody)).ok() 858 } 859 #[cfg(feature = "Win32_Foundation")] SetBody<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, body: Param0) -> ::windows::runtime::Result<()>860 pub unsafe fn SetBody<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, body: Param0) -> ::windows::runtime::Result<()> { 861 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), body.into_param().abi()).ok() 862 } 863 #[cfg(feature = "Win32_System_Com")] Attachments(&self, pattachements: *mut *mut super::Com::SAFEARRAY) -> ::windows::runtime::Result<()>864 pub unsafe fn Attachments(&self, pattachements: *mut *mut super::Com::SAFEARRAY) -> ::windows::runtime::Result<()> { 865 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), ::std::mem::transmute(pattachements)).ok() 866 } 867 #[cfg(feature = "Win32_System_Com")] SetAttachments(&self, pattachements: *mut super::Com::SAFEARRAY) -> ::windows::runtime::Result<()>868 pub unsafe fn SetAttachments(&self, pattachements: *mut super::Com::SAFEARRAY) -> ::windows::runtime::Result<()> { 869 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), ::std::mem::transmute(pattachements)).ok() 870 } 871 } 872 unsafe impl ::windows::runtime::Interface for IEmailAction { 873 type Vtable = IEmailAction_abi; 874 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(284568676, 32278, 17172, [160, 194, 12, 54, 131, 249, 157, 64]); 875 } 876 impl ::std::convert::From<IEmailAction> for ::windows::runtime::IUnknown { from(value: IEmailAction) -> Self877 fn from(value: IEmailAction) -> Self { 878 unsafe { ::std::mem::transmute(value) } 879 } 880 } 881 impl ::std::convert::From<&IEmailAction> for ::windows::runtime::IUnknown { from(value: &IEmailAction) -> Self882 fn from(value: &IEmailAction) -> Self { 883 ::std::convert::From::from(::std::clone::Clone::clone(value)) 884 } 885 } 886 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IEmailAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>887 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 888 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 889 } 890 } 891 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IEmailAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>892 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 893 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 894 } 895 } 896 impl ::std::convert::From<IEmailAction> for IAction { from(value: IEmailAction) -> Self897 fn from(value: IEmailAction) -> Self { 898 unsafe { ::std::mem::transmute(value) } 899 } 900 } 901 impl ::std::convert::From<&IEmailAction> for IAction { from(value: &IEmailAction) -> Self902 fn from(value: &IEmailAction) -> Self { 903 ::std::convert::From::from(::std::clone::Clone::clone(value)) 904 } 905 } 906 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for IEmailAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>907 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 908 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(self)) 909 } 910 } 911 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for &IEmailAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>912 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 913 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(::std::clone::Clone::clone(self))) 914 } 915 } 916 #[cfg(feature = "Win32_System_Ole_Automation")] 917 impl ::std::convert::From<IEmailAction> for super::Ole::Automation::IDispatch { from(value: IEmailAction) -> Self918 fn from(value: IEmailAction) -> Self { 919 unsafe { ::std::mem::transmute(value) } 920 } 921 } 922 #[cfg(feature = "Win32_System_Ole_Automation")] 923 impl ::std::convert::From<&IEmailAction> for super::Ole::Automation::IDispatch { from(value: &IEmailAction) -> Self924 fn from(value: &IEmailAction) -> Self { 925 ::std::convert::From::from(::std::clone::Clone::clone(value)) 926 } 927 } 928 #[cfg(feature = "Win32_System_Ole_Automation")] 929 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IEmailAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>930 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 931 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 932 } 933 } 934 #[cfg(feature = "Win32_System_Ole_Automation")] 935 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IEmailAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>936 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 937 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 938 } 939 } 940 #[repr(C)] 941 #[doc(hidden)] 942 pub struct IEmailAction_abi( 943 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 944 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 945 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 946 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 947 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 948 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 949 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 950 #[cfg(not(feature = "Win32_Foundation"))] usize, 951 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 952 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 953 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 954 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 955 #[cfg(not(feature = "Win32_Foundation"))] usize, 956 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 957 #[cfg(not(feature = "Win32_Foundation"))] usize, 958 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::HRESULT, 959 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pserver: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 960 #[cfg(not(feature = "Win32_Foundation"))] usize, 961 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, server: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 962 #[cfg(not(feature = "Win32_Foundation"))] usize, 963 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, psubject: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 964 #[cfg(not(feature = "Win32_Foundation"))] usize, 965 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, subject: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 966 #[cfg(not(feature = "Win32_Foundation"))] usize, 967 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pto: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 968 #[cfg(not(feature = "Win32_Foundation"))] usize, 969 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, to: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 970 #[cfg(not(feature = "Win32_Foundation"))] usize, 971 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcc: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 972 #[cfg(not(feature = "Win32_Foundation"))] usize, 973 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, cc: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 974 #[cfg(not(feature = "Win32_Foundation"))] usize, 975 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbcc: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 976 #[cfg(not(feature = "Win32_Foundation"))] usize, 977 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, bcc: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 978 #[cfg(not(feature = "Win32_Foundation"))] usize, 979 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, preplyto: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 980 #[cfg(not(feature = "Win32_Foundation"))] usize, 981 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, replyto: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 982 #[cfg(not(feature = "Win32_Foundation"))] usize, 983 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pfrom: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 984 #[cfg(not(feature = "Win32_Foundation"))] usize, 985 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, from: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 986 #[cfg(not(feature = "Win32_Foundation"))] usize, 987 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppheaderfields: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 988 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pheaderfields: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 989 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pbody: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 990 #[cfg(not(feature = "Win32_Foundation"))] usize, 991 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, body: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 992 #[cfg(not(feature = "Win32_Foundation"))] usize, 993 #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pattachements: *mut *mut super::Com::SAFEARRAY) -> ::windows::runtime::HRESULT, 994 #[cfg(not(feature = "Win32_System_Com"))] usize, 995 #[cfg(feature = "Win32_System_Com")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pattachements: *mut super::Com::SAFEARRAY) -> ::windows::runtime::HRESULT, 996 #[cfg(not(feature = "Win32_System_Com"))] usize, 997 ); 998 #[repr(transparent)] 999 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1000 pub struct IEnumWorkItems(::windows::runtime::IUnknown); 1001 impl IEnumWorkItems { 1002 #[cfg(feature = "Win32_Foundation")] Next(&self, celt: u32, rgpwsznames: *mut *mut super::super::Foundation::PWSTR, pceltfetched: *mut u32) -> ::windows::runtime::Result<()>1003 pub unsafe fn Next(&self, celt: u32, rgpwsznames: *mut *mut super::super::Foundation::PWSTR, pceltfetched: *mut u32) -> ::windows::runtime::Result<()> { 1004 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), ::std::mem::transmute(celt), ::std::mem::transmute(rgpwsznames), ::std::mem::transmute(pceltfetched)).ok() 1005 } Skip(&self, celt: u32) -> ::windows::runtime::Result<()>1006 pub unsafe fn Skip(&self, celt: u32) -> ::windows::runtime::Result<()> { 1007 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(celt)).ok() 1008 } Reset(&self) -> ::windows::runtime::Result<()>1009 pub unsafe fn Reset(&self) -> ::windows::runtime::Result<()> { 1010 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self)).ok() 1011 } Clone(&self) -> ::windows::runtime::Result<IEnumWorkItems>1012 pub unsafe fn Clone(&self) -> ::windows::runtime::Result<IEnumWorkItems> { 1013 let mut result__: <IEnumWorkItems as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1014 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IEnumWorkItems>(result__) 1015 } 1016 } 1017 unsafe impl ::windows::runtime::Interface for IEnumWorkItems { 1018 type Vtable = IEnumWorkItems_abi; 1019 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(344708392, 41643, 4558, [177, 31, 0, 170, 0, 83, 5, 3]); 1020 } 1021 impl ::std::convert::From<IEnumWorkItems> for ::windows::runtime::IUnknown { from(value: IEnumWorkItems) -> Self1022 fn from(value: IEnumWorkItems) -> Self { 1023 unsafe { ::std::mem::transmute(value) } 1024 } 1025 } 1026 impl ::std::convert::From<&IEnumWorkItems> for ::windows::runtime::IUnknown { from(value: &IEnumWorkItems) -> Self1027 fn from(value: &IEnumWorkItems) -> Self { 1028 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1029 } 1030 } 1031 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IEnumWorkItems { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1032 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1033 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1034 } 1035 } 1036 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IEnumWorkItems { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1037 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1038 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1039 } 1040 } 1041 #[repr(C)] 1042 #[doc(hidden)] 1043 pub struct IEnumWorkItems_abi( 1044 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1045 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1046 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1047 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, celt: u32, rgpwsznames: *mut *mut super::super::Foundation::PWSTR, pceltfetched: *mut u32) -> ::windows::runtime::HRESULT, 1048 #[cfg(not(feature = "Win32_Foundation"))] usize, 1049 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, celt: u32) -> ::windows::runtime::HRESULT, 1050 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1051 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenumworkitems: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1052 ); 1053 #[repr(transparent)] 1054 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1055 pub struct IEventTrigger(::windows::runtime::IUnknown); 1056 impl IEventTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1057 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 1058 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1059 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 1060 } 1061 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1062 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 1063 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1064 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 1065 } 1066 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1067 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 1068 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 1069 } 1070 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1071 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 1072 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 1073 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>1074 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 1075 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 1076 } 1077 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1078 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1079 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 1080 } 1081 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>1082 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 1083 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 1084 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>1085 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 1086 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1087 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 1088 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>1089 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 1090 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 1091 } 1092 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1093 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1094 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 1095 } 1096 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>1097 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 1098 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 1099 } 1100 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1101 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1102 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 1103 } 1104 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>1105 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 1106 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 1107 } 1108 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1109 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1110 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 1111 } 1112 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>1113 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 1114 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 1115 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>1116 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 1117 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 1118 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>1119 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 1120 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 1121 } 1122 #[cfg(feature = "Win32_Foundation")] Subscription(&self, pquery: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1123 pub unsafe fn Subscription(&self, pquery: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1124 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pquery)).ok() 1125 } 1126 #[cfg(feature = "Win32_Foundation")] SetSubscription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, query: Param0) -> ::windows::runtime::Result<()>1127 pub unsafe fn SetSubscription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, query: Param0) -> ::windows::runtime::Result<()> { 1128 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), query.into_param().abi()).ok() 1129 } 1130 #[cfg(feature = "Win32_Foundation")] Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1131 pub unsafe fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1132 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdelay)).ok() 1133 } 1134 #[cfg(feature = "Win32_Foundation")] SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()>1135 pub unsafe fn SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()> { 1136 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), delay.into_param().abi()).ok() 1137 } ValueQueries(&self) -> ::windows::runtime::Result<ITaskNamedValueCollection>1138 pub unsafe fn ValueQueries(&self) -> ::windows::runtime::Result<ITaskNamedValueCollection> { 1139 let mut result__: <ITaskNamedValueCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1140 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), &mut result__).from_abi::<ITaskNamedValueCollection>(result__) 1141 } SetValueQueries<'a, Param0: ::windows::runtime::IntoParam<'a, ITaskNamedValueCollection>>(&self, pnamedxpaths: Param0) -> ::windows::runtime::Result<()>1142 pub unsafe fn SetValueQueries<'a, Param0: ::windows::runtime::IntoParam<'a, ITaskNamedValueCollection>>(&self, pnamedxpaths: Param0) -> ::windows::runtime::Result<()> { 1143 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), pnamedxpaths.into_param().abi()).ok() 1144 } 1145 } 1146 unsafe impl ::windows::runtime::Interface for IEventTrigger { 1147 type Vtable = IEventTrigger_abi; 1148 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3562733927, 38483, 20207, [185, 79, 7, 50, 202, 122, 242, 81]); 1149 } 1150 impl ::std::convert::From<IEventTrigger> for ::windows::runtime::IUnknown { from(value: IEventTrigger) -> Self1151 fn from(value: IEventTrigger) -> Self { 1152 unsafe { ::std::mem::transmute(value) } 1153 } 1154 } 1155 impl ::std::convert::From<&IEventTrigger> for ::windows::runtime::IUnknown { from(value: &IEventTrigger) -> Self1156 fn from(value: &IEventTrigger) -> Self { 1157 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1158 } 1159 } 1160 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IEventTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1161 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1162 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1163 } 1164 } 1165 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IEventTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1166 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1167 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1168 } 1169 } 1170 impl ::std::convert::From<IEventTrigger> for ITrigger { from(value: IEventTrigger) -> Self1171 fn from(value: IEventTrigger) -> Self { 1172 unsafe { ::std::mem::transmute(value) } 1173 } 1174 } 1175 impl ::std::convert::From<&IEventTrigger> for ITrigger { from(value: &IEventTrigger) -> Self1176 fn from(value: &IEventTrigger) -> Self { 1177 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1178 } 1179 } 1180 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IEventTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>1181 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 1182 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 1183 } 1184 } 1185 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IEventTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>1186 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 1187 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 1188 } 1189 } 1190 #[cfg(feature = "Win32_System_Ole_Automation")] 1191 impl ::std::convert::From<IEventTrigger> for super::Ole::Automation::IDispatch { from(value: IEventTrigger) -> Self1192 fn from(value: IEventTrigger) -> Self { 1193 unsafe { ::std::mem::transmute(value) } 1194 } 1195 } 1196 #[cfg(feature = "Win32_System_Ole_Automation")] 1197 impl ::std::convert::From<&IEventTrigger> for super::Ole::Automation::IDispatch { from(value: &IEventTrigger) -> Self1198 fn from(value: &IEventTrigger) -> Self { 1199 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1200 } 1201 } 1202 #[cfg(feature = "Win32_System_Ole_Automation")] 1203 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IEventTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1204 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1205 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 1206 } 1207 } 1208 #[cfg(feature = "Win32_System_Ole_Automation")] 1209 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IEventTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1210 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1211 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 1212 } 1213 } 1214 #[repr(C)] 1215 #[doc(hidden)] 1216 pub struct IEventTrigger_abi( 1217 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1218 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1219 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1220 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 1221 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1222 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 1223 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 1224 #[cfg(not(feature = "Win32_Foundation"))] usize, 1225 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 1226 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 1227 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 1228 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 1229 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1230 #[cfg(not(feature = "Win32_Foundation"))] usize, 1231 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1232 #[cfg(not(feature = "Win32_Foundation"))] usize, 1233 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1234 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1235 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1236 #[cfg(not(feature = "Win32_Foundation"))] usize, 1237 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1238 #[cfg(not(feature = "Win32_Foundation"))] usize, 1239 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1240 #[cfg(not(feature = "Win32_Foundation"))] usize, 1241 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1242 #[cfg(not(feature = "Win32_Foundation"))] usize, 1243 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1244 #[cfg(not(feature = "Win32_Foundation"))] usize, 1245 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1246 #[cfg(not(feature = "Win32_Foundation"))] usize, 1247 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 1248 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 1249 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pquery: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1250 #[cfg(not(feature = "Win32_Foundation"))] usize, 1251 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, query: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1252 #[cfg(not(feature = "Win32_Foundation"))] usize, 1253 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1254 #[cfg(not(feature = "Win32_Foundation"))] usize, 1255 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, delay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1256 #[cfg(not(feature = "Win32_Foundation"))] usize, 1257 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppnamedxpaths: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1258 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pnamedxpaths: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1259 ); 1260 #[repr(transparent)] 1261 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1262 pub struct IExecAction(::windows::runtime::IUnknown); 1263 impl IExecAction { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1264 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 1265 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1266 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 1267 } 1268 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1269 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 1270 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1271 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 1272 } 1273 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1274 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 1275 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 1276 } 1277 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1278 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 1279 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 1280 } 1281 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1282 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1283 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 1284 } 1285 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>1286 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 1287 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 1288 } Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()>1289 pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()> { 1290 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 1291 } 1292 #[cfg(feature = "Win32_Foundation")] Path(&self, ppath: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1293 pub unsafe fn Path(&self, ppath: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1294 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(ppath)).ok() 1295 } 1296 #[cfg(feature = "Win32_Foundation")] SetPath<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<()>1297 pub unsafe fn SetPath<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<()> { 1298 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), path.into_param().abi()).ok() 1299 } 1300 #[cfg(feature = "Win32_Foundation")] Arguments(&self, pargument: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1301 pub unsafe fn Arguments(&self, pargument: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1302 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(pargument)).ok() 1303 } 1304 #[cfg(feature = "Win32_Foundation")] SetArguments<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, argument: Param0) -> ::windows::runtime::Result<()>1305 pub unsafe fn SetArguments<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, argument: Param0) -> ::windows::runtime::Result<()> { 1306 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), argument.into_param().abi()).ok() 1307 } 1308 #[cfg(feature = "Win32_Foundation")] WorkingDirectory(&self, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1309 pub unsafe fn WorkingDirectory(&self, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1310 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pworkingdirectory)).ok() 1311 } 1312 #[cfg(feature = "Win32_Foundation")] SetWorkingDirectory<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, workingdirectory: Param0) -> ::windows::runtime::Result<()>1313 pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, workingdirectory: Param0) -> ::windows::runtime::Result<()> { 1314 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), workingdirectory.into_param().abi()).ok() 1315 } 1316 } 1317 unsafe impl ::windows::runtime::Interface for IExecAction { 1318 type Vtable = IExecAction_abi; 1319 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1279091277, 64875, 18851, [185, 183, 9, 203, 60, 211, 240, 71]); 1320 } 1321 impl ::std::convert::From<IExecAction> for ::windows::runtime::IUnknown { from(value: IExecAction) -> Self1322 fn from(value: IExecAction) -> Self { 1323 unsafe { ::std::mem::transmute(value) } 1324 } 1325 } 1326 impl ::std::convert::From<&IExecAction> for ::windows::runtime::IUnknown { from(value: &IExecAction) -> Self1327 fn from(value: &IExecAction) -> Self { 1328 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1329 } 1330 } 1331 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IExecAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1332 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1333 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1334 } 1335 } 1336 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IExecAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1337 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1338 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1339 } 1340 } 1341 impl ::std::convert::From<IExecAction> for IAction { from(value: IExecAction) -> Self1342 fn from(value: IExecAction) -> Self { 1343 unsafe { ::std::mem::transmute(value) } 1344 } 1345 } 1346 impl ::std::convert::From<&IExecAction> for IAction { from(value: &IExecAction) -> Self1347 fn from(value: &IExecAction) -> Self { 1348 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1349 } 1350 } 1351 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for IExecAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>1352 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 1353 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(self)) 1354 } 1355 } 1356 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for &IExecAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>1357 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 1358 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(::std::clone::Clone::clone(self))) 1359 } 1360 } 1361 #[cfg(feature = "Win32_System_Ole_Automation")] 1362 impl ::std::convert::From<IExecAction> for super::Ole::Automation::IDispatch { from(value: IExecAction) -> Self1363 fn from(value: IExecAction) -> Self { 1364 unsafe { ::std::mem::transmute(value) } 1365 } 1366 } 1367 #[cfg(feature = "Win32_System_Ole_Automation")] 1368 impl ::std::convert::From<&IExecAction> for super::Ole::Automation::IDispatch { from(value: &IExecAction) -> Self1369 fn from(value: &IExecAction) -> Self { 1370 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1371 } 1372 } 1373 #[cfg(feature = "Win32_System_Ole_Automation")] 1374 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IExecAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1375 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1376 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 1377 } 1378 } 1379 #[cfg(feature = "Win32_System_Ole_Automation")] 1380 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IExecAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1381 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1382 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 1383 } 1384 } 1385 #[repr(C)] 1386 #[doc(hidden)] 1387 pub struct IExecAction_abi( 1388 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1389 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1390 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1391 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 1392 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1393 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 1394 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 1395 #[cfg(not(feature = "Win32_Foundation"))] usize, 1396 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 1397 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 1398 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 1399 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1400 #[cfg(not(feature = "Win32_Foundation"))] usize, 1401 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1402 #[cfg(not(feature = "Win32_Foundation"))] usize, 1403 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::HRESULT, 1404 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppath: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1405 #[cfg(not(feature = "Win32_Foundation"))] usize, 1406 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1407 #[cfg(not(feature = "Win32_Foundation"))] usize, 1408 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pargument: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1409 #[cfg(not(feature = "Win32_Foundation"))] usize, 1410 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, argument: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1411 #[cfg(not(feature = "Win32_Foundation"))] usize, 1412 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pworkingdirectory: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1413 #[cfg(not(feature = "Win32_Foundation"))] usize, 1414 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, workingdirectory: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1415 #[cfg(not(feature = "Win32_Foundation"))] usize, 1416 ); 1417 #[repr(transparent)] 1418 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1419 pub struct IExecAction2(::windows::runtime::IUnknown); 1420 impl IExecAction2 { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1421 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 1422 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1423 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 1424 } 1425 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1426 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 1427 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1428 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 1429 } 1430 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1431 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 1432 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 1433 } 1434 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1435 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 1436 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 1437 } 1438 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1439 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1440 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 1441 } 1442 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>1443 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 1444 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 1445 } Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()>1446 pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()> { 1447 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 1448 } 1449 #[cfg(feature = "Win32_Foundation")] Path(&self, ppath: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1450 pub unsafe fn Path(&self, ppath: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1451 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(ppath)).ok() 1452 } 1453 #[cfg(feature = "Win32_Foundation")] SetPath<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<()>1454 pub unsafe fn SetPath<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<()> { 1455 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), path.into_param().abi()).ok() 1456 } 1457 #[cfg(feature = "Win32_Foundation")] Arguments(&self, pargument: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1458 pub unsafe fn Arguments(&self, pargument: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1459 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(pargument)).ok() 1460 } 1461 #[cfg(feature = "Win32_Foundation")] SetArguments<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, argument: Param0) -> ::windows::runtime::Result<()>1462 pub unsafe fn SetArguments<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, argument: Param0) -> ::windows::runtime::Result<()> { 1463 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), argument.into_param().abi()).ok() 1464 } 1465 #[cfg(feature = "Win32_Foundation")] WorkingDirectory(&self, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1466 pub unsafe fn WorkingDirectory(&self, pworkingdirectory: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1467 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pworkingdirectory)).ok() 1468 } 1469 #[cfg(feature = "Win32_Foundation")] SetWorkingDirectory<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, workingdirectory: Param0) -> ::windows::runtime::Result<()>1470 pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, workingdirectory: Param0) -> ::windows::runtime::Result<()> { 1471 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), workingdirectory.into_param().abi()).ok() 1472 } HideAppWindow(&self, phideappwindow: *mut i16) -> ::windows::runtime::Result<()>1473 pub unsafe fn HideAppWindow(&self, phideappwindow: *mut i16) -> ::windows::runtime::Result<()> { 1474 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(phideappwindow)).ok() 1475 } SetHideAppWindow(&self, hideappwindow: i16) -> ::windows::runtime::Result<()>1476 pub unsafe fn SetHideAppWindow(&self, hideappwindow: i16) -> ::windows::runtime::Result<()> { 1477 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), ::std::mem::transmute(hideappwindow)).ok() 1478 } 1479 } 1480 unsafe impl ::windows::runtime::Interface for IExecAction2 { 1481 type Vtable = IExecAction2_abi; 1482 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4071105858, 48549, 20075, [145, 67, 226, 191, 79, 137, 135, 182]); 1483 } 1484 impl ::std::convert::From<IExecAction2> for ::windows::runtime::IUnknown { from(value: IExecAction2) -> Self1485 fn from(value: IExecAction2) -> Self { 1486 unsafe { ::std::mem::transmute(value) } 1487 } 1488 } 1489 impl ::std::convert::From<&IExecAction2> for ::windows::runtime::IUnknown { from(value: &IExecAction2) -> Self1490 fn from(value: &IExecAction2) -> Self { 1491 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1492 } 1493 } 1494 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1495 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1496 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1497 } 1498 } 1499 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1500 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1501 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1502 } 1503 } 1504 impl ::std::convert::From<IExecAction2> for IExecAction { from(value: IExecAction2) -> Self1505 fn from(value: IExecAction2) -> Self { 1506 unsafe { ::std::mem::transmute(value) } 1507 } 1508 } 1509 impl ::std::convert::From<&IExecAction2> for IExecAction { from(value: &IExecAction2) -> Self1510 fn from(value: &IExecAction2) -> Self { 1511 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1512 } 1513 } 1514 impl<'a> ::windows::runtime::IntoParam<'a, IExecAction> for IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, IExecAction>1515 fn into_param(self) -> ::windows::runtime::Param<'a, IExecAction> { 1516 ::windows::runtime::Param::Owned(::std::convert::Into::<IExecAction>::into(self)) 1517 } 1518 } 1519 impl<'a> ::windows::runtime::IntoParam<'a, IExecAction> for &IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, IExecAction>1520 fn into_param(self) -> ::windows::runtime::Param<'a, IExecAction> { 1521 ::windows::runtime::Param::Owned(::std::convert::Into::<IExecAction>::into(::std::clone::Clone::clone(self))) 1522 } 1523 } 1524 impl ::std::convert::From<IExecAction2> for IAction { from(value: IExecAction2) -> Self1525 fn from(value: IExecAction2) -> Self { 1526 unsafe { ::std::mem::transmute(value) } 1527 } 1528 } 1529 impl ::std::convert::From<&IExecAction2> for IAction { from(value: &IExecAction2) -> Self1530 fn from(value: &IExecAction2) -> Self { 1531 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1532 } 1533 } 1534 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, IAction>1535 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 1536 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(self)) 1537 } 1538 } 1539 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for &IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, IAction>1540 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 1541 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(::std::clone::Clone::clone(self))) 1542 } 1543 } 1544 #[cfg(feature = "Win32_System_Ole_Automation")] 1545 impl ::std::convert::From<IExecAction2> for super::Ole::Automation::IDispatch { from(value: IExecAction2) -> Self1546 fn from(value: IExecAction2) -> Self { 1547 unsafe { ::std::mem::transmute(value) } 1548 } 1549 } 1550 #[cfg(feature = "Win32_System_Ole_Automation")] 1551 impl ::std::convert::From<&IExecAction2> for super::Ole::Automation::IDispatch { from(value: &IExecAction2) -> Self1552 fn from(value: &IExecAction2) -> Self { 1553 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1554 } 1555 } 1556 #[cfg(feature = "Win32_System_Ole_Automation")] 1557 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1558 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1559 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 1560 } 1561 } 1562 #[cfg(feature = "Win32_System_Ole_Automation")] 1563 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IExecAction2 { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1564 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1565 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 1566 } 1567 } 1568 #[repr(C)] 1569 #[doc(hidden)] 1570 pub struct IExecAction2_abi( 1571 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1572 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1573 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1574 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 1575 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1576 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 1577 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 1578 #[cfg(not(feature = "Win32_Foundation"))] usize, 1579 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 1580 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 1581 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 1582 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1583 #[cfg(not(feature = "Win32_Foundation"))] usize, 1584 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1585 #[cfg(not(feature = "Win32_Foundation"))] usize, 1586 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::HRESULT, 1587 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppath: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1588 #[cfg(not(feature = "Win32_Foundation"))] usize, 1589 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1590 #[cfg(not(feature = "Win32_Foundation"))] usize, 1591 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pargument: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1592 #[cfg(not(feature = "Win32_Foundation"))] usize, 1593 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, argument: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1594 #[cfg(not(feature = "Win32_Foundation"))] usize, 1595 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pworkingdirectory: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1596 #[cfg(not(feature = "Win32_Foundation"))] usize, 1597 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, workingdirectory: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1598 #[cfg(not(feature = "Win32_Foundation"))] usize, 1599 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phideappwindow: *mut i16) -> ::windows::runtime::HRESULT, 1600 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, hideappwindow: i16) -> ::windows::runtime::HRESULT, 1601 ); 1602 #[repr(transparent)] 1603 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1604 pub struct IIdleSettings(::windows::runtime::IUnknown); 1605 impl IIdleSettings { 1606 #[cfg(feature = "Win32_Foundation")] IdleDuration(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1607 pub unsafe fn IdleDuration(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1608 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdelay)).ok() 1609 } 1610 #[cfg(feature = "Win32_Foundation")] SetIdleDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()>1611 pub unsafe fn SetIdleDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()> { 1612 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), delay.into_param().abi()).ok() 1613 } 1614 #[cfg(feature = "Win32_Foundation")] WaitTimeout(&self, ptimeout: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1615 pub unsafe fn WaitTimeout(&self, ptimeout: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1616 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimeout)).ok() 1617 } 1618 #[cfg(feature = "Win32_Foundation")] SetWaitTimeout<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timeout: Param0) -> ::windows::runtime::Result<()>1619 pub unsafe fn SetWaitTimeout<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timeout: Param0) -> ::windows::runtime::Result<()> { 1620 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), timeout.into_param().abi()).ok() 1621 } StopOnIdleEnd(&self, pstop: *mut i16) -> ::windows::runtime::Result<()>1622 pub unsafe fn StopOnIdleEnd(&self, pstop: *mut i16) -> ::windows::runtime::Result<()> { 1623 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstop)).ok() 1624 } SetStopOnIdleEnd(&self, stop: i16) -> ::windows::runtime::Result<()>1625 pub unsafe fn SetStopOnIdleEnd(&self, stop: i16) -> ::windows::runtime::Result<()> { 1626 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(stop)).ok() 1627 } RestartOnIdle(&self, prestart: *mut i16) -> ::windows::runtime::Result<()>1628 pub unsafe fn RestartOnIdle(&self, prestart: *mut i16) -> ::windows::runtime::Result<()> { 1629 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(prestart)).ok() 1630 } SetRestartOnIdle(&self, restart: i16) -> ::windows::runtime::Result<()>1631 pub unsafe fn SetRestartOnIdle(&self, restart: i16) -> ::windows::runtime::Result<()> { 1632 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(restart)).ok() 1633 } 1634 } 1635 unsafe impl ::windows::runtime::Interface for IIdleSettings { 1636 type Vtable = IIdleSettings_abi; 1637 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2220442721, 83, 17218, [168, 253, 8, 143, 171, 241, 31, 50]); 1638 } 1639 impl ::std::convert::From<IIdleSettings> for ::windows::runtime::IUnknown { from(value: IIdleSettings) -> Self1640 fn from(value: IIdleSettings) -> Self { 1641 unsafe { ::std::mem::transmute(value) } 1642 } 1643 } 1644 impl ::std::convert::From<&IIdleSettings> for ::windows::runtime::IUnknown { from(value: &IIdleSettings) -> Self1645 fn from(value: &IIdleSettings) -> Self { 1646 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1647 } 1648 } 1649 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IIdleSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1650 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1651 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1652 } 1653 } 1654 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IIdleSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1655 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1656 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1657 } 1658 } 1659 #[cfg(feature = "Win32_System_Ole_Automation")] 1660 impl ::std::convert::From<IIdleSettings> for super::Ole::Automation::IDispatch { from(value: IIdleSettings) -> Self1661 fn from(value: IIdleSettings) -> Self { 1662 unsafe { ::std::mem::transmute(value) } 1663 } 1664 } 1665 #[cfg(feature = "Win32_System_Ole_Automation")] 1666 impl ::std::convert::From<&IIdleSettings> for super::Ole::Automation::IDispatch { from(value: &IIdleSettings) -> Self1667 fn from(value: &IIdleSettings) -> Self { 1668 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1669 } 1670 } 1671 #[cfg(feature = "Win32_System_Ole_Automation")] 1672 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IIdleSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1673 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1674 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 1675 } 1676 } 1677 #[cfg(feature = "Win32_System_Ole_Automation")] 1678 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IIdleSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1679 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1680 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 1681 } 1682 } 1683 #[repr(C)] 1684 #[doc(hidden)] 1685 pub struct IIdleSettings_abi( 1686 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1687 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1688 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1689 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 1690 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1691 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 1692 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 1693 #[cfg(not(feature = "Win32_Foundation"))] usize, 1694 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 1695 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 1696 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 1697 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1698 #[cfg(not(feature = "Win32_Foundation"))] usize, 1699 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, delay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1700 #[cfg(not(feature = "Win32_Foundation"))] usize, 1701 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimeout: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1702 #[cfg(not(feature = "Win32_Foundation"))] usize, 1703 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timeout: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1704 #[cfg(not(feature = "Win32_Foundation"))] usize, 1705 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstop: *mut i16) -> ::windows::runtime::HRESULT, 1706 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, stop: i16) -> ::windows::runtime::HRESULT, 1707 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prestart: *mut i16) -> ::windows::runtime::HRESULT, 1708 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, restart: i16) -> ::windows::runtime::HRESULT, 1709 ); 1710 #[repr(transparent)] 1711 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1712 pub struct IIdleTrigger(::windows::runtime::IUnknown); 1713 impl IIdleTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1714 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 1715 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1716 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 1717 } 1718 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1719 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 1720 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1721 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 1722 } 1723 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1724 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 1725 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 1726 } 1727 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1728 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 1729 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 1730 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>1731 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 1732 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 1733 } 1734 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1735 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1736 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 1737 } 1738 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>1739 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 1740 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 1741 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>1742 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 1743 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1744 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 1745 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>1746 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 1747 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 1748 } 1749 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1750 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1751 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 1752 } 1753 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>1754 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 1755 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 1756 } 1757 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1758 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1759 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 1760 } 1761 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>1762 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 1763 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 1764 } 1765 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1766 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1767 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 1768 } 1769 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>1770 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 1771 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 1772 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>1773 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 1774 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 1775 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>1776 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 1777 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 1778 } 1779 } 1780 unsafe impl ::windows::runtime::Interface for IIdleTrigger { 1781 type Vtable = IIdleTrigger_abi; 1782 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3577205424, 40883, 19764, [151, 57, 31, 245, 206, 123, 30, 243]); 1783 } 1784 impl ::std::convert::From<IIdleTrigger> for ::windows::runtime::IUnknown { from(value: IIdleTrigger) -> Self1785 fn from(value: IIdleTrigger) -> Self { 1786 unsafe { ::std::mem::transmute(value) } 1787 } 1788 } 1789 impl ::std::convert::From<&IIdleTrigger> for ::windows::runtime::IUnknown { from(value: &IIdleTrigger) -> Self1790 fn from(value: &IIdleTrigger) -> Self { 1791 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1792 } 1793 } 1794 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IIdleTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1795 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1796 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1797 } 1798 } 1799 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IIdleTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1800 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1801 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1802 } 1803 } 1804 impl ::std::convert::From<IIdleTrigger> for ITrigger { from(value: IIdleTrigger) -> Self1805 fn from(value: IIdleTrigger) -> Self { 1806 unsafe { ::std::mem::transmute(value) } 1807 } 1808 } 1809 impl ::std::convert::From<&IIdleTrigger> for ITrigger { from(value: &IIdleTrigger) -> Self1810 fn from(value: &IIdleTrigger) -> Self { 1811 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1812 } 1813 } 1814 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IIdleTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>1815 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 1816 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 1817 } 1818 } 1819 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IIdleTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>1820 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 1821 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 1822 } 1823 } 1824 #[cfg(feature = "Win32_System_Ole_Automation")] 1825 impl ::std::convert::From<IIdleTrigger> for super::Ole::Automation::IDispatch { from(value: IIdleTrigger) -> Self1826 fn from(value: IIdleTrigger) -> Self { 1827 unsafe { ::std::mem::transmute(value) } 1828 } 1829 } 1830 #[cfg(feature = "Win32_System_Ole_Automation")] 1831 impl ::std::convert::From<&IIdleTrigger> for super::Ole::Automation::IDispatch { from(value: &IIdleTrigger) -> Self1832 fn from(value: &IIdleTrigger) -> Self { 1833 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1834 } 1835 } 1836 #[cfg(feature = "Win32_System_Ole_Automation")] 1837 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IIdleTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1838 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1839 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 1840 } 1841 } 1842 #[cfg(feature = "Win32_System_Ole_Automation")] 1843 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IIdleTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>1844 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 1845 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 1846 } 1847 } 1848 #[repr(C)] 1849 #[doc(hidden)] 1850 pub struct IIdleTrigger_abi( 1851 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1852 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1853 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 1854 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 1855 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1856 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 1857 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 1858 #[cfg(not(feature = "Win32_Foundation"))] usize, 1859 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 1860 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 1861 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 1862 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 1863 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1864 #[cfg(not(feature = "Win32_Foundation"))] usize, 1865 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1866 #[cfg(not(feature = "Win32_Foundation"))] usize, 1867 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1868 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 1869 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1870 #[cfg(not(feature = "Win32_Foundation"))] usize, 1871 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1872 #[cfg(not(feature = "Win32_Foundation"))] usize, 1873 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1874 #[cfg(not(feature = "Win32_Foundation"))] usize, 1875 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1876 #[cfg(not(feature = "Win32_Foundation"))] usize, 1877 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1878 #[cfg(not(feature = "Win32_Foundation"))] usize, 1879 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 1880 #[cfg(not(feature = "Win32_Foundation"))] usize, 1881 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 1882 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 1883 ); 1884 #[repr(transparent)] 1885 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 1886 pub struct ILogonTrigger(::windows::runtime::IUnknown); 1887 impl ILogonTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>1888 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 1889 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1890 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 1891 } 1892 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>1893 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 1894 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1895 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 1896 } 1897 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>1898 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 1899 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 1900 } 1901 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>1902 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 1903 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 1904 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>1905 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 1906 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 1907 } 1908 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1909 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1910 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 1911 } 1912 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>1913 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 1914 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 1915 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>1916 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 1917 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 1918 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 1919 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>1920 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 1921 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 1922 } 1923 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1924 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1925 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 1926 } 1927 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>1928 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 1929 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 1930 } 1931 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1932 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1933 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 1934 } 1935 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>1936 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 1937 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 1938 } 1939 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1940 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1941 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 1942 } 1943 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>1944 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 1945 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 1946 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>1947 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 1948 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 1949 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>1950 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 1951 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 1952 } 1953 #[cfg(feature = "Win32_Foundation")] Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1954 pub unsafe fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1955 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdelay)).ok() 1956 } 1957 #[cfg(feature = "Win32_Foundation")] SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()>1958 pub unsafe fn SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()> { 1959 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), delay.into_param().abi()).ok() 1960 } 1961 #[cfg(feature = "Win32_Foundation")] UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>1962 pub unsafe fn UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 1963 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(puser)).ok() 1964 } 1965 #[cfg(feature = "Win32_Foundation")] SetUserId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, user: Param0) -> ::windows::runtime::Result<()>1966 pub unsafe fn SetUserId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, user: Param0) -> ::windows::runtime::Result<()> { 1967 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), user.into_param().abi()).ok() 1968 } 1969 } 1970 unsafe impl ::windows::runtime::Interface for ILogonTrigger { 1971 type Vtable = ILogonTrigger_abi; 1972 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1926946360, 64228, 19262, [186, 244, 93, 0, 154, 240, 43, 28]); 1973 } 1974 impl ::std::convert::From<ILogonTrigger> for ::windows::runtime::IUnknown { from(value: ILogonTrigger) -> Self1975 fn from(value: ILogonTrigger) -> Self { 1976 unsafe { ::std::mem::transmute(value) } 1977 } 1978 } 1979 impl ::std::convert::From<&ILogonTrigger> for ::windows::runtime::IUnknown { from(value: &ILogonTrigger) -> Self1980 fn from(value: &ILogonTrigger) -> Self { 1981 ::std::convert::From::from(::std::clone::Clone::clone(value)) 1982 } 1983 } 1984 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ILogonTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1985 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1986 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 1987 } 1988 } 1989 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ILogonTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>1990 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 1991 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 1992 } 1993 } 1994 impl ::std::convert::From<ILogonTrigger> for ITrigger { from(value: ILogonTrigger) -> Self1995 fn from(value: ILogonTrigger) -> Self { 1996 unsafe { ::std::mem::transmute(value) } 1997 } 1998 } 1999 impl ::std::convert::From<&ILogonTrigger> for ITrigger { from(value: &ILogonTrigger) -> Self2000 fn from(value: &ILogonTrigger) -> Self { 2001 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2002 } 2003 } 2004 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for ILogonTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>2005 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 2006 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 2007 } 2008 } 2009 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &ILogonTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>2010 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 2011 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 2012 } 2013 } 2014 #[cfg(feature = "Win32_System_Ole_Automation")] 2015 impl ::std::convert::From<ILogonTrigger> for super::Ole::Automation::IDispatch { from(value: ILogonTrigger) -> Self2016 fn from(value: ILogonTrigger) -> Self { 2017 unsafe { ::std::mem::transmute(value) } 2018 } 2019 } 2020 #[cfg(feature = "Win32_System_Ole_Automation")] 2021 impl ::std::convert::From<&ILogonTrigger> for super::Ole::Automation::IDispatch { from(value: &ILogonTrigger) -> Self2022 fn from(value: &ILogonTrigger) -> Self { 2023 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2024 } 2025 } 2026 #[cfg(feature = "Win32_System_Ole_Automation")] 2027 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ILogonTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2028 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2029 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2030 } 2031 } 2032 #[cfg(feature = "Win32_System_Ole_Automation")] 2033 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ILogonTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2034 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2035 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2036 } 2037 } 2038 #[repr(C)] 2039 #[doc(hidden)] 2040 pub struct ILogonTrigger_abi( 2041 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2042 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2043 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2044 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2045 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2046 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2047 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2048 #[cfg(not(feature = "Win32_Foundation"))] usize, 2049 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2050 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2051 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2052 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 2053 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2054 #[cfg(not(feature = "Win32_Foundation"))] usize, 2055 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2056 #[cfg(not(feature = "Win32_Foundation"))] usize, 2057 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2058 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2059 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2060 #[cfg(not(feature = "Win32_Foundation"))] usize, 2061 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2062 #[cfg(not(feature = "Win32_Foundation"))] usize, 2063 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2064 #[cfg(not(feature = "Win32_Foundation"))] usize, 2065 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2066 #[cfg(not(feature = "Win32_Foundation"))] usize, 2067 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2068 #[cfg(not(feature = "Win32_Foundation"))] usize, 2069 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2070 #[cfg(not(feature = "Win32_Foundation"))] usize, 2071 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 2072 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 2073 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2074 #[cfg(not(feature = "Win32_Foundation"))] usize, 2075 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, delay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2076 #[cfg(not(feature = "Win32_Foundation"))] usize, 2077 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puser: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2078 #[cfg(not(feature = "Win32_Foundation"))] usize, 2079 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, user: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2080 #[cfg(not(feature = "Win32_Foundation"))] usize, 2081 ); 2082 #[repr(transparent)] 2083 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2084 pub struct IMaintenanceSettings(::windows::runtime::IUnknown); 2085 impl IMaintenanceSettings { 2086 #[cfg(feature = "Win32_Foundation")] SetPeriod<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::runtime::Result<()>2087 pub unsafe fn SetPeriod<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2088 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), value.into_param().abi()).ok() 2089 } 2090 #[cfg(feature = "Win32_Foundation")] Period(&self, target: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2091 pub unsafe fn Period(&self, target: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2092 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(target)).ok() 2093 } 2094 #[cfg(feature = "Win32_Foundation")] SetDeadline<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::runtime::Result<()>2095 pub unsafe fn SetDeadline<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 2096 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), value.into_param().abi()).ok() 2097 } 2098 #[cfg(feature = "Win32_Foundation")] Deadline(&self, target: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2099 pub unsafe fn Deadline(&self, target: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2100 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(target)).ok() 2101 } SetExclusive(&self, value: i16) -> ::windows::runtime::Result<()>2102 pub unsafe fn SetExclusive(&self, value: i16) -> ::windows::runtime::Result<()> { 2103 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(value)).ok() 2104 } Exclusive(&self, target: *mut i16) -> ::windows::runtime::Result<()>2105 pub unsafe fn Exclusive(&self, target: *mut i16) -> ::windows::runtime::Result<()> { 2106 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(target)).ok() 2107 } 2108 } 2109 unsafe impl ::windows::runtime::Interface for IMaintenanceSettings { 2110 type Vtable = IMaintenanceSettings_abi; 2111 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2785169320, 38482, 19163, [166, 191, 92, 252, 216, 119, 167, 186]); 2112 } 2113 impl ::std::convert::From<IMaintenanceSettings> for ::windows::runtime::IUnknown { from(value: IMaintenanceSettings) -> Self2114 fn from(value: IMaintenanceSettings) -> Self { 2115 unsafe { ::std::mem::transmute(value) } 2116 } 2117 } 2118 impl ::std::convert::From<&IMaintenanceSettings> for ::windows::runtime::IUnknown { from(value: &IMaintenanceSettings) -> Self2119 fn from(value: &IMaintenanceSettings) -> Self { 2120 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2121 } 2122 } 2123 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IMaintenanceSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2124 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2125 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2126 } 2127 } 2128 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IMaintenanceSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2129 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2130 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2131 } 2132 } 2133 #[cfg(feature = "Win32_System_Ole_Automation")] 2134 impl ::std::convert::From<IMaintenanceSettings> for super::Ole::Automation::IDispatch { from(value: IMaintenanceSettings) -> Self2135 fn from(value: IMaintenanceSettings) -> Self { 2136 unsafe { ::std::mem::transmute(value) } 2137 } 2138 } 2139 #[cfg(feature = "Win32_System_Ole_Automation")] 2140 impl ::std::convert::From<&IMaintenanceSettings> for super::Ole::Automation::IDispatch { from(value: &IMaintenanceSettings) -> Self2141 fn from(value: &IMaintenanceSettings) -> Self { 2142 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2143 } 2144 } 2145 #[cfg(feature = "Win32_System_Ole_Automation")] 2146 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IMaintenanceSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2147 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2148 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2149 } 2150 } 2151 #[cfg(feature = "Win32_System_Ole_Automation")] 2152 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IMaintenanceSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2153 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2154 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2155 } 2156 } 2157 #[repr(C)] 2158 #[doc(hidden)] 2159 pub struct IMaintenanceSettings_abi( 2160 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2161 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2162 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2163 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2164 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2165 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2166 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2167 #[cfg(not(feature = "Win32_Foundation"))] usize, 2168 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2169 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2170 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2171 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2172 #[cfg(not(feature = "Win32_Foundation"))] usize, 2173 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, target: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2174 #[cfg(not(feature = "Win32_Foundation"))] usize, 2175 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2176 #[cfg(not(feature = "Win32_Foundation"))] usize, 2177 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, target: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2178 #[cfg(not(feature = "Win32_Foundation"))] usize, 2179 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: i16) -> ::windows::runtime::HRESULT, 2180 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, target: *mut i16) -> ::windows::runtime::HRESULT, 2181 ); 2182 #[repr(transparent)] 2183 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2184 pub struct IMonthlyDOWTrigger(::windows::runtime::IUnknown); 2185 impl IMonthlyDOWTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>2186 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 2187 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2188 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 2189 } 2190 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>2191 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 2192 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2193 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 2194 } 2195 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>2196 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 2197 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 2198 } 2199 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>2200 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 2201 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 2202 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>2203 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 2204 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 2205 } 2206 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2207 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2208 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 2209 } 2210 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>2211 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 2212 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 2213 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>2214 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 2215 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2216 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 2217 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>2218 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 2219 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 2220 } 2221 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2222 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2223 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 2224 } 2225 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>2226 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 2227 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 2228 } 2229 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2230 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2231 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 2232 } 2233 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>2234 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 2235 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 2236 } 2237 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2238 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2239 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 2240 } 2241 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>2242 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 2243 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 2244 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>2245 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 2246 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 2247 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>2248 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 2249 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 2250 } DaysOfWeek(&self, pdays: *mut i16) -> ::windows::runtime::Result<()>2251 pub unsafe fn DaysOfWeek(&self, pdays: *mut i16) -> ::windows::runtime::Result<()> { 2252 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdays)).ok() 2253 } SetDaysOfWeek(&self, days: i16) -> ::windows::runtime::Result<()>2254 pub unsafe fn SetDaysOfWeek(&self, days: i16) -> ::windows::runtime::Result<()> { 2255 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(days)).ok() 2256 } WeeksOfMonth(&self, pweeks: *mut i16) -> ::windows::runtime::Result<()>2257 pub unsafe fn WeeksOfMonth(&self, pweeks: *mut i16) -> ::windows::runtime::Result<()> { 2258 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(pweeks)).ok() 2259 } SetWeeksOfMonth(&self, weeks: i16) -> ::windows::runtime::Result<()>2260 pub unsafe fn SetWeeksOfMonth(&self, weeks: i16) -> ::windows::runtime::Result<()> { 2261 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(weeks)).ok() 2262 } MonthsOfYear(&self, pmonths: *mut i16) -> ::windows::runtime::Result<()>2263 pub unsafe fn MonthsOfYear(&self, pmonths: *mut i16) -> ::windows::runtime::Result<()> { 2264 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(pmonths)).ok() 2265 } SetMonthsOfYear(&self, months: i16) -> ::windows::runtime::Result<()>2266 pub unsafe fn SetMonthsOfYear(&self, months: i16) -> ::windows::runtime::Result<()> { 2267 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), ::std::mem::transmute(months)).ok() 2268 } RunOnLastWeekOfMonth(&self, plastweek: *mut i16) -> ::windows::runtime::Result<()>2269 pub unsafe fn RunOnLastWeekOfMonth(&self, plastweek: *mut i16) -> ::windows::runtime::Result<()> { 2270 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(plastweek)).ok() 2271 } SetRunOnLastWeekOfMonth(&self, lastweek: i16) -> ::windows::runtime::Result<()>2272 pub unsafe fn SetRunOnLastWeekOfMonth(&self, lastweek: i16) -> ::windows::runtime::Result<()> { 2273 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), ::std::mem::transmute(lastweek)).ok() 2274 } 2275 #[cfg(feature = "Win32_Foundation")] RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2276 pub unsafe fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2277 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), ::std::mem::transmute(prandomdelay)).ok() 2278 } 2279 #[cfg(feature = "Win32_Foundation")] SetRandomDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, randomdelay: Param0) -> ::windows::runtime::Result<()>2280 pub unsafe fn SetRandomDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, randomdelay: Param0) -> ::windows::runtime::Result<()> { 2281 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), randomdelay.into_param().abi()).ok() 2282 } 2283 } 2284 unsafe impl ::windows::runtime::Interface for IMonthlyDOWTrigger { 2285 type Vtable = IMonthlyDOWTrigger_abi; 2286 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2010129827, 37114, 17322, [181, 46, 205, 165, 73, 155, 148, 106]); 2287 } 2288 impl ::std::convert::From<IMonthlyDOWTrigger> for ::windows::runtime::IUnknown { from(value: IMonthlyDOWTrigger) -> Self2289 fn from(value: IMonthlyDOWTrigger) -> Self { 2290 unsafe { ::std::mem::transmute(value) } 2291 } 2292 } 2293 impl ::std::convert::From<&IMonthlyDOWTrigger> for ::windows::runtime::IUnknown { from(value: &IMonthlyDOWTrigger) -> Self2294 fn from(value: &IMonthlyDOWTrigger) -> Self { 2295 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2296 } 2297 } 2298 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IMonthlyDOWTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2299 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2300 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2301 } 2302 } 2303 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IMonthlyDOWTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2304 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2305 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2306 } 2307 } 2308 impl ::std::convert::From<IMonthlyDOWTrigger> for ITrigger { from(value: IMonthlyDOWTrigger) -> Self2309 fn from(value: IMonthlyDOWTrigger) -> Self { 2310 unsafe { ::std::mem::transmute(value) } 2311 } 2312 } 2313 impl ::std::convert::From<&IMonthlyDOWTrigger> for ITrigger { from(value: &IMonthlyDOWTrigger) -> Self2314 fn from(value: &IMonthlyDOWTrigger) -> Self { 2315 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2316 } 2317 } 2318 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IMonthlyDOWTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>2319 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 2320 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 2321 } 2322 } 2323 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IMonthlyDOWTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>2324 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 2325 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 2326 } 2327 } 2328 #[cfg(feature = "Win32_System_Ole_Automation")] 2329 impl ::std::convert::From<IMonthlyDOWTrigger> for super::Ole::Automation::IDispatch { from(value: IMonthlyDOWTrigger) -> Self2330 fn from(value: IMonthlyDOWTrigger) -> Self { 2331 unsafe { ::std::mem::transmute(value) } 2332 } 2333 } 2334 #[cfg(feature = "Win32_System_Ole_Automation")] 2335 impl ::std::convert::From<&IMonthlyDOWTrigger> for super::Ole::Automation::IDispatch { from(value: &IMonthlyDOWTrigger) -> Self2336 fn from(value: &IMonthlyDOWTrigger) -> Self { 2337 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2338 } 2339 } 2340 #[cfg(feature = "Win32_System_Ole_Automation")] 2341 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IMonthlyDOWTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2342 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2343 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2344 } 2345 } 2346 #[cfg(feature = "Win32_System_Ole_Automation")] 2347 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IMonthlyDOWTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2348 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2349 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2350 } 2351 } 2352 #[repr(C)] 2353 #[doc(hidden)] 2354 pub struct IMonthlyDOWTrigger_abi( 2355 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2356 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2357 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2358 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2359 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2360 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2361 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2362 #[cfg(not(feature = "Win32_Foundation"))] usize, 2363 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2364 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2365 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2366 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 2367 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2368 #[cfg(not(feature = "Win32_Foundation"))] usize, 2369 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2370 #[cfg(not(feature = "Win32_Foundation"))] usize, 2371 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2372 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2373 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2374 #[cfg(not(feature = "Win32_Foundation"))] usize, 2375 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2376 #[cfg(not(feature = "Win32_Foundation"))] usize, 2377 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2378 #[cfg(not(feature = "Win32_Foundation"))] usize, 2379 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2380 #[cfg(not(feature = "Win32_Foundation"))] usize, 2381 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2382 #[cfg(not(feature = "Win32_Foundation"))] usize, 2383 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2384 #[cfg(not(feature = "Win32_Foundation"))] usize, 2385 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 2386 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 2387 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdays: *mut i16) -> ::windows::runtime::HRESULT, 2388 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, days: i16) -> ::windows::runtime::HRESULT, 2389 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pweeks: *mut i16) -> ::windows::runtime::HRESULT, 2390 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, weeks: i16) -> ::windows::runtime::HRESULT, 2391 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pmonths: *mut i16) -> ::windows::runtime::HRESULT, 2392 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, months: i16) -> ::windows::runtime::HRESULT, 2393 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, plastweek: *mut i16) -> ::windows::runtime::HRESULT, 2394 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, lastweek: i16) -> ::windows::runtime::HRESULT, 2395 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prandomdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2396 #[cfg(not(feature = "Win32_Foundation"))] usize, 2397 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, randomdelay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2398 #[cfg(not(feature = "Win32_Foundation"))] usize, 2399 ); 2400 #[repr(transparent)] 2401 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2402 pub struct IMonthlyTrigger(::windows::runtime::IUnknown); 2403 impl IMonthlyTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>2404 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 2405 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2406 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 2407 } 2408 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>2409 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 2410 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2411 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 2412 } 2413 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>2414 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 2415 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 2416 } 2417 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>2418 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 2419 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 2420 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>2421 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 2422 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 2423 } 2424 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2425 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2426 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 2427 } 2428 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>2429 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 2430 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 2431 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>2432 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 2433 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2434 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 2435 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>2436 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 2437 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 2438 } 2439 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2440 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2441 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 2442 } 2443 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>2444 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 2445 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 2446 } 2447 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2448 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2449 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 2450 } 2451 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>2452 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 2453 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 2454 } 2455 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2456 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2457 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 2458 } 2459 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>2460 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 2461 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 2462 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>2463 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 2464 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 2465 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>2466 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 2467 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 2468 } DaysOfMonth(&self, pdays: *mut i32) -> ::windows::runtime::Result<()>2469 pub unsafe fn DaysOfMonth(&self, pdays: *mut i32) -> ::windows::runtime::Result<()> { 2470 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdays)).ok() 2471 } SetDaysOfMonth(&self, days: i32) -> ::windows::runtime::Result<()>2472 pub unsafe fn SetDaysOfMonth(&self, days: i32) -> ::windows::runtime::Result<()> { 2473 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(days)).ok() 2474 } MonthsOfYear(&self, pmonths: *mut i16) -> ::windows::runtime::Result<()>2475 pub unsafe fn MonthsOfYear(&self, pmonths: *mut i16) -> ::windows::runtime::Result<()> { 2476 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(pmonths)).ok() 2477 } SetMonthsOfYear(&self, months: i16) -> ::windows::runtime::Result<()>2478 pub unsafe fn SetMonthsOfYear(&self, months: i16) -> ::windows::runtime::Result<()> { 2479 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(months)).ok() 2480 } RunOnLastDayOfMonth(&self, plastday: *mut i16) -> ::windows::runtime::Result<()>2481 pub unsafe fn RunOnLastDayOfMonth(&self, plastday: *mut i16) -> ::windows::runtime::Result<()> { 2482 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(plastday)).ok() 2483 } SetRunOnLastDayOfMonth(&self, lastday: i16) -> ::windows::runtime::Result<()>2484 pub unsafe fn SetRunOnLastDayOfMonth(&self, lastday: i16) -> ::windows::runtime::Result<()> { 2485 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), ::std::mem::transmute(lastday)).ok() 2486 } 2487 #[cfg(feature = "Win32_Foundation")] RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2488 pub unsafe fn RandomDelay(&self, prandomdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2489 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(prandomdelay)).ok() 2490 } 2491 #[cfg(feature = "Win32_Foundation")] SetRandomDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, randomdelay: Param0) -> ::windows::runtime::Result<()>2492 pub unsafe fn SetRandomDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, randomdelay: Param0) -> ::windows::runtime::Result<()> { 2493 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), randomdelay.into_param().abi()).ok() 2494 } 2495 } 2496 unsafe impl ::windows::runtime::Interface for IMonthlyTrigger { 2497 type Vtable = IMonthlyTrigger_abi; 2498 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2546228977, 27394, 18970, [156, 14, 30, 191, 186, 21, 0, 172]); 2499 } 2500 impl ::std::convert::From<IMonthlyTrigger> for ::windows::runtime::IUnknown { from(value: IMonthlyTrigger) -> Self2501 fn from(value: IMonthlyTrigger) -> Self { 2502 unsafe { ::std::mem::transmute(value) } 2503 } 2504 } 2505 impl ::std::convert::From<&IMonthlyTrigger> for ::windows::runtime::IUnknown { from(value: &IMonthlyTrigger) -> Self2506 fn from(value: &IMonthlyTrigger) -> Self { 2507 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2508 } 2509 } 2510 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IMonthlyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2511 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2512 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2513 } 2514 } 2515 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IMonthlyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2516 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2517 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2518 } 2519 } 2520 impl ::std::convert::From<IMonthlyTrigger> for ITrigger { from(value: IMonthlyTrigger) -> Self2521 fn from(value: IMonthlyTrigger) -> Self { 2522 unsafe { ::std::mem::transmute(value) } 2523 } 2524 } 2525 impl ::std::convert::From<&IMonthlyTrigger> for ITrigger { from(value: &IMonthlyTrigger) -> Self2526 fn from(value: &IMonthlyTrigger) -> Self { 2527 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2528 } 2529 } 2530 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IMonthlyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>2531 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 2532 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 2533 } 2534 } 2535 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IMonthlyTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>2536 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 2537 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 2538 } 2539 } 2540 #[cfg(feature = "Win32_System_Ole_Automation")] 2541 impl ::std::convert::From<IMonthlyTrigger> for super::Ole::Automation::IDispatch { from(value: IMonthlyTrigger) -> Self2542 fn from(value: IMonthlyTrigger) -> Self { 2543 unsafe { ::std::mem::transmute(value) } 2544 } 2545 } 2546 #[cfg(feature = "Win32_System_Ole_Automation")] 2547 impl ::std::convert::From<&IMonthlyTrigger> for super::Ole::Automation::IDispatch { from(value: &IMonthlyTrigger) -> Self2548 fn from(value: &IMonthlyTrigger) -> Self { 2549 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2550 } 2551 } 2552 #[cfg(feature = "Win32_System_Ole_Automation")] 2553 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IMonthlyTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2554 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2555 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2556 } 2557 } 2558 #[cfg(feature = "Win32_System_Ole_Automation")] 2559 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IMonthlyTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2560 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2561 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2562 } 2563 } 2564 #[repr(C)] 2565 #[doc(hidden)] 2566 pub struct IMonthlyTrigger_abi( 2567 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2568 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2569 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2570 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2571 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2572 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2573 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2574 #[cfg(not(feature = "Win32_Foundation"))] usize, 2575 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2576 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2577 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2578 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 2579 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2580 #[cfg(not(feature = "Win32_Foundation"))] usize, 2581 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2582 #[cfg(not(feature = "Win32_Foundation"))] usize, 2583 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2584 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2585 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2586 #[cfg(not(feature = "Win32_Foundation"))] usize, 2587 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2588 #[cfg(not(feature = "Win32_Foundation"))] usize, 2589 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2590 #[cfg(not(feature = "Win32_Foundation"))] usize, 2591 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2592 #[cfg(not(feature = "Win32_Foundation"))] usize, 2593 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2594 #[cfg(not(feature = "Win32_Foundation"))] usize, 2595 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2596 #[cfg(not(feature = "Win32_Foundation"))] usize, 2597 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 2598 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 2599 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdays: *mut i32) -> ::windows::runtime::HRESULT, 2600 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, days: i32) -> ::windows::runtime::HRESULT, 2601 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pmonths: *mut i16) -> ::windows::runtime::HRESULT, 2602 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, months: i16) -> ::windows::runtime::HRESULT, 2603 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, plastday: *mut i16) -> ::windows::runtime::HRESULT, 2604 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, lastday: i16) -> ::windows::runtime::HRESULT, 2605 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prandomdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2606 #[cfg(not(feature = "Win32_Foundation"))] usize, 2607 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, randomdelay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2608 #[cfg(not(feature = "Win32_Foundation"))] usize, 2609 ); 2610 #[repr(transparent)] 2611 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2612 pub struct INetworkSettings(::windows::runtime::IUnknown); 2613 impl INetworkSettings { 2614 #[cfg(feature = "Win32_Foundation")] Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2615 pub unsafe fn Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2616 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pname)).ok() 2617 } 2618 #[cfg(feature = "Win32_Foundation")] SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::runtime::Result<()>2619 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::runtime::Result<()> { 2620 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), name.into_param().abi()).ok() 2621 } 2622 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2623 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2624 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 2625 } 2626 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>2627 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 2628 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 2629 } 2630 } 2631 unsafe impl ::windows::runtime::Interface for INetworkSettings { 2632 type Vtable = INetworkSettings_abi; 2633 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2675829380, 49931, 16965, [128, 182, 0, 233, 246, 70, 241, 180]); 2634 } 2635 impl ::std::convert::From<INetworkSettings> for ::windows::runtime::IUnknown { from(value: INetworkSettings) -> Self2636 fn from(value: INetworkSettings) -> Self { 2637 unsafe { ::std::mem::transmute(value) } 2638 } 2639 } 2640 impl ::std::convert::From<&INetworkSettings> for ::windows::runtime::IUnknown { from(value: &INetworkSettings) -> Self2641 fn from(value: &INetworkSettings) -> Self { 2642 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2643 } 2644 } 2645 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for INetworkSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2646 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2647 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2648 } 2649 } 2650 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &INetworkSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2651 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2652 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2653 } 2654 } 2655 #[cfg(feature = "Win32_System_Ole_Automation")] 2656 impl ::std::convert::From<INetworkSettings> for super::Ole::Automation::IDispatch { from(value: INetworkSettings) -> Self2657 fn from(value: INetworkSettings) -> Self { 2658 unsafe { ::std::mem::transmute(value) } 2659 } 2660 } 2661 #[cfg(feature = "Win32_System_Ole_Automation")] 2662 impl ::std::convert::From<&INetworkSettings> for super::Ole::Automation::IDispatch { from(value: &INetworkSettings) -> Self2663 fn from(value: &INetworkSettings) -> Self { 2664 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2665 } 2666 } 2667 #[cfg(feature = "Win32_System_Ole_Automation")] 2668 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for INetworkSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2669 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2670 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2671 } 2672 } 2673 #[cfg(feature = "Win32_System_Ole_Automation")] 2674 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &INetworkSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2675 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2676 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2677 } 2678 } 2679 #[repr(C)] 2680 #[doc(hidden)] 2681 pub struct INetworkSettings_abi( 2682 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2683 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2684 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2685 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2686 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2687 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2688 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2689 #[cfg(not(feature = "Win32_Foundation"))] usize, 2690 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2691 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2692 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2693 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2694 #[cfg(not(feature = "Win32_Foundation"))] usize, 2695 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2696 #[cfg(not(feature = "Win32_Foundation"))] usize, 2697 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2698 #[cfg(not(feature = "Win32_Foundation"))] usize, 2699 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2700 #[cfg(not(feature = "Win32_Foundation"))] usize, 2701 ); 2702 #[repr(transparent)] 2703 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2704 pub struct IPrincipal(::windows::runtime::IUnknown); 2705 impl IPrincipal { 2706 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2707 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2708 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 2709 } 2710 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>2711 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 2712 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 2713 } 2714 #[cfg(feature = "Win32_Foundation")] DisplayName(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2715 pub unsafe fn DisplayName(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2716 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pname)).ok() 2717 } 2718 #[cfg(feature = "Win32_Foundation")] SetDisplayName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::runtime::Result<()>2719 pub unsafe fn SetDisplayName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::runtime::Result<()> { 2720 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), name.into_param().abi()).ok() 2721 } 2722 #[cfg(feature = "Win32_Foundation")] UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2723 pub unsafe fn UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2724 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(puser)).ok() 2725 } 2726 #[cfg(feature = "Win32_Foundation")] SetUserId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, user: Param0) -> ::windows::runtime::Result<()>2727 pub unsafe fn SetUserId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, user: Param0) -> ::windows::runtime::Result<()> { 2728 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), user.into_param().abi()).ok() 2729 } LogonType(&self, plogon: *mut TASK_LOGON_TYPE) -> ::windows::runtime::Result<()>2730 pub unsafe fn LogonType(&self, plogon: *mut TASK_LOGON_TYPE) -> ::windows::runtime::Result<()> { 2731 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(plogon)).ok() 2732 } SetLogonType(&self, logon: TASK_LOGON_TYPE) -> ::windows::runtime::Result<()>2733 pub unsafe fn SetLogonType(&self, logon: TASK_LOGON_TYPE) -> ::windows::runtime::Result<()> { 2734 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(logon)).ok() 2735 } 2736 #[cfg(feature = "Win32_Foundation")] GroupId(&self, pgroup: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2737 pub unsafe fn GroupId(&self, pgroup: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2738 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(pgroup)).ok() 2739 } 2740 #[cfg(feature = "Win32_Foundation")] SetGroupId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0) -> ::windows::runtime::Result<()>2741 pub unsafe fn SetGroupId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, group: Param0) -> ::windows::runtime::Result<()> { 2742 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), group.into_param().abi()).ok() 2743 } RunLevel(&self, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> ::windows::runtime::Result<()>2744 pub unsafe fn RunLevel(&self, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> ::windows::runtime::Result<()> { 2745 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), ::std::mem::transmute(prunlevel)).ok() 2746 } SetRunLevel(&self, runlevel: TASK_RUNLEVEL_TYPE) -> ::windows::runtime::Result<()>2747 pub unsafe fn SetRunLevel(&self, runlevel: TASK_RUNLEVEL_TYPE) -> ::windows::runtime::Result<()> { 2748 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(runlevel)).ok() 2749 } 2750 } 2751 unsafe impl ::windows::runtime::Interface for IPrincipal { 2752 type Vtable = IPrincipal_abi; 2753 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3649917413, 51636, 18794, [169, 193, 24, 152, 2, 97, 207, 15]); 2754 } 2755 impl ::std::convert::From<IPrincipal> for ::windows::runtime::IUnknown { from(value: IPrincipal) -> Self2756 fn from(value: IPrincipal) -> Self { 2757 unsafe { ::std::mem::transmute(value) } 2758 } 2759 } 2760 impl ::std::convert::From<&IPrincipal> for ::windows::runtime::IUnknown { from(value: &IPrincipal) -> Self2761 fn from(value: &IPrincipal) -> Self { 2762 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2763 } 2764 } 2765 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IPrincipal { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2766 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2767 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2768 } 2769 } 2770 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IPrincipal { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2771 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2772 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2773 } 2774 } 2775 #[cfg(feature = "Win32_System_Ole_Automation")] 2776 impl ::std::convert::From<IPrincipal> for super::Ole::Automation::IDispatch { from(value: IPrincipal) -> Self2777 fn from(value: IPrincipal) -> Self { 2778 unsafe { ::std::mem::transmute(value) } 2779 } 2780 } 2781 #[cfg(feature = "Win32_System_Ole_Automation")] 2782 impl ::std::convert::From<&IPrincipal> for super::Ole::Automation::IDispatch { from(value: &IPrincipal) -> Self2783 fn from(value: &IPrincipal) -> Self { 2784 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2785 } 2786 } 2787 #[cfg(feature = "Win32_System_Ole_Automation")] 2788 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IPrincipal { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2789 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2790 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2791 } 2792 } 2793 #[cfg(feature = "Win32_System_Ole_Automation")] 2794 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IPrincipal { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2795 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2796 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2797 } 2798 } 2799 #[repr(C)] 2800 #[doc(hidden)] 2801 pub struct IPrincipal_abi( 2802 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2803 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2804 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2805 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2806 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2807 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2808 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2809 #[cfg(not(feature = "Win32_Foundation"))] usize, 2810 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2811 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2812 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2813 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2814 #[cfg(not(feature = "Win32_Foundation"))] usize, 2815 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2816 #[cfg(not(feature = "Win32_Foundation"))] usize, 2817 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2818 #[cfg(not(feature = "Win32_Foundation"))] usize, 2819 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2820 #[cfg(not(feature = "Win32_Foundation"))] usize, 2821 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puser: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2822 #[cfg(not(feature = "Win32_Foundation"))] usize, 2823 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, user: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2824 #[cfg(not(feature = "Win32_Foundation"))] usize, 2825 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, plogon: *mut TASK_LOGON_TYPE) -> ::windows::runtime::HRESULT, 2826 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, logon: TASK_LOGON_TYPE) -> ::windows::runtime::HRESULT, 2827 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pgroup: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2828 #[cfg(not(feature = "Win32_Foundation"))] usize, 2829 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, group: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2830 #[cfg(not(feature = "Win32_Foundation"))] usize, 2831 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prunlevel: *mut TASK_RUNLEVEL_TYPE) -> ::windows::runtime::HRESULT, 2832 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, runlevel: TASK_RUNLEVEL_TYPE) -> ::windows::runtime::HRESULT, 2833 ); 2834 #[repr(transparent)] 2835 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2836 pub struct IPrincipal2(::windows::runtime::IUnknown); 2837 impl IPrincipal2 { ProcessTokenSidType(&self, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> ::windows::runtime::Result<()>2838 pub unsafe fn ProcessTokenSidType(&self, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> ::windows::runtime::Result<()> { 2839 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pprocesstokensidtype)).ok() 2840 } SetProcessTokenSidType(&self, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> ::windows::runtime::Result<()>2841 pub unsafe fn SetProcessTokenSidType(&self, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> ::windows::runtime::Result<()> { 2842 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(processtokensidtype)).ok() 2843 } RequiredPrivilegeCount(&self, pcount: *mut i32) -> ::windows::runtime::Result<()>2844 pub unsafe fn RequiredPrivilegeCount(&self, pcount: *mut i32) -> ::windows::runtime::Result<()> { 2845 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcount)).ok() 2846 } 2847 #[cfg(feature = "Win32_Foundation")] RequiredPrivilege(&self, index: i32, pprivilege: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>2848 pub unsafe fn RequiredPrivilege(&self, index: i32, pprivilege: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 2849 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(index), ::std::mem::transmute(pprivilege)).ok() 2850 } 2851 #[cfg(feature = "Win32_Foundation")] AddRequiredPrivilege<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, privilege: Param0) -> ::windows::runtime::Result<()>2852 pub unsafe fn AddRequiredPrivilege<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, privilege: Param0) -> ::windows::runtime::Result<()> { 2853 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), privilege.into_param().abi()).ok() 2854 } 2855 } 2856 unsafe impl ::windows::runtime::Interface for IPrincipal2 { 2857 type Vtable = IPrincipal2_abi; 2858 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(612964782, 58181, 19053, [138, 235, 224, 211, 22, 92, 144, 78]); 2859 } 2860 impl ::std::convert::From<IPrincipal2> for ::windows::runtime::IUnknown { from(value: IPrincipal2) -> Self2861 fn from(value: IPrincipal2) -> Self { 2862 unsafe { ::std::mem::transmute(value) } 2863 } 2864 } 2865 impl ::std::convert::From<&IPrincipal2> for ::windows::runtime::IUnknown { from(value: &IPrincipal2) -> Self2866 fn from(value: &IPrincipal2) -> Self { 2867 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2868 } 2869 } 2870 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IPrincipal2 { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2871 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2872 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2873 } 2874 } 2875 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IPrincipal2 { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2876 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2877 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2878 } 2879 } 2880 #[cfg(feature = "Win32_System_Ole_Automation")] 2881 impl ::std::convert::From<IPrincipal2> for super::Ole::Automation::IDispatch { from(value: IPrincipal2) -> Self2882 fn from(value: IPrincipal2) -> Self { 2883 unsafe { ::std::mem::transmute(value) } 2884 } 2885 } 2886 #[cfg(feature = "Win32_System_Ole_Automation")] 2887 impl ::std::convert::From<&IPrincipal2> for super::Ole::Automation::IDispatch { from(value: &IPrincipal2) -> Self2888 fn from(value: &IPrincipal2) -> Self { 2889 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2890 } 2891 } 2892 #[cfg(feature = "Win32_System_Ole_Automation")] 2893 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IPrincipal2 { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2894 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2895 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 2896 } 2897 } 2898 #[cfg(feature = "Win32_System_Ole_Automation")] 2899 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IPrincipal2 { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>2900 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 2901 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 2902 } 2903 } 2904 #[repr(C)] 2905 #[doc(hidden)] 2906 pub struct IPrincipal2_abi( 2907 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2908 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2909 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2910 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 2911 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2912 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 2913 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 2914 #[cfg(not(feature = "Win32_Foundation"))] usize, 2915 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 2916 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 2917 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 2918 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprocesstokensidtype: *mut TASK_PROCESSTOKENSID_TYPE) -> ::windows::runtime::HRESULT, 2919 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, processtokensidtype: TASK_PROCESSTOKENSID_TYPE) -> ::windows::runtime::HRESULT, 2920 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcount: *mut i32) -> ::windows::runtime::HRESULT, 2921 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: i32, pprivilege: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2922 #[cfg(not(feature = "Win32_Foundation"))] usize, 2923 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, privilege: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 2924 #[cfg(not(feature = "Win32_Foundation"))] usize, 2925 ); 2926 #[repr(transparent)] 2927 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2928 pub struct IProvideTaskPage(::windows::runtime::IUnknown); 2929 impl IProvideTaskPage { 2930 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] GetPage<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(&self, tptype: TASKPAGE, fpersistchanges: Param1) -> ::windows::runtime::Result<super::super::UI::Controls::HPROPSHEETPAGE>2931 pub unsafe fn GetPage<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BOOL>>(&self, tptype: TASKPAGE, fpersistchanges: Param1) -> ::windows::runtime::Result<super::super::UI::Controls::HPROPSHEETPAGE> { 2932 let mut result__: <super::super::UI::Controls::HPROPSHEETPAGE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2933 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), ::std::mem::transmute(tptype), fpersistchanges.into_param().abi(), &mut result__).from_abi::<super::super::UI::Controls::HPROPSHEETPAGE>(result__) 2934 } 2935 } 2936 unsafe impl ::windows::runtime::Interface for IProvideTaskPage { 2937 type Vtable = IProvideTaskPage_abi; 2938 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1082549642, 52155, 4559, [182, 4, 0, 192, 79, 216, 213, 101]); 2939 } 2940 impl ::std::convert::From<IProvideTaskPage> for ::windows::runtime::IUnknown { from(value: IProvideTaskPage) -> Self2941 fn from(value: IProvideTaskPage) -> Self { 2942 unsafe { ::std::mem::transmute(value) } 2943 } 2944 } 2945 impl ::std::convert::From<&IProvideTaskPage> for ::windows::runtime::IUnknown { from(value: &IProvideTaskPage) -> Self2946 fn from(value: &IProvideTaskPage) -> Self { 2947 ::std::convert::From::from(::std::clone::Clone::clone(value)) 2948 } 2949 } 2950 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IProvideTaskPage { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2951 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2952 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 2953 } 2954 } 2955 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IProvideTaskPage { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>2956 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 2957 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 2958 } 2959 } 2960 #[repr(C)] 2961 #[doc(hidden)] 2962 pub struct IProvideTaskPage_abi( 2963 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 2964 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2965 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 2966 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, tptype: TASKPAGE, fpersistchanges: super::super::Foundation::BOOL, phpage: *mut super::super::UI::Controls::HPROPSHEETPAGE) -> ::windows::runtime::HRESULT, 2967 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_UI_Controls")))] usize, 2968 ); 2969 #[repr(transparent)] 2970 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 2971 pub struct IRegisteredTask(::windows::runtime::IUnknown); 2972 impl IRegisteredTask { 2973 #[cfg(feature = "Win32_Foundation")] Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2974 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 2975 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2976 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 2977 } 2978 #[cfg(feature = "Win32_Foundation")] Path(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>2979 pub unsafe fn Path(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 2980 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2981 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 2982 } State(&self) -> ::windows::runtime::Result<TASK_STATE>2983 pub unsafe fn State(&self) -> ::windows::runtime::Result<TASK_STATE> { 2984 let mut result__: <TASK_STATE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2985 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<TASK_STATE>(result__) 2986 } Enabled(&self) -> ::windows::runtime::Result<i16>2987 pub unsafe fn Enabled(&self) -> ::windows::runtime::Result<i16> { 2988 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2989 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) 2990 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>2991 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 2992 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 2993 } 2994 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Run<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, params: Param0) -> ::windows::runtime::Result<IRunningTask>2995 pub unsafe fn Run<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, params: Param0) -> ::windows::runtime::Result<IRunningTask> { 2996 let mut result__: <IRunningTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 2997 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), params.into_param().abi(), &mut result__).from_abi::<IRunningTask>(result__) 2998 } 2999 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] RunEx<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, params: Param0, flags: i32, sessionid: i32, user: Param3) -> ::windows::runtime::Result<IRunningTask>3000 pub unsafe fn RunEx<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param3: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, params: Param0, flags: i32, sessionid: i32, user: Param3) -> ::windows::runtime::Result<IRunningTask> { 3001 let mut result__: <IRunningTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3002 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), params.into_param().abi(), ::std::mem::transmute(flags), ::std::mem::transmute(sessionid), user.into_param().abi(), &mut result__).from_abi::<IRunningTask>(result__) 3003 } GetInstances(&self, flags: i32) -> ::windows::runtime::Result<IRunningTaskCollection>3004 pub unsafe fn GetInstances(&self, flags: i32) -> ::windows::runtime::Result<IRunningTaskCollection> { 3005 let mut result__: <IRunningTaskCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3006 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(flags), &mut result__).from_abi::<IRunningTaskCollection>(result__) 3007 } LastRunTime(&self) -> ::windows::runtime::Result<f64>3008 pub unsafe fn LastRunTime(&self) -> ::windows::runtime::Result<f64> { 3009 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3010 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) 3011 } LastTaskResult(&self) -> ::windows::runtime::Result<i32>3012 pub unsafe fn LastTaskResult(&self) -> ::windows::runtime::Result<i32> { 3013 let mut result__: <i32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3014 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) 3015 } NumberOfMissedRuns(&self) -> ::windows::runtime::Result<i32>3016 pub unsafe fn NumberOfMissedRuns(&self) -> ::windows::runtime::Result<i32> { 3017 let mut result__: <i32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3018 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) 3019 } NextRunTime(&self) -> ::windows::runtime::Result<f64>3020 pub unsafe fn NextRunTime(&self) -> ::windows::runtime::Result<f64> { 3021 let mut result__: <f64 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3022 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), &mut result__).from_abi::<f64>(result__) 3023 } Definition(&self) -> ::windows::runtime::Result<ITaskDefinition>3024 pub unsafe fn Definition(&self) -> ::windows::runtime::Result<ITaskDefinition> { 3025 let mut result__: <ITaskDefinition as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3026 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<ITaskDefinition>(result__) 3027 } 3028 #[cfg(feature = "Win32_Foundation")] Xml(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3029 pub unsafe fn Xml(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 3030 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3031 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 3032 } 3033 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3034 pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 3035 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3036 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(securityinformation), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 3037 } 3038 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, sddl: Param0, flags: i32) -> ::windows::runtime::Result<()>3039 pub unsafe fn SetSecurityDescriptor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, sddl: Param0, flags: i32) -> ::windows::runtime::Result<()> { 3040 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), sddl.into_param().abi(), ::std::mem::transmute(flags)).ok() 3041 } Stop(&self, flags: i32) -> ::windows::runtime::Result<()>3042 pub unsafe fn Stop(&self, flags: i32) -> ::windows::runtime::Result<()> { 3043 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(flags)).ok() 3044 } 3045 #[cfg(feature = "Win32_Foundation")] GetRunTimes(&self, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()>3046 pub unsafe fn GetRunTimes(&self, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()> { 3047 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(pststart), ::std::mem::transmute(pstend), ::std::mem::transmute(pcount), ::std::mem::transmute(pruntimes)).ok() 3048 } 3049 } 3050 unsafe impl ::windows::runtime::Interface for IRegisteredTask { 3051 type Vtable = IRegisteredTask_abi; 3052 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2626089760, 57059, 19921, [185, 114, 163, 3, 242, 107, 6, 30]); 3053 } 3054 impl ::std::convert::From<IRegisteredTask> for ::windows::runtime::IUnknown { from(value: IRegisteredTask) -> Self3055 fn from(value: IRegisteredTask) -> Self { 3056 unsafe { ::std::mem::transmute(value) } 3057 } 3058 } 3059 impl ::std::convert::From<&IRegisteredTask> for ::windows::runtime::IUnknown { from(value: &IRegisteredTask) -> Self3060 fn from(value: &IRegisteredTask) -> Self { 3061 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3062 } 3063 } 3064 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRegisteredTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3065 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3066 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3067 } 3068 } 3069 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRegisteredTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3070 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3071 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3072 } 3073 } 3074 #[cfg(feature = "Win32_System_Ole_Automation")] 3075 impl ::std::convert::From<IRegisteredTask> for super::Ole::Automation::IDispatch { from(value: IRegisteredTask) -> Self3076 fn from(value: IRegisteredTask) -> Self { 3077 unsafe { ::std::mem::transmute(value) } 3078 } 3079 } 3080 #[cfg(feature = "Win32_System_Ole_Automation")] 3081 impl ::std::convert::From<&IRegisteredTask> for super::Ole::Automation::IDispatch { from(value: &IRegisteredTask) -> Self3082 fn from(value: &IRegisteredTask) -> Self { 3083 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3084 } 3085 } 3086 #[cfg(feature = "Win32_System_Ole_Automation")] 3087 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRegisteredTask { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3088 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3089 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3090 } 3091 } 3092 #[cfg(feature = "Win32_System_Ole_Automation")] 3093 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRegisteredTask { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3094 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3095 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3096 } 3097 } 3098 #[repr(C)] 3099 #[doc(hidden)] 3100 pub struct IRegisteredTask_abi( 3101 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3102 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3103 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3104 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3105 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3106 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3107 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3108 #[cfg(not(feature = "Win32_Foundation"))] usize, 3109 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3110 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3111 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3112 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3113 #[cfg(not(feature = "Win32_Foundation"))] usize, 3114 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppath: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3115 #[cfg(not(feature = "Win32_Foundation"))] usize, 3116 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstate: *mut TASK_STATE) -> ::windows::runtime::HRESULT, 3117 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 3118 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 3119 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, params: ::std::mem::ManuallyDrop<super::Com::VARIANT>, pprunningtask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3120 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3121 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, params: ::std::mem::ManuallyDrop<super::Com::VARIANT>, flags: i32, sessionid: i32, user: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, pprunningtask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3122 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3123 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, flags: i32, pprunningtasks: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3124 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, plastruntime: *mut f64) -> ::windows::runtime::HRESULT, 3125 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, plasttaskresult: *mut i32) -> ::windows::runtime::HRESULT, 3126 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pnumberofmissedruns: *mut i32) -> ::windows::runtime::HRESULT, 3127 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pnextruntime: *mut f64) -> ::windows::runtime::HRESULT, 3128 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppdefinition: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3129 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pxml: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3130 #[cfg(not(feature = "Win32_Foundation"))] usize, 3131 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, securityinformation: i32, psddl: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3132 #[cfg(not(feature = "Win32_Foundation"))] usize, 3133 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sddl: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: i32) -> ::windows::runtime::HRESULT, 3134 #[cfg(not(feature = "Win32_Foundation"))] usize, 3135 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, flags: i32) -> ::windows::runtime::HRESULT, 3136 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pststart: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u32, pruntimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 3137 #[cfg(not(feature = "Win32_Foundation"))] usize, 3138 ); 3139 #[repr(transparent)] 3140 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3141 pub struct IRegisteredTaskCollection(::windows::runtime::IUnknown); 3142 impl IRegisteredTaskCollection { Count(&self) -> ::windows::runtime::Result<i32>3143 pub unsafe fn Count(&self) -> ::windows::runtime::Result<i32> { 3144 let mut result__: <i32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3145 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) 3146 } 3147 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Item<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<IRegisteredTask>3148 pub unsafe fn Item<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<IRegisteredTask> { 3149 let mut result__: <IRegisteredTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3150 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<IRegisteredTask>(result__) 3151 } _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown>3152 pub unsafe fn _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 3153 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3154 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 3155 } 3156 } 3157 unsafe impl ::windows::runtime::Interface for IRegisteredTaskCollection { 3158 type Vtable = IRegisteredTaskCollection_abi; 3159 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2254601908, 17063, 16868, [164, 217, 172, 51, 167, 47, 45, 82]); 3160 } 3161 impl ::std::convert::From<IRegisteredTaskCollection> for ::windows::runtime::IUnknown { from(value: IRegisteredTaskCollection) -> Self3162 fn from(value: IRegisteredTaskCollection) -> Self { 3163 unsafe { ::std::mem::transmute(value) } 3164 } 3165 } 3166 impl ::std::convert::From<&IRegisteredTaskCollection> for ::windows::runtime::IUnknown { from(value: &IRegisteredTaskCollection) -> Self3167 fn from(value: &IRegisteredTaskCollection) -> Self { 3168 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3169 } 3170 } 3171 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRegisteredTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3172 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3173 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3174 } 3175 } 3176 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRegisteredTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3177 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3178 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3179 } 3180 } 3181 #[cfg(feature = "Win32_System_Ole_Automation")] 3182 impl ::std::convert::From<IRegisteredTaskCollection> for super::Ole::Automation::IDispatch { from(value: IRegisteredTaskCollection) -> Self3183 fn from(value: IRegisteredTaskCollection) -> Self { 3184 unsafe { ::std::mem::transmute(value) } 3185 } 3186 } 3187 #[cfg(feature = "Win32_System_Ole_Automation")] 3188 impl ::std::convert::From<&IRegisteredTaskCollection> for super::Ole::Automation::IDispatch { from(value: &IRegisteredTaskCollection) -> Self3189 fn from(value: &IRegisteredTaskCollection) -> Self { 3190 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3191 } 3192 } 3193 #[cfg(feature = "Win32_System_Ole_Automation")] 3194 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRegisteredTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3195 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3196 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3197 } 3198 } 3199 #[cfg(feature = "Win32_System_Ole_Automation")] 3200 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRegisteredTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3201 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3202 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3203 } 3204 } 3205 #[repr(C)] 3206 #[doc(hidden)] 3207 pub struct IRegisteredTaskCollection_abi( 3208 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3209 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3210 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3211 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3212 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3213 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3214 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3215 #[cfg(not(feature = "Win32_Foundation"))] usize, 3216 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3217 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3218 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3219 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcount: *mut i32) -> ::windows::runtime::HRESULT, 3220 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: ::std::mem::ManuallyDrop<super::Com::VARIANT>, ppregisteredtask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3221 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3222 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenum: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3223 ); 3224 #[repr(transparent)] 3225 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3226 pub struct IRegistrationInfo(::windows::runtime::IUnknown); 3227 impl IRegistrationInfo { 3228 #[cfg(feature = "Win32_Foundation")] Description(&self, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3229 pub unsafe fn Description(&self, pdescription: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3230 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdescription)).ok() 3231 } 3232 #[cfg(feature = "Win32_Foundation")] SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, description: Param0) -> ::windows::runtime::Result<()>3233 pub unsafe fn SetDescription<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, description: Param0) -> ::windows::runtime::Result<()> { 3234 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), description.into_param().abi()).ok() 3235 } 3236 #[cfg(feature = "Win32_Foundation")] Author(&self, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3237 pub unsafe fn Author(&self, pauthor: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3238 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pauthor)).ok() 3239 } 3240 #[cfg(feature = "Win32_Foundation")] SetAuthor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, author: Param0) -> ::windows::runtime::Result<()>3241 pub unsafe fn SetAuthor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, author: Param0) -> ::windows::runtime::Result<()> { 3242 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), author.into_param().abi()).ok() 3243 } 3244 #[cfg(feature = "Win32_Foundation")] Version(&self, pversion: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3245 pub unsafe fn Version(&self, pversion: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3246 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(pversion)).ok() 3247 } 3248 #[cfg(feature = "Win32_Foundation")] SetVersion<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, version: Param0) -> ::windows::runtime::Result<()>3249 pub unsafe fn SetVersion<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, version: Param0) -> ::windows::runtime::Result<()> { 3250 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), version.into_param().abi()).ok() 3251 } 3252 #[cfg(feature = "Win32_Foundation")] Date(&self, pdate: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3253 pub unsafe fn Date(&self, pdate: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3254 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdate)).ok() 3255 } 3256 #[cfg(feature = "Win32_Foundation")] SetDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, date: Param0) -> ::windows::runtime::Result<()>3257 pub unsafe fn SetDate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, date: Param0) -> ::windows::runtime::Result<()> { 3258 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), date.into_param().abi()).ok() 3259 } 3260 #[cfg(feature = "Win32_Foundation")] Documentation(&self, pdocumentation: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3261 pub unsafe fn Documentation(&self, pdocumentation: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3262 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdocumentation)).ok() 3263 } 3264 #[cfg(feature = "Win32_Foundation")] SetDocumentation<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, documentation: Param0) -> ::windows::runtime::Result<()>3265 pub unsafe fn SetDocumentation<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, documentation: Param0) -> ::windows::runtime::Result<()> { 3266 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), documentation.into_param().abi()).ok() 3267 } 3268 #[cfg(feature = "Win32_Foundation")] XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3269 pub unsafe fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3270 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptext)).ok() 3271 } 3272 #[cfg(feature = "Win32_Foundation")] SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()>3273 pub unsafe fn SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()> { 3274 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), text.into_param().abi()).ok() 3275 } 3276 #[cfg(feature = "Win32_Foundation")] URI(&self, puri: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3277 pub unsafe fn URI(&self, puri: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3278 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(puri)).ok() 3279 } 3280 #[cfg(feature = "Win32_Foundation")] SetURI<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uri: Param0) -> ::windows::runtime::Result<()>3281 pub unsafe fn SetURI<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, uri: Param0) -> ::windows::runtime::Result<()> { 3282 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), uri.into_param().abi()).ok() 3283 } 3284 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] SecurityDescriptor(&self, psddl: *mut super::Com::VARIANT) -> ::windows::runtime::Result<()>3285 pub unsafe fn SecurityDescriptor(&self, psddl: *mut super::Com::VARIANT) -> ::windows::runtime::Result<()> { 3286 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(psddl)).ok() 3287 } 3288 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] SetSecurityDescriptor<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, sddl: Param0) -> ::windows::runtime::Result<()>3289 pub unsafe fn SetSecurityDescriptor<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, sddl: Param0) -> ::windows::runtime::Result<()> { 3290 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), sddl.into_param().abi()).ok() 3291 } 3292 #[cfg(feature = "Win32_Foundation")] Source(&self, psource: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3293 pub unsafe fn Source(&self, psource: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3294 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(psource)).ok() 3295 } 3296 #[cfg(feature = "Win32_Foundation")] SetSource<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, source: Param0) -> ::windows::runtime::Result<()>3297 pub unsafe fn SetSource<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, source: Param0) -> ::windows::runtime::Result<()> { 3298 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), source.into_param().abi()).ok() 3299 } 3300 } 3301 unsafe impl ::windows::runtime::Interface for IRegistrationInfo { 3302 type Vtable = IRegistrationInfo_abi; 3303 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1097698163, 52033, 20129, [128, 92, 155, 233, 165, 172, 74, 116]); 3304 } 3305 impl ::std::convert::From<IRegistrationInfo> for ::windows::runtime::IUnknown { from(value: IRegistrationInfo) -> Self3306 fn from(value: IRegistrationInfo) -> Self { 3307 unsafe { ::std::mem::transmute(value) } 3308 } 3309 } 3310 impl ::std::convert::From<&IRegistrationInfo> for ::windows::runtime::IUnknown { from(value: &IRegistrationInfo) -> Self3311 fn from(value: &IRegistrationInfo) -> Self { 3312 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3313 } 3314 } 3315 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRegistrationInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3316 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3317 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3318 } 3319 } 3320 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRegistrationInfo { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3321 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3322 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3323 } 3324 } 3325 #[cfg(feature = "Win32_System_Ole_Automation")] 3326 impl ::std::convert::From<IRegistrationInfo> for super::Ole::Automation::IDispatch { from(value: IRegistrationInfo) -> Self3327 fn from(value: IRegistrationInfo) -> Self { 3328 unsafe { ::std::mem::transmute(value) } 3329 } 3330 } 3331 #[cfg(feature = "Win32_System_Ole_Automation")] 3332 impl ::std::convert::From<&IRegistrationInfo> for super::Ole::Automation::IDispatch { from(value: &IRegistrationInfo) -> Self3333 fn from(value: &IRegistrationInfo) -> Self { 3334 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3335 } 3336 } 3337 #[cfg(feature = "Win32_System_Ole_Automation")] 3338 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRegistrationInfo { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3339 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3340 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3341 } 3342 } 3343 #[cfg(feature = "Win32_System_Ole_Automation")] 3344 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRegistrationInfo { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3345 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3346 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3347 } 3348 } 3349 #[repr(C)] 3350 #[doc(hidden)] 3351 pub struct IRegistrationInfo_abi( 3352 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3353 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3354 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3355 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3356 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3357 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3358 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3359 #[cfg(not(feature = "Win32_Foundation"))] usize, 3360 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3361 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3362 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3363 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdescription: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3364 #[cfg(not(feature = "Win32_Foundation"))] usize, 3365 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, description: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3366 #[cfg(not(feature = "Win32_Foundation"))] usize, 3367 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pauthor: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3368 #[cfg(not(feature = "Win32_Foundation"))] usize, 3369 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, author: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3370 #[cfg(not(feature = "Win32_Foundation"))] usize, 3371 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pversion: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3372 #[cfg(not(feature = "Win32_Foundation"))] usize, 3373 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, version: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3374 #[cfg(not(feature = "Win32_Foundation"))] usize, 3375 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdate: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3376 #[cfg(not(feature = "Win32_Foundation"))] usize, 3377 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, date: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3378 #[cfg(not(feature = "Win32_Foundation"))] usize, 3379 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdocumentation: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3380 #[cfg(not(feature = "Win32_Foundation"))] usize, 3381 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, documentation: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3382 #[cfg(not(feature = "Win32_Foundation"))] usize, 3383 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptext: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3384 #[cfg(not(feature = "Win32_Foundation"))] usize, 3385 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, text: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3386 #[cfg(not(feature = "Win32_Foundation"))] usize, 3387 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puri: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3388 #[cfg(not(feature = "Win32_Foundation"))] usize, 3389 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, uri: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3390 #[cfg(not(feature = "Win32_Foundation"))] usize, 3391 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, psddl: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::runtime::HRESULT, 3392 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3393 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sddl: ::std::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::runtime::HRESULT, 3394 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3395 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, psource: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3396 #[cfg(not(feature = "Win32_Foundation"))] usize, 3397 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, source: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3398 #[cfg(not(feature = "Win32_Foundation"))] usize, 3399 ); 3400 #[repr(transparent)] 3401 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3402 pub struct IRegistrationTrigger(::windows::runtime::IUnknown); 3403 impl IRegistrationTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>3404 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 3405 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3406 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 3407 } 3408 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>3409 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 3410 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3411 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 3412 } 3413 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>3414 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 3415 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 3416 } 3417 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>3418 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 3419 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 3420 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>3421 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 3422 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 3423 } 3424 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3425 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3426 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 3427 } 3428 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>3429 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 3430 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 3431 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>3432 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 3433 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3434 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 3435 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>3436 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 3437 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 3438 } 3439 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3440 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3441 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 3442 } 3443 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>3444 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 3445 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 3446 } 3447 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3448 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3449 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 3450 } 3451 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>3452 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 3453 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 3454 } 3455 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3456 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3457 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 3458 } 3459 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>3460 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 3461 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 3462 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>3463 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 3464 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 3465 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>3466 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 3467 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 3468 } 3469 #[cfg(feature = "Win32_Foundation")] Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3470 pub unsafe fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3471 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdelay)).ok() 3472 } 3473 #[cfg(feature = "Win32_Foundation")] SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()>3474 pub unsafe fn SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()> { 3475 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), delay.into_param().abi()).ok() 3476 } 3477 } 3478 unsafe impl ::windows::runtime::Interface for IRegistrationTrigger { 3479 type Vtable = IRegistrationTrigger_abi; 3480 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1284500538, 49688, 19980, [178, 61, 98, 144, 36, 219, 145, 162]); 3481 } 3482 impl ::std::convert::From<IRegistrationTrigger> for ::windows::runtime::IUnknown { from(value: IRegistrationTrigger) -> Self3483 fn from(value: IRegistrationTrigger) -> Self { 3484 unsafe { ::std::mem::transmute(value) } 3485 } 3486 } 3487 impl ::std::convert::From<&IRegistrationTrigger> for ::windows::runtime::IUnknown { from(value: &IRegistrationTrigger) -> Self3488 fn from(value: &IRegistrationTrigger) -> Self { 3489 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3490 } 3491 } 3492 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRegistrationTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3493 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3494 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3495 } 3496 } 3497 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRegistrationTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3498 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3499 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3500 } 3501 } 3502 impl ::std::convert::From<IRegistrationTrigger> for ITrigger { from(value: IRegistrationTrigger) -> Self3503 fn from(value: IRegistrationTrigger) -> Self { 3504 unsafe { ::std::mem::transmute(value) } 3505 } 3506 } 3507 impl ::std::convert::From<&IRegistrationTrigger> for ITrigger { from(value: &IRegistrationTrigger) -> Self3508 fn from(value: &IRegistrationTrigger) -> Self { 3509 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3510 } 3511 } 3512 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for IRegistrationTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>3513 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 3514 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 3515 } 3516 } 3517 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &IRegistrationTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>3518 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 3519 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 3520 } 3521 } 3522 #[cfg(feature = "Win32_System_Ole_Automation")] 3523 impl ::std::convert::From<IRegistrationTrigger> for super::Ole::Automation::IDispatch { from(value: IRegistrationTrigger) -> Self3524 fn from(value: IRegistrationTrigger) -> Self { 3525 unsafe { ::std::mem::transmute(value) } 3526 } 3527 } 3528 #[cfg(feature = "Win32_System_Ole_Automation")] 3529 impl ::std::convert::From<&IRegistrationTrigger> for super::Ole::Automation::IDispatch { from(value: &IRegistrationTrigger) -> Self3530 fn from(value: &IRegistrationTrigger) -> Self { 3531 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3532 } 3533 } 3534 #[cfg(feature = "Win32_System_Ole_Automation")] 3535 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRegistrationTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3536 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3537 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3538 } 3539 } 3540 #[cfg(feature = "Win32_System_Ole_Automation")] 3541 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRegistrationTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3542 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3543 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3544 } 3545 } 3546 #[repr(C)] 3547 #[doc(hidden)] 3548 pub struct IRegistrationTrigger_abi( 3549 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3550 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3551 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3552 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3553 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3554 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3555 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3556 #[cfg(not(feature = "Win32_Foundation"))] usize, 3557 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3558 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3559 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3560 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 3561 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3562 #[cfg(not(feature = "Win32_Foundation"))] usize, 3563 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3564 #[cfg(not(feature = "Win32_Foundation"))] usize, 3565 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3566 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3567 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3568 #[cfg(not(feature = "Win32_Foundation"))] usize, 3569 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3570 #[cfg(not(feature = "Win32_Foundation"))] usize, 3571 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3572 #[cfg(not(feature = "Win32_Foundation"))] usize, 3573 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3574 #[cfg(not(feature = "Win32_Foundation"))] usize, 3575 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3576 #[cfg(not(feature = "Win32_Foundation"))] usize, 3577 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3578 #[cfg(not(feature = "Win32_Foundation"))] usize, 3579 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 3580 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 3581 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3582 #[cfg(not(feature = "Win32_Foundation"))] usize, 3583 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, delay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3584 #[cfg(not(feature = "Win32_Foundation"))] usize, 3585 ); 3586 #[repr(transparent)] 3587 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3588 pub struct IRepetitionPattern(::windows::runtime::IUnknown); 3589 impl IRepetitionPattern { 3590 #[cfg(feature = "Win32_Foundation")] Interval(&self, pinterval: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3591 pub unsafe fn Interval(&self, pinterval: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3592 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pinterval)).ok() 3593 } 3594 #[cfg(feature = "Win32_Foundation")] SetInterval<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, interval: Param0) -> ::windows::runtime::Result<()>3595 pub unsafe fn SetInterval<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, interval: Param0) -> ::windows::runtime::Result<()> { 3596 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), interval.into_param().abi()).ok() 3597 } 3598 #[cfg(feature = "Win32_Foundation")] Duration(&self, pduration: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>3599 pub unsafe fn Duration(&self, pduration: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 3600 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pduration)).ok() 3601 } 3602 #[cfg(feature = "Win32_Foundation")] SetDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, duration: Param0) -> ::windows::runtime::Result<()>3603 pub unsafe fn SetDuration<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, duration: Param0) -> ::windows::runtime::Result<()> { 3604 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), duration.into_param().abi()).ok() 3605 } StopAtDurationEnd(&self, pstop: *mut i16) -> ::windows::runtime::Result<()>3606 pub unsafe fn StopAtDurationEnd(&self, pstop: *mut i16) -> ::windows::runtime::Result<()> { 3607 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstop)).ok() 3608 } SetStopAtDurationEnd(&self, stop: i16) -> ::windows::runtime::Result<()>3609 pub unsafe fn SetStopAtDurationEnd(&self, stop: i16) -> ::windows::runtime::Result<()> { 3610 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(stop)).ok() 3611 } 3612 } 3613 unsafe impl ::windows::runtime::Interface for IRepetitionPattern { 3614 type Vtable = IRepetitionPattern_abi; 3615 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2142874865, 9918, 16398, [133, 181, 41, 75, 156, 117, 223, 214]); 3616 } 3617 impl ::std::convert::From<IRepetitionPattern> for ::windows::runtime::IUnknown { from(value: IRepetitionPattern) -> Self3618 fn from(value: IRepetitionPattern) -> Self { 3619 unsafe { ::std::mem::transmute(value) } 3620 } 3621 } 3622 impl ::std::convert::From<&IRepetitionPattern> for ::windows::runtime::IUnknown { from(value: &IRepetitionPattern) -> Self3623 fn from(value: &IRepetitionPattern) -> Self { 3624 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3625 } 3626 } 3627 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRepetitionPattern { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3628 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3629 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3630 } 3631 } 3632 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRepetitionPattern { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3633 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3634 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3635 } 3636 } 3637 #[cfg(feature = "Win32_System_Ole_Automation")] 3638 impl ::std::convert::From<IRepetitionPattern> for super::Ole::Automation::IDispatch { from(value: IRepetitionPattern) -> Self3639 fn from(value: IRepetitionPattern) -> Self { 3640 unsafe { ::std::mem::transmute(value) } 3641 } 3642 } 3643 #[cfg(feature = "Win32_System_Ole_Automation")] 3644 impl ::std::convert::From<&IRepetitionPattern> for super::Ole::Automation::IDispatch { from(value: &IRepetitionPattern) -> Self3645 fn from(value: &IRepetitionPattern) -> Self { 3646 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3647 } 3648 } 3649 #[cfg(feature = "Win32_System_Ole_Automation")] 3650 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRepetitionPattern { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3651 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3652 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3653 } 3654 } 3655 #[cfg(feature = "Win32_System_Ole_Automation")] 3656 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRepetitionPattern { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3657 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3658 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3659 } 3660 } 3661 #[repr(C)] 3662 #[doc(hidden)] 3663 pub struct IRepetitionPattern_abi( 3664 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3665 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3666 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3667 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3668 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3669 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3670 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3671 #[cfg(not(feature = "Win32_Foundation"))] usize, 3672 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3673 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3674 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3675 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pinterval: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3676 #[cfg(not(feature = "Win32_Foundation"))] usize, 3677 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, interval: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3678 #[cfg(not(feature = "Win32_Foundation"))] usize, 3679 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pduration: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3680 #[cfg(not(feature = "Win32_Foundation"))] usize, 3681 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, duration: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3682 #[cfg(not(feature = "Win32_Foundation"))] usize, 3683 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstop: *mut i16) -> ::windows::runtime::HRESULT, 3684 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, stop: i16) -> ::windows::runtime::HRESULT, 3685 ); 3686 #[repr(transparent)] 3687 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3688 pub struct IRunningTask(::windows::runtime::IUnknown); 3689 impl IRunningTask { 3690 #[cfg(feature = "Win32_Foundation")] Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3691 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 3692 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3693 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 3694 } 3695 #[cfg(feature = "Win32_Foundation")] InstanceGuid(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3696 pub unsafe fn InstanceGuid(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 3697 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3698 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 3699 } 3700 #[cfg(feature = "Win32_Foundation")] Path(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3701 pub unsafe fn Path(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 3702 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3703 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 3704 } State(&self) -> ::windows::runtime::Result<TASK_STATE>3705 pub unsafe fn State(&self) -> ::windows::runtime::Result<TASK_STATE> { 3706 let mut result__: <TASK_STATE as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3707 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<TASK_STATE>(result__) 3708 } 3709 #[cfg(feature = "Win32_Foundation")] CurrentAction(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>3710 pub unsafe fn CurrentAction(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 3711 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3712 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 3713 } Stop(&self) -> ::windows::runtime::Result<()>3714 pub unsafe fn Stop(&self) -> ::windows::runtime::Result<()> { 3715 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self)).ok() 3716 } Refresh(&self) -> ::windows::runtime::Result<()>3717 pub unsafe fn Refresh(&self) -> ::windows::runtime::Result<()> { 3718 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self)).ok() 3719 } EnginePID(&self) -> ::windows::runtime::Result<u32>3720 pub unsafe fn EnginePID(&self) -> ::windows::runtime::Result<u32> { 3721 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3722 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 3723 } 3724 } 3725 unsafe impl ::windows::runtime::Interface for IRunningTask { 3726 type Vtable = IRunningTask_abi; 3727 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1698126075, 31642, 20254, [164, 113, 190, 235, 142, 155, 131, 78]); 3728 } 3729 impl ::std::convert::From<IRunningTask> for ::windows::runtime::IUnknown { from(value: IRunningTask) -> Self3730 fn from(value: IRunningTask) -> Self { 3731 unsafe { ::std::mem::transmute(value) } 3732 } 3733 } 3734 impl ::std::convert::From<&IRunningTask> for ::windows::runtime::IUnknown { from(value: &IRunningTask) -> Self3735 fn from(value: &IRunningTask) -> Self { 3736 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3737 } 3738 } 3739 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRunningTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3740 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3741 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3742 } 3743 } 3744 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRunningTask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3745 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3746 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3747 } 3748 } 3749 #[cfg(feature = "Win32_System_Ole_Automation")] 3750 impl ::std::convert::From<IRunningTask> for super::Ole::Automation::IDispatch { from(value: IRunningTask) -> Self3751 fn from(value: IRunningTask) -> Self { 3752 unsafe { ::std::mem::transmute(value) } 3753 } 3754 } 3755 #[cfg(feature = "Win32_System_Ole_Automation")] 3756 impl ::std::convert::From<&IRunningTask> for super::Ole::Automation::IDispatch { from(value: &IRunningTask) -> Self3757 fn from(value: &IRunningTask) -> Self { 3758 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3759 } 3760 } 3761 #[cfg(feature = "Win32_System_Ole_Automation")] 3762 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRunningTask { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3763 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3764 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3765 } 3766 } 3767 #[cfg(feature = "Win32_System_Ole_Automation")] 3768 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRunningTask { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3769 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3770 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3771 } 3772 } 3773 #[repr(C)] 3774 #[doc(hidden)] 3775 pub struct IRunningTask_abi( 3776 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3777 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3778 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3779 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3780 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3781 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3782 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3783 #[cfg(not(feature = "Win32_Foundation"))] usize, 3784 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3785 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3786 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3787 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3788 #[cfg(not(feature = "Win32_Foundation"))] usize, 3789 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pguid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3790 #[cfg(not(feature = "Win32_Foundation"))] usize, 3791 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppath: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3792 #[cfg(not(feature = "Win32_Foundation"))] usize, 3793 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstate: *mut TASK_STATE) -> ::windows::runtime::HRESULT, 3794 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 3795 #[cfg(not(feature = "Win32_Foundation"))] usize, 3796 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3797 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3798 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppid: *mut u32) -> ::windows::runtime::HRESULT, 3799 ); 3800 #[repr(transparent)] 3801 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3802 pub struct IRunningTaskCollection(::windows::runtime::IUnknown); 3803 impl IRunningTaskCollection { Count(&self) -> ::windows::runtime::Result<i32>3804 pub unsafe fn Count(&self) -> ::windows::runtime::Result<i32> { 3805 let mut result__: <i32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3806 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) 3807 } 3808 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Item<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<IRunningTask>3809 pub unsafe fn Item<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<IRunningTask> { 3810 let mut result__: <IRunningTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3811 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<IRunningTask>(result__) 3812 } _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown>3813 pub unsafe fn _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 3814 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3815 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 3816 } 3817 } 3818 unsafe impl ::windows::runtime::Interface for IRunningTaskCollection { 3819 type Vtable = IRunningTaskCollection_abi; 3820 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1785160011, 26664, 20460, [170, 84, 109, 82, 232, 241, 242, 219]); 3821 } 3822 impl ::std::convert::From<IRunningTaskCollection> for ::windows::runtime::IUnknown { from(value: IRunningTaskCollection) -> Self3823 fn from(value: IRunningTaskCollection) -> Self { 3824 unsafe { ::std::mem::transmute(value) } 3825 } 3826 } 3827 impl ::std::convert::From<&IRunningTaskCollection> for ::windows::runtime::IUnknown { from(value: &IRunningTaskCollection) -> Self3828 fn from(value: &IRunningTaskCollection) -> Self { 3829 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3830 } 3831 } 3832 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IRunningTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3833 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3834 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 3835 } 3836 } 3837 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IRunningTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>3838 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 3839 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 3840 } 3841 } 3842 #[cfg(feature = "Win32_System_Ole_Automation")] 3843 impl ::std::convert::From<IRunningTaskCollection> for super::Ole::Automation::IDispatch { from(value: IRunningTaskCollection) -> Self3844 fn from(value: IRunningTaskCollection) -> Self { 3845 unsafe { ::std::mem::transmute(value) } 3846 } 3847 } 3848 #[cfg(feature = "Win32_System_Ole_Automation")] 3849 impl ::std::convert::From<&IRunningTaskCollection> for super::Ole::Automation::IDispatch { from(value: &IRunningTaskCollection) -> Self3850 fn from(value: &IRunningTaskCollection) -> Self { 3851 ::std::convert::From::from(::std::clone::Clone::clone(value)) 3852 } 3853 } 3854 #[cfg(feature = "Win32_System_Ole_Automation")] 3855 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IRunningTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3856 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3857 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 3858 } 3859 } 3860 #[cfg(feature = "Win32_System_Ole_Automation")] 3861 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IRunningTaskCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>3862 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 3863 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 3864 } 3865 } 3866 #[repr(C)] 3867 #[doc(hidden)] 3868 pub struct IRunningTaskCollection_abi( 3869 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3870 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3871 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 3872 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 3873 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3874 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 3875 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 3876 #[cfg(not(feature = "Win32_Foundation"))] usize, 3877 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 3878 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 3879 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3880 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcount: *mut i32) -> ::windows::runtime::HRESULT, 3881 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: ::std::mem::ManuallyDrop<super::Com::VARIANT>, pprunningtask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3882 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 3883 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenum: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 3884 ); 3885 #[repr(transparent)] 3886 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 3887 pub struct IScheduledWorkItem(::windows::runtime::IUnknown); 3888 impl IScheduledWorkItem { CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut ::std::option::Option<ITaskTrigger>) -> ::windows::runtime::Result<()>3889 pub unsafe fn CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut ::std::option::Option<ITaskTrigger>) -> ::windows::runtime::Result<()> { 3890 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), ::std::mem::transmute(pinewtrigger), ::std::mem::transmute(pptrigger)).ok() 3891 } DeleteTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<()>3892 pub unsafe fn DeleteTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<()> { 3893 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itrigger)).ok() 3894 } GetTriggerCount(&self) -> ::windows::runtime::Result<u16>3895 pub unsafe fn GetTriggerCount(&self) -> ::windows::runtime::Result<u16> { 3896 let mut result__: <u16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3897 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) 3898 } GetTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<ITaskTrigger>3899 pub unsafe fn GetTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<ITaskTrigger> { 3900 let mut result__: <ITaskTrigger as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3901 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(itrigger), &mut result__).from_abi::<ITaskTrigger>(result__) 3902 } 3903 #[cfg(feature = "Win32_Foundation")] GetTriggerString(&self, itrigger: u16) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>3904 pub unsafe fn GetTriggerString(&self, itrigger: u16) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 3905 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3906 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(itrigger), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 3907 } 3908 #[cfg(feature = "Win32_Foundation")] GetRunTimes(&self, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()>3909 pub unsafe fn GetRunTimes(&self, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()> { 3910 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstbegin), ::std::mem::transmute(pstend), ::std::mem::transmute(pcount), ::std::mem::transmute(rgsttasktimes)).ok() 3911 } 3912 #[cfg(feature = "Win32_Foundation")] GetNextRunTime(&self, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()>3913 pub unsafe fn GetNextRunTime(&self, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()> { 3914 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstnextrun)).ok() 3915 } SetIdleWait(&self, widleminutes: u16, wdeadlineminutes: u16) -> ::windows::runtime::Result<()>3916 pub unsafe fn SetIdleWait(&self, widleminutes: u16, wdeadlineminutes: u16) -> ::windows::runtime::Result<()> { 3917 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(widleminutes), ::std::mem::transmute(wdeadlineminutes)).ok() 3918 } GetIdleWait(&self, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> ::windows::runtime::Result<()>3919 pub unsafe fn GetIdleWait(&self, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> ::windows::runtime::Result<()> { 3920 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(pwidleminutes), ::std::mem::transmute(pwdeadlineminutes)).ok() 3921 } Run(&self) -> ::windows::runtime::Result<()>3922 pub unsafe fn Run(&self) -> ::windows::runtime::Result<()> { 3923 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self)).ok() 3924 } Terminate(&self) -> ::windows::runtime::Result<()>3925 pub unsafe fn Terminate(&self) -> ::windows::runtime::Result<()> { 3926 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self)).ok() 3927 } 3928 #[cfg(feature = "Win32_Foundation")] EditWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HWND>>(&self, hparent: Param0, dwreserved: u32) -> ::windows::runtime::Result<()>3929 pub unsafe fn EditWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HWND>>(&self, hparent: Param0, dwreserved: u32) -> ::windows::runtime::Result<()> { 3930 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), hparent.into_param().abi(), ::std::mem::transmute(dwreserved)).ok() 3931 } 3932 #[cfg(feature = "Win32_Foundation")] GetMostRecentRunTime(&self) -> ::windows::runtime::Result<super::super::Foundation::SYSTEMTIME>3933 pub unsafe fn GetMostRecentRunTime(&self) -> ::windows::runtime::Result<super::super::Foundation::SYSTEMTIME> { 3934 let mut result__: <super::super::Foundation::SYSTEMTIME as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3935 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SYSTEMTIME>(result__) 3936 } GetStatus(&self) -> ::windows::runtime::Result<::windows::runtime::HRESULT>3937 pub unsafe fn GetStatus(&self) -> ::windows::runtime::Result<::windows::runtime::HRESULT> { 3938 let mut result__: <::windows::runtime::HRESULT as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3939 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::HRESULT>(result__) 3940 } GetExitCode(&self) -> ::windows::runtime::Result<u32>3941 pub unsafe fn GetExitCode(&self) -> ::windows::runtime::Result<u32> { 3942 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3943 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 3944 } 3945 #[cfg(feature = "Win32_Foundation")] SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcomment: Param0) -> ::windows::runtime::Result<()>3946 pub unsafe fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcomment: Param0) -> ::windows::runtime::Result<()> { 3947 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), pwszcomment.into_param().abi()).ok() 3948 } 3949 #[cfg(feature = "Win32_Foundation")] GetComment(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>3950 pub unsafe fn GetComment(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 3951 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3952 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 3953 } 3954 #[cfg(feature = "Win32_Foundation")] SetCreator<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcreator: Param0) -> ::windows::runtime::Result<()>3955 pub unsafe fn SetCreator<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcreator: Param0) -> ::windows::runtime::Result<()> { 3956 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), pwszcreator.into_param().abi()).ok() 3957 } 3958 #[cfg(feature = "Win32_Foundation")] GetCreator(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>3959 pub unsafe fn GetCreator(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 3960 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3961 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 3962 } SetWorkItemData(&self, cbdata: u16, rgbdata: *const u8) -> ::windows::runtime::Result<()>3963 pub unsafe fn SetWorkItemData(&self, cbdata: u16, rgbdata: *const u8) -> ::windows::runtime::Result<()> { 3964 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(cbdata), ::std::mem::transmute(rgbdata)).ok() 3965 } GetWorkItemData(&self, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> ::windows::runtime::Result<()>3966 pub unsafe fn GetWorkItemData(&self, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> ::windows::runtime::Result<()> { 3967 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcbdata), ::std::mem::transmute(prgbdata)).ok() 3968 } SetErrorRetryCount(&self, wretrycount: u16) -> ::windows::runtime::Result<()>3969 pub unsafe fn SetErrorRetryCount(&self, wretrycount: u16) -> ::windows::runtime::Result<()> { 3970 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(wretrycount)).ok() 3971 } GetErrorRetryCount(&self) -> ::windows::runtime::Result<u16>3972 pub unsafe fn GetErrorRetryCount(&self) -> ::windows::runtime::Result<u16> { 3973 let mut result__: <u16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3974 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) 3975 } SetErrorRetryInterval(&self, wretryinterval: u16) -> ::windows::runtime::Result<()>3976 pub unsafe fn SetErrorRetryInterval(&self, wretryinterval: u16) -> ::windows::runtime::Result<()> { 3977 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(wretryinterval)).ok() 3978 } GetErrorRetryInterval(&self) -> ::windows::runtime::Result<u16>3979 pub unsafe fn GetErrorRetryInterval(&self) -> ::windows::runtime::Result<u16> { 3980 let mut result__: <u16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3981 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) 3982 } SetFlags(&self, dwflags: u32) -> ::windows::runtime::Result<()>3983 pub unsafe fn SetFlags(&self, dwflags: u32) -> ::windows::runtime::Result<()> { 3984 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), ::std::mem::transmute(dwflags)).ok() 3985 } GetFlags(&self) -> ::windows::runtime::Result<u32>3986 pub unsafe fn GetFlags(&self) -> ::windows::runtime::Result<u32> { 3987 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3988 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 3989 } 3990 #[cfg(feature = "Win32_Foundation")] SetAccountInformation<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszaccountname: Param0, pwszpassword: Param1) -> ::windows::runtime::Result<()>3991 pub unsafe fn SetAccountInformation<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszaccountname: Param0, pwszpassword: Param1) -> ::windows::runtime::Result<()> { 3992 (::windows::runtime::Interface::vtable(self).30)(::std::mem::transmute_copy(self), pwszaccountname.into_param().abi(), pwszpassword.into_param().abi()).ok() 3993 } 3994 #[cfg(feature = "Win32_Foundation")] GetAccountInformation(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>3995 pub unsafe fn GetAccountInformation(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 3996 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 3997 (::windows::runtime::Interface::vtable(self).31)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 3998 } 3999 } 4000 unsafe impl ::windows::runtime::Interface for IScheduledWorkItem { 4001 type Vtable = IScheduledWorkItem_abi; 4002 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2797163248, 42161, 4560, [153, 125, 0, 170, 0, 104, 135, 236]); 4003 } 4004 impl ::std::convert::From<IScheduledWorkItem> for ::windows::runtime::IUnknown { from(value: IScheduledWorkItem) -> Self4005 fn from(value: IScheduledWorkItem) -> Self { 4006 unsafe { ::std::mem::transmute(value) } 4007 } 4008 } 4009 impl ::std::convert::From<&IScheduledWorkItem> for ::windows::runtime::IUnknown { from(value: &IScheduledWorkItem) -> Self4010 fn from(value: &IScheduledWorkItem) -> Self { 4011 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4012 } 4013 } 4014 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IScheduledWorkItem { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4015 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4016 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4017 } 4018 } 4019 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IScheduledWorkItem { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4020 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4021 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4022 } 4023 } 4024 #[repr(C)] 4025 #[doc(hidden)] 4026 pub struct IScheduledWorkItem_abi( 4027 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4028 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4029 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4030 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pinewtrigger: *mut u16, pptrigger: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4031 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itrigger: u16) -> ::windows::runtime::HRESULT, 4032 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwcount: *mut u16) -> ::windows::runtime::HRESULT, 4033 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itrigger: u16, pptrigger: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4034 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itrigger: u16, ppwsztrigger: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4035 #[cfg(not(feature = "Win32_Foundation"))] usize, 4036 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 4037 #[cfg(not(feature = "Win32_Foundation"))] usize, 4038 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 4039 #[cfg(not(feature = "Win32_Foundation"))] usize, 4040 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, widleminutes: u16, wdeadlineminutes: u16) -> ::windows::runtime::HRESULT, 4041 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> ::windows::runtime::HRESULT, 4042 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4043 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4044 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, hparent: super::super::Foundation::HWND, dwreserved: u32) -> ::windows::runtime::HRESULT, 4045 #[cfg(not(feature = "Win32_Foundation"))] usize, 4046 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstlastrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 4047 #[cfg(not(feature = "Win32_Foundation"))] usize, 4048 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phrstatus: *mut ::windows::runtime::HRESULT) -> ::windows::runtime::HRESULT, 4049 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwexitcode: *mut u32) -> ::windows::runtime::HRESULT, 4050 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszcomment: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4051 #[cfg(not(feature = "Win32_Foundation"))] usize, 4052 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszcomment: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4053 #[cfg(not(feature = "Win32_Foundation"))] usize, 4054 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszcreator: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4055 #[cfg(not(feature = "Win32_Foundation"))] usize, 4056 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszcreator: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4057 #[cfg(not(feature = "Win32_Foundation"))] usize, 4058 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, cbdata: u16, rgbdata: *const u8) -> ::windows::runtime::HRESULT, 4059 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> ::windows::runtime::HRESULT, 4060 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, wretrycount: u16) -> ::windows::runtime::HRESULT, 4061 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwretrycount: *mut u16) -> ::windows::runtime::HRESULT, 4062 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, wretryinterval: u16) -> ::windows::runtime::HRESULT, 4063 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwretryinterval: *mut u16) -> ::windows::runtime::HRESULT, 4064 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dwflags: u32) -> ::windows::runtime::HRESULT, 4065 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwflags: *mut u32) -> ::windows::runtime::HRESULT, 4066 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszaccountname: super::super::Foundation::PWSTR, pwszpassword: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4067 #[cfg(not(feature = "Win32_Foundation"))] usize, 4068 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszaccountname: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4069 #[cfg(not(feature = "Win32_Foundation"))] usize, 4070 ); 4071 #[repr(transparent)] 4072 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4073 pub struct ISessionStateChangeTrigger(::windows::runtime::IUnknown); 4074 impl ISessionStateChangeTrigger { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>4075 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 4076 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4077 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4078 } 4079 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>4080 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 4081 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4082 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 4083 } 4084 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>4085 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 4086 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 4087 } 4088 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>4089 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 4090 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 4091 } Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()>4092 pub unsafe fn Type(&self, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::Result<()> { 4093 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 4094 } 4095 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4096 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4097 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 4098 } 4099 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>4100 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 4101 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 4102 } Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern>4103 pub unsafe fn Repetition(&self) -> ::windows::runtime::Result<IRepetitionPattern> { 4104 let mut result__: <IRepetitionPattern as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4105 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRepetitionPattern>(result__) 4106 } SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()>4107 pub unsafe fn SetRepetition<'a, Param0: ::windows::runtime::IntoParam<'a, IRepetitionPattern>>(&self, prepeat: Param0) -> ::windows::runtime::Result<()> { 4108 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), prepeat.into_param().abi()).ok() 4109 } 4110 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4111 pub unsafe fn ExecutionTimeLimit(&self, ptimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4112 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptimelimit)).ok() 4113 } 4114 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()>4115 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, timelimit: Param0) -> ::windows::runtime::Result<()> { 4116 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), timelimit.into_param().abi()).ok() 4117 } 4118 #[cfg(feature = "Win32_Foundation")] StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4119 pub unsafe fn StartBoundary(&self, pstart: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4120 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstart)).ok() 4121 } 4122 #[cfg(feature = "Win32_Foundation")] SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()>4123 pub unsafe fn SetStartBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, start: Param0) -> ::windows::runtime::Result<()> { 4124 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), start.into_param().abi()).ok() 4125 } 4126 #[cfg(feature = "Win32_Foundation")] EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4127 pub unsafe fn EndBoundary(&self, pend: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4128 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(pend)).ok() 4129 } 4130 #[cfg(feature = "Win32_Foundation")] SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()>4131 pub unsafe fn SetEndBoundary<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, end: Param0) -> ::windows::runtime::Result<()> { 4132 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), end.into_param().abi()).ok() 4133 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>4134 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 4135 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 4136 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>4137 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 4138 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 4139 } 4140 #[cfg(feature = "Win32_Foundation")] Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4141 pub unsafe fn Delay(&self, pdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4142 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdelay)).ok() 4143 } 4144 #[cfg(feature = "Win32_Foundation")] SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()>4145 pub unsafe fn SetDelay<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, delay: Param0) -> ::windows::runtime::Result<()> { 4146 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), delay.into_param().abi()).ok() 4147 } 4148 #[cfg(feature = "Win32_Foundation")] UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4149 pub unsafe fn UserId(&self, puser: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4150 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(puser)).ok() 4151 } 4152 #[cfg(feature = "Win32_Foundation")] SetUserId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, user: Param0) -> ::windows::runtime::Result<()>4153 pub unsafe fn SetUserId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, user: Param0) -> ::windows::runtime::Result<()> { 4154 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), user.into_param().abi()).ok() 4155 } StateChange(&self, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::runtime::Result<()>4156 pub unsafe fn StateChange(&self, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::runtime::Result<()> { 4157 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 4158 } SetStateChange(&self, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::runtime::Result<()>4159 pub unsafe fn SetStateChange(&self, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::runtime::Result<()> { 4160 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), ::std::mem::transmute(r#type)).ok() 4161 } 4162 } 4163 unsafe impl ::windows::runtime::Interface for ISessionStateChangeTrigger { 4164 type Vtable = ISessionStateChangeTrigger_abi; 4165 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1968023323, 17285, 17525, [157, 217, 89, 130, 148, 250, 54, 65]); 4166 } 4167 impl ::std::convert::From<ISessionStateChangeTrigger> for ::windows::runtime::IUnknown { from(value: ISessionStateChangeTrigger) -> Self4168 fn from(value: ISessionStateChangeTrigger) -> Self { 4169 unsafe { ::std::mem::transmute(value) } 4170 } 4171 } 4172 impl ::std::convert::From<&ISessionStateChangeTrigger> for ::windows::runtime::IUnknown { from(value: &ISessionStateChangeTrigger) -> Self4173 fn from(value: &ISessionStateChangeTrigger) -> Self { 4174 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4175 } 4176 } 4177 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ISessionStateChangeTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4178 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4179 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4180 } 4181 } 4182 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ISessionStateChangeTrigger { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4183 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4184 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4185 } 4186 } 4187 impl ::std::convert::From<ISessionStateChangeTrigger> for ITrigger { from(value: ISessionStateChangeTrigger) -> Self4188 fn from(value: ISessionStateChangeTrigger) -> Self { 4189 unsafe { ::std::mem::transmute(value) } 4190 } 4191 } 4192 impl ::std::convert::From<&ISessionStateChangeTrigger> for ITrigger { from(value: &ISessionStateChangeTrigger) -> Self4193 fn from(value: &ISessionStateChangeTrigger) -> Self { 4194 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4195 } 4196 } 4197 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for ISessionStateChangeTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>4198 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 4199 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(self)) 4200 } 4201 } 4202 impl<'a> ::windows::runtime::IntoParam<'a, ITrigger> for &ISessionStateChangeTrigger { into_param(self) -> ::windows::runtime::Param<'a, ITrigger>4203 fn into_param(self) -> ::windows::runtime::Param<'a, ITrigger> { 4204 ::windows::runtime::Param::Owned(::std::convert::Into::<ITrigger>::into(::std::clone::Clone::clone(self))) 4205 } 4206 } 4207 #[cfg(feature = "Win32_System_Ole_Automation")] 4208 impl ::std::convert::From<ISessionStateChangeTrigger> for super::Ole::Automation::IDispatch { from(value: ISessionStateChangeTrigger) -> Self4209 fn from(value: ISessionStateChangeTrigger) -> Self { 4210 unsafe { ::std::mem::transmute(value) } 4211 } 4212 } 4213 #[cfg(feature = "Win32_System_Ole_Automation")] 4214 impl ::std::convert::From<&ISessionStateChangeTrigger> for super::Ole::Automation::IDispatch { from(value: &ISessionStateChangeTrigger) -> Self4215 fn from(value: &ISessionStateChangeTrigger) -> Self { 4216 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4217 } 4218 } 4219 #[cfg(feature = "Win32_System_Ole_Automation")] 4220 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ISessionStateChangeTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4221 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4222 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 4223 } 4224 } 4225 #[cfg(feature = "Win32_System_Ole_Automation")] 4226 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ISessionStateChangeTrigger { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4227 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4228 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 4229 } 4230 } 4231 #[repr(C)] 4232 #[doc(hidden)] 4233 pub struct ISessionStateChangeTrigger_abi( 4234 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4235 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4236 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4237 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 4238 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4239 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 4240 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 4241 #[cfg(not(feature = "Win32_Foundation"))] usize, 4242 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 4243 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 4244 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4245 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_TRIGGER_TYPE2) -> ::windows::runtime::HRESULT, 4246 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4247 #[cfg(not(feature = "Win32_Foundation"))] usize, 4248 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4249 #[cfg(not(feature = "Win32_Foundation"))] usize, 4250 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprepeat: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4251 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prepeat: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4252 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4253 #[cfg(not(feature = "Win32_Foundation"))] usize, 4254 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, timelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4255 #[cfg(not(feature = "Win32_Foundation"))] usize, 4256 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstart: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4257 #[cfg(not(feature = "Win32_Foundation"))] usize, 4258 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, start: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4259 #[cfg(not(feature = "Win32_Foundation"))] usize, 4260 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pend: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4261 #[cfg(not(feature = "Win32_Foundation"))] usize, 4262 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, end: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4263 #[cfg(not(feature = "Win32_Foundation"))] usize, 4264 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 4265 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 4266 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4267 #[cfg(not(feature = "Win32_Foundation"))] usize, 4268 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, delay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4269 #[cfg(not(feature = "Win32_Foundation"))] usize, 4270 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puser: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4271 #[cfg(not(feature = "Win32_Foundation"))] usize, 4272 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, user: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4273 #[cfg(not(feature = "Win32_Foundation"))] usize, 4274 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::runtime::HRESULT, 4275 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, r#type: TASK_SESSION_STATE_CHANGE_TYPE) -> ::windows::runtime::HRESULT, 4276 ); 4277 #[repr(transparent)] 4278 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4279 pub struct IShowMessageAction(::windows::runtime::IUnknown); 4280 impl IShowMessageAction { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>4281 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 4282 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4283 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4284 } 4285 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>4286 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 4287 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4288 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 4289 } 4290 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>4291 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 4292 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 4293 } 4294 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>4295 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 4296 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 4297 } 4298 #[cfg(feature = "Win32_Foundation")] Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4299 pub unsafe fn Id(&self, pid: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4300 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pid)).ok() 4301 } 4302 #[cfg(feature = "Win32_Foundation")] SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()>4303 pub unsafe fn SetId<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, id: Param0) -> ::windows::runtime::Result<()> { 4304 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), id.into_param().abi()).ok() 4305 } Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()>4306 pub unsafe fn Type(&self, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::Result<()> { 4307 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptype)).ok() 4308 } 4309 #[cfg(feature = "Win32_Foundation")] Title(&self, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4310 pub unsafe fn Title(&self, ptitle: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4311 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptitle)).ok() 4312 } 4313 #[cfg(feature = "Win32_Foundation")] SetTitle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, title: Param0) -> ::windows::runtime::Result<()>4314 pub unsafe fn SetTitle<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, title: Param0) -> ::windows::runtime::Result<()> { 4315 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), title.into_param().abi()).ok() 4316 } 4317 #[cfg(feature = "Win32_Foundation")] MessageBody(&self, pmessagebody: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4318 pub unsafe fn MessageBody(&self, pmessagebody: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4319 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(pmessagebody)).ok() 4320 } 4321 #[cfg(feature = "Win32_Foundation")] SetMessageBody<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, messagebody: Param0) -> ::windows::runtime::Result<()>4322 pub unsafe fn SetMessageBody<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, messagebody: Param0) -> ::windows::runtime::Result<()> { 4323 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), messagebody.into_param().abi()).ok() 4324 } 4325 } 4326 unsafe impl ::windows::runtime::Interface for IShowMessageAction { 4327 type Vtable = IShowMessageAction_abi; 4328 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(1348378216, 44937, 18104, [163, 15, 86, 22, 42, 131, 213, 55]); 4329 } 4330 impl ::std::convert::From<IShowMessageAction> for ::windows::runtime::IUnknown { from(value: IShowMessageAction) -> Self4331 fn from(value: IShowMessageAction) -> Self { 4332 unsafe { ::std::mem::transmute(value) } 4333 } 4334 } 4335 impl ::std::convert::From<&IShowMessageAction> for ::windows::runtime::IUnknown { from(value: &IShowMessageAction) -> Self4336 fn from(value: &IShowMessageAction) -> Self { 4337 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4338 } 4339 } 4340 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for IShowMessageAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4341 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4342 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4343 } 4344 } 4345 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &IShowMessageAction { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4346 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4347 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4348 } 4349 } 4350 impl ::std::convert::From<IShowMessageAction> for IAction { from(value: IShowMessageAction) -> Self4351 fn from(value: IShowMessageAction) -> Self { 4352 unsafe { ::std::mem::transmute(value) } 4353 } 4354 } 4355 impl ::std::convert::From<&IShowMessageAction> for IAction { from(value: &IShowMessageAction) -> Self4356 fn from(value: &IShowMessageAction) -> Self { 4357 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4358 } 4359 } 4360 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for IShowMessageAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>4361 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 4362 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(self)) 4363 } 4364 } 4365 impl<'a> ::windows::runtime::IntoParam<'a, IAction> for &IShowMessageAction { into_param(self) -> ::windows::runtime::Param<'a, IAction>4366 fn into_param(self) -> ::windows::runtime::Param<'a, IAction> { 4367 ::windows::runtime::Param::Owned(::std::convert::Into::<IAction>::into(::std::clone::Clone::clone(self))) 4368 } 4369 } 4370 #[cfg(feature = "Win32_System_Ole_Automation")] 4371 impl ::std::convert::From<IShowMessageAction> for super::Ole::Automation::IDispatch { from(value: IShowMessageAction) -> Self4372 fn from(value: IShowMessageAction) -> Self { 4373 unsafe { ::std::mem::transmute(value) } 4374 } 4375 } 4376 #[cfg(feature = "Win32_System_Ole_Automation")] 4377 impl ::std::convert::From<&IShowMessageAction> for super::Ole::Automation::IDispatch { from(value: &IShowMessageAction) -> Self4378 fn from(value: &IShowMessageAction) -> Self { 4379 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4380 } 4381 } 4382 #[cfg(feature = "Win32_System_Ole_Automation")] 4383 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for IShowMessageAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4384 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4385 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 4386 } 4387 } 4388 #[cfg(feature = "Win32_System_Ole_Automation")] 4389 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &IShowMessageAction { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4390 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4391 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 4392 } 4393 } 4394 #[repr(C)] 4395 #[doc(hidden)] 4396 pub struct IShowMessageAction_abi( 4397 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4398 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4399 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4400 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 4401 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4402 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 4403 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 4404 #[cfg(not(feature = "Win32_Foundation"))] usize, 4405 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 4406 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 4407 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4408 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pid: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4409 #[cfg(not(feature = "Win32_Foundation"))] usize, 4410 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, id: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4411 #[cfg(not(feature = "Win32_Foundation"))] usize, 4412 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptype: *mut TASK_ACTION_TYPE) -> ::windows::runtime::HRESULT, 4413 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptitle: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4414 #[cfg(not(feature = "Win32_Foundation"))] usize, 4415 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, title: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4416 #[cfg(not(feature = "Win32_Foundation"))] usize, 4417 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pmessagebody: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4418 #[cfg(not(feature = "Win32_Foundation"))] usize, 4419 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, messagebody: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4420 #[cfg(not(feature = "Win32_Foundation"))] usize, 4421 ); 4422 #[repr(transparent)] 4423 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4424 pub struct ITask(::windows::runtime::IUnknown); 4425 impl ITask { CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut ::std::option::Option<ITaskTrigger>) -> ::windows::runtime::Result<()>4426 pub unsafe fn CreateTrigger(&self, pinewtrigger: *mut u16, pptrigger: *mut ::std::option::Option<ITaskTrigger>) -> ::windows::runtime::Result<()> { 4427 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), ::std::mem::transmute(pinewtrigger), ::std::mem::transmute(pptrigger)).ok() 4428 } DeleteTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<()>4429 pub unsafe fn DeleteTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<()> { 4430 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itrigger)).ok() 4431 } GetTriggerCount(&self) -> ::windows::runtime::Result<u16>4432 pub unsafe fn GetTriggerCount(&self) -> ::windows::runtime::Result<u16> { 4433 let mut result__: <u16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4434 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) 4435 } GetTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<ITaskTrigger>4436 pub unsafe fn GetTrigger(&self, itrigger: u16) -> ::windows::runtime::Result<ITaskTrigger> { 4437 let mut result__: <ITaskTrigger as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4438 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(itrigger), &mut result__).from_abi::<ITaskTrigger>(result__) 4439 } 4440 #[cfg(feature = "Win32_Foundation")] GetTriggerString(&self, itrigger: u16) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4441 pub unsafe fn GetTriggerString(&self, itrigger: u16) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4442 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4443 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(itrigger), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4444 } 4445 #[cfg(feature = "Win32_Foundation")] GetRunTimes(&self, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()>4446 pub unsafe fn GetRunTimes(&self, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()> { 4447 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstbegin), ::std::mem::transmute(pstend), ::std::mem::transmute(pcount), ::std::mem::transmute(rgsttasktimes)).ok() 4448 } 4449 #[cfg(feature = "Win32_Foundation")] GetNextRunTime(&self, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()>4450 pub unsafe fn GetNextRunTime(&self, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::Result<()> { 4451 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstnextrun)).ok() 4452 } SetIdleWait(&self, widleminutes: u16, wdeadlineminutes: u16) -> ::windows::runtime::Result<()>4453 pub unsafe fn SetIdleWait(&self, widleminutes: u16, wdeadlineminutes: u16) -> ::windows::runtime::Result<()> { 4454 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(widleminutes), ::std::mem::transmute(wdeadlineminutes)).ok() 4455 } GetIdleWait(&self, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> ::windows::runtime::Result<()>4456 pub unsafe fn GetIdleWait(&self, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> ::windows::runtime::Result<()> { 4457 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(pwidleminutes), ::std::mem::transmute(pwdeadlineminutes)).ok() 4458 } Run(&self) -> ::windows::runtime::Result<()>4459 pub unsafe fn Run(&self) -> ::windows::runtime::Result<()> { 4460 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self)).ok() 4461 } Terminate(&self) -> ::windows::runtime::Result<()>4462 pub unsafe fn Terminate(&self) -> ::windows::runtime::Result<()> { 4463 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self)).ok() 4464 } 4465 #[cfg(feature = "Win32_Foundation")] EditWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HWND>>(&self, hparent: Param0, dwreserved: u32) -> ::windows::runtime::Result<()>4466 pub unsafe fn EditWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::HWND>>(&self, hparent: Param0, dwreserved: u32) -> ::windows::runtime::Result<()> { 4467 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), hparent.into_param().abi(), ::std::mem::transmute(dwreserved)).ok() 4468 } 4469 #[cfg(feature = "Win32_Foundation")] GetMostRecentRunTime(&self) -> ::windows::runtime::Result<super::super::Foundation::SYSTEMTIME>4470 pub unsafe fn GetMostRecentRunTime(&self) -> ::windows::runtime::Result<super::super::Foundation::SYSTEMTIME> { 4471 let mut result__: <super::super::Foundation::SYSTEMTIME as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4472 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::SYSTEMTIME>(result__) 4473 } GetStatus(&self) -> ::windows::runtime::Result<::windows::runtime::HRESULT>4474 pub unsafe fn GetStatus(&self) -> ::windows::runtime::Result<::windows::runtime::HRESULT> { 4475 let mut result__: <::windows::runtime::HRESULT as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4476 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::HRESULT>(result__) 4477 } GetExitCode(&self) -> ::windows::runtime::Result<u32>4478 pub unsafe fn GetExitCode(&self) -> ::windows::runtime::Result<u32> { 4479 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4480 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4481 } 4482 #[cfg(feature = "Win32_Foundation")] SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcomment: Param0) -> ::windows::runtime::Result<()>4483 pub unsafe fn SetComment<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcomment: Param0) -> ::windows::runtime::Result<()> { 4484 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), pwszcomment.into_param().abi()).ok() 4485 } 4486 #[cfg(feature = "Win32_Foundation")] GetComment(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4487 pub unsafe fn GetComment(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4488 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4489 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4490 } 4491 #[cfg(feature = "Win32_Foundation")] SetCreator<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcreator: Param0) -> ::windows::runtime::Result<()>4492 pub unsafe fn SetCreator<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcreator: Param0) -> ::windows::runtime::Result<()> { 4493 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), pwszcreator.into_param().abi()).ok() 4494 } 4495 #[cfg(feature = "Win32_Foundation")] GetCreator(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4496 pub unsafe fn GetCreator(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4497 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4498 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4499 } SetWorkItemData(&self, cbdata: u16, rgbdata: *const u8) -> ::windows::runtime::Result<()>4500 pub unsafe fn SetWorkItemData(&self, cbdata: u16, rgbdata: *const u8) -> ::windows::runtime::Result<()> { 4501 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(cbdata), ::std::mem::transmute(rgbdata)).ok() 4502 } GetWorkItemData(&self, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> ::windows::runtime::Result<()>4503 pub unsafe fn GetWorkItemData(&self, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> ::windows::runtime::Result<()> { 4504 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcbdata), ::std::mem::transmute(prgbdata)).ok() 4505 } SetErrorRetryCount(&self, wretrycount: u16) -> ::windows::runtime::Result<()>4506 pub unsafe fn SetErrorRetryCount(&self, wretrycount: u16) -> ::windows::runtime::Result<()> { 4507 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), ::std::mem::transmute(wretrycount)).ok() 4508 } GetErrorRetryCount(&self) -> ::windows::runtime::Result<u16>4509 pub unsafe fn GetErrorRetryCount(&self) -> ::windows::runtime::Result<u16> { 4510 let mut result__: <u16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4511 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) 4512 } SetErrorRetryInterval(&self, wretryinterval: u16) -> ::windows::runtime::Result<()>4513 pub unsafe fn SetErrorRetryInterval(&self, wretryinterval: u16) -> ::windows::runtime::Result<()> { 4514 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(wretryinterval)).ok() 4515 } GetErrorRetryInterval(&self) -> ::windows::runtime::Result<u16>4516 pub unsafe fn GetErrorRetryInterval(&self) -> ::windows::runtime::Result<u16> { 4517 let mut result__: <u16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4518 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u16>(result__) 4519 } SetFlags(&self, dwflags: u32) -> ::windows::runtime::Result<()>4520 pub unsafe fn SetFlags(&self, dwflags: u32) -> ::windows::runtime::Result<()> { 4521 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), ::std::mem::transmute(dwflags)).ok() 4522 } GetFlags(&self) -> ::windows::runtime::Result<u32>4523 pub unsafe fn GetFlags(&self) -> ::windows::runtime::Result<u32> { 4524 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4525 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4526 } 4527 #[cfg(feature = "Win32_Foundation")] SetAccountInformation<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszaccountname: Param0, pwszpassword: Param1) -> ::windows::runtime::Result<()>4528 pub unsafe fn SetAccountInformation<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszaccountname: Param0, pwszpassword: Param1) -> ::windows::runtime::Result<()> { 4529 (::windows::runtime::Interface::vtable(self).30)(::std::mem::transmute_copy(self), pwszaccountname.into_param().abi(), pwszpassword.into_param().abi()).ok() 4530 } 4531 #[cfg(feature = "Win32_Foundation")] GetAccountInformation(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4532 pub unsafe fn GetAccountInformation(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4533 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4534 (::windows::runtime::Interface::vtable(self).31)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4535 } 4536 #[cfg(feature = "Win32_Foundation")] SetApplicationName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszapplicationname: Param0) -> ::windows::runtime::Result<()>4537 pub unsafe fn SetApplicationName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszapplicationname: Param0) -> ::windows::runtime::Result<()> { 4538 (::windows::runtime::Interface::vtable(self).32)(::std::mem::transmute_copy(self), pwszapplicationname.into_param().abi()).ok() 4539 } 4540 #[cfg(feature = "Win32_Foundation")] GetApplicationName(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4541 pub unsafe fn GetApplicationName(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4542 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4543 (::windows::runtime::Interface::vtable(self).33)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4544 } 4545 #[cfg(feature = "Win32_Foundation")] SetParameters<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszparameters: Param0) -> ::windows::runtime::Result<()>4546 pub unsafe fn SetParameters<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszparameters: Param0) -> ::windows::runtime::Result<()> { 4547 (::windows::runtime::Interface::vtable(self).34)(::std::mem::transmute_copy(self), pwszparameters.into_param().abi()).ok() 4548 } 4549 #[cfg(feature = "Win32_Foundation")] GetParameters(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4550 pub unsafe fn GetParameters(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4551 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4552 (::windows::runtime::Interface::vtable(self).35)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4553 } 4554 #[cfg(feature = "Win32_Foundation")] SetWorkingDirectory<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszworkingdirectory: Param0) -> ::windows::runtime::Result<()>4555 pub unsafe fn SetWorkingDirectory<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszworkingdirectory: Param0) -> ::windows::runtime::Result<()> { 4556 (::windows::runtime::Interface::vtable(self).36)(::std::mem::transmute_copy(self), pwszworkingdirectory.into_param().abi()).ok() 4557 } 4558 #[cfg(feature = "Win32_Foundation")] GetWorkingDirectory(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>4559 pub unsafe fn GetWorkingDirectory(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 4560 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4561 (::windows::runtime::Interface::vtable(self).37)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 4562 } SetPriority(&self, dwpriority: u32) -> ::windows::runtime::Result<()>4563 pub unsafe fn SetPriority(&self, dwpriority: u32) -> ::windows::runtime::Result<()> { 4564 (::windows::runtime::Interface::vtable(self).38)(::std::mem::transmute_copy(self), ::std::mem::transmute(dwpriority)).ok() 4565 } GetPriority(&self) -> ::windows::runtime::Result<u32>4566 pub unsafe fn GetPriority(&self) -> ::windows::runtime::Result<u32> { 4567 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4568 (::windows::runtime::Interface::vtable(self).39)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4569 } SetTaskFlags(&self, dwflags: u32) -> ::windows::runtime::Result<()>4570 pub unsafe fn SetTaskFlags(&self, dwflags: u32) -> ::windows::runtime::Result<()> { 4571 (::windows::runtime::Interface::vtable(self).40)(::std::mem::transmute_copy(self), ::std::mem::transmute(dwflags)).ok() 4572 } GetTaskFlags(&self) -> ::windows::runtime::Result<u32>4573 pub unsafe fn GetTaskFlags(&self) -> ::windows::runtime::Result<u32> { 4574 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4575 (::windows::runtime::Interface::vtable(self).41)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4576 } SetMaxRunTime(&self, dwmaxruntimems: u32) -> ::windows::runtime::Result<()>4577 pub unsafe fn SetMaxRunTime(&self, dwmaxruntimems: u32) -> ::windows::runtime::Result<()> { 4578 (::windows::runtime::Interface::vtable(self).42)(::std::mem::transmute_copy(self), ::std::mem::transmute(dwmaxruntimems)).ok() 4579 } GetMaxRunTime(&self) -> ::windows::runtime::Result<u32>4580 pub unsafe fn GetMaxRunTime(&self) -> ::windows::runtime::Result<u32> { 4581 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4582 (::windows::runtime::Interface::vtable(self).43)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 4583 } 4584 } 4585 unsafe impl ::windows::runtime::Interface for ITask { 4586 type Vtable = ITask_abi; 4587 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(344708388, 41643, 4558, [177, 31, 0, 170, 0, 83, 5, 3]); 4588 } 4589 impl ::std::convert::From<ITask> for ::windows::runtime::IUnknown { from(value: ITask) -> Self4590 fn from(value: ITask) -> Self { 4591 unsafe { ::std::mem::transmute(value) } 4592 } 4593 } 4594 impl ::std::convert::From<&ITask> for ::windows::runtime::IUnknown { from(value: &ITask) -> Self4595 fn from(value: &ITask) -> Self { 4596 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4597 } 4598 } 4599 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4600 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4601 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4602 } 4603 } 4604 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITask { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4605 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4606 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4607 } 4608 } 4609 impl ::std::convert::From<ITask> for IScheduledWorkItem { from(value: ITask) -> Self4610 fn from(value: ITask) -> Self { 4611 unsafe { ::std::mem::transmute(value) } 4612 } 4613 } 4614 impl ::std::convert::From<&ITask> for IScheduledWorkItem { from(value: &ITask) -> Self4615 fn from(value: &ITask) -> Self { 4616 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4617 } 4618 } 4619 impl<'a> ::windows::runtime::IntoParam<'a, IScheduledWorkItem> for ITask { into_param(self) -> ::windows::runtime::Param<'a, IScheduledWorkItem>4620 fn into_param(self) -> ::windows::runtime::Param<'a, IScheduledWorkItem> { 4621 ::windows::runtime::Param::Owned(::std::convert::Into::<IScheduledWorkItem>::into(self)) 4622 } 4623 } 4624 impl<'a> ::windows::runtime::IntoParam<'a, IScheduledWorkItem> for &ITask { into_param(self) -> ::windows::runtime::Param<'a, IScheduledWorkItem>4625 fn into_param(self) -> ::windows::runtime::Param<'a, IScheduledWorkItem> { 4626 ::windows::runtime::Param::Owned(::std::convert::Into::<IScheduledWorkItem>::into(::std::clone::Clone::clone(self))) 4627 } 4628 } 4629 #[repr(C)] 4630 #[doc(hidden)] 4631 pub struct ITask_abi( 4632 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4633 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4634 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4635 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pinewtrigger: *mut u16, pptrigger: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4636 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itrigger: u16) -> ::windows::runtime::HRESULT, 4637 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwcount: *mut u16) -> ::windows::runtime::HRESULT, 4638 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itrigger: u16, pptrigger: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4639 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itrigger: u16, ppwsztrigger: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4640 #[cfg(not(feature = "Win32_Foundation"))] usize, 4641 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstbegin: *const super::super::Foundation::SYSTEMTIME, pstend: *const super::super::Foundation::SYSTEMTIME, pcount: *mut u16, rgsttasktimes: *mut *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 4642 #[cfg(not(feature = "Win32_Foundation"))] usize, 4643 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstnextrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 4644 #[cfg(not(feature = "Win32_Foundation"))] usize, 4645 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, widleminutes: u16, wdeadlineminutes: u16) -> ::windows::runtime::HRESULT, 4646 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwidleminutes: *mut u16, pwdeadlineminutes: *mut u16) -> ::windows::runtime::HRESULT, 4647 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4648 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4649 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, hparent: super::super::Foundation::HWND, dwreserved: u32) -> ::windows::runtime::HRESULT, 4650 #[cfg(not(feature = "Win32_Foundation"))] usize, 4651 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstlastrun: *mut super::super::Foundation::SYSTEMTIME) -> ::windows::runtime::HRESULT, 4652 #[cfg(not(feature = "Win32_Foundation"))] usize, 4653 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phrstatus: *mut ::windows::runtime::HRESULT) -> ::windows::runtime::HRESULT, 4654 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwexitcode: *mut u32) -> ::windows::runtime::HRESULT, 4655 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszcomment: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4656 #[cfg(not(feature = "Win32_Foundation"))] usize, 4657 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszcomment: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4658 #[cfg(not(feature = "Win32_Foundation"))] usize, 4659 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszcreator: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4660 #[cfg(not(feature = "Win32_Foundation"))] usize, 4661 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszcreator: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4662 #[cfg(not(feature = "Win32_Foundation"))] usize, 4663 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, cbdata: u16, rgbdata: *const u8) -> ::windows::runtime::HRESULT, 4664 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcbdata: *mut u16, prgbdata: *mut *mut u8) -> ::windows::runtime::HRESULT, 4665 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, wretrycount: u16) -> ::windows::runtime::HRESULT, 4666 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwretrycount: *mut u16) -> ::windows::runtime::HRESULT, 4667 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, wretryinterval: u16) -> ::windows::runtime::HRESULT, 4668 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwretryinterval: *mut u16) -> ::windows::runtime::HRESULT, 4669 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dwflags: u32) -> ::windows::runtime::HRESULT, 4670 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwflags: *mut u32) -> ::windows::runtime::HRESULT, 4671 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszaccountname: super::super::Foundation::PWSTR, pwszpassword: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4672 #[cfg(not(feature = "Win32_Foundation"))] usize, 4673 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszaccountname: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4674 #[cfg(not(feature = "Win32_Foundation"))] usize, 4675 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszapplicationname: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4676 #[cfg(not(feature = "Win32_Foundation"))] usize, 4677 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszapplicationname: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4678 #[cfg(not(feature = "Win32_Foundation"))] usize, 4679 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszparameters: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4680 #[cfg(not(feature = "Win32_Foundation"))] usize, 4681 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszparameters: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4682 #[cfg(not(feature = "Win32_Foundation"))] usize, 4683 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszworkingdirectory: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4684 #[cfg(not(feature = "Win32_Foundation"))] usize, 4685 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszworkingdirectory: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 4686 #[cfg(not(feature = "Win32_Foundation"))] usize, 4687 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dwpriority: u32) -> ::windows::runtime::HRESULT, 4688 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwpriority: *mut u32) -> ::windows::runtime::HRESULT, 4689 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dwflags: u32) -> ::windows::runtime::HRESULT, 4690 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwflags: *mut u32) -> ::windows::runtime::HRESULT, 4691 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dwmaxruntimems: u32) -> ::windows::runtime::HRESULT, 4692 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdwmaxruntimems: *mut u32) -> ::windows::runtime::HRESULT, 4693 ); 4694 #[repr(transparent)] 4695 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4696 pub struct ITaskDefinition(::windows::runtime::IUnknown); 4697 impl ITaskDefinition { RegistrationInfo(&self) -> ::windows::runtime::Result<IRegistrationInfo>4698 pub unsafe fn RegistrationInfo(&self) -> ::windows::runtime::Result<IRegistrationInfo> { 4699 let mut result__: <IRegistrationInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4700 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IRegistrationInfo>(result__) 4701 } SetRegistrationInfo<'a, Param0: ::windows::runtime::IntoParam<'a, IRegistrationInfo>>(&self, pregistrationinfo: Param0) -> ::windows::runtime::Result<()>4702 pub unsafe fn SetRegistrationInfo<'a, Param0: ::windows::runtime::IntoParam<'a, IRegistrationInfo>>(&self, pregistrationinfo: Param0) -> ::windows::runtime::Result<()> { 4703 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), pregistrationinfo.into_param().abi()).ok() 4704 } Triggers(&self) -> ::windows::runtime::Result<ITriggerCollection>4705 pub unsafe fn Triggers(&self) -> ::windows::runtime::Result<ITriggerCollection> { 4706 let mut result__: <ITriggerCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4707 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<ITriggerCollection>(result__) 4708 } SetTriggers<'a, Param0: ::windows::runtime::IntoParam<'a, ITriggerCollection>>(&self, ptriggers: Param0) -> ::windows::runtime::Result<()>4709 pub unsafe fn SetTriggers<'a, Param0: ::windows::runtime::IntoParam<'a, ITriggerCollection>>(&self, ptriggers: Param0) -> ::windows::runtime::Result<()> { 4710 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ptriggers.into_param().abi()).ok() 4711 } Settings(&self) -> ::windows::runtime::Result<ITaskSettings>4712 pub unsafe fn Settings(&self) -> ::windows::runtime::Result<ITaskSettings> { 4713 let mut result__: <ITaskSettings as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4714 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<ITaskSettings>(result__) 4715 } SetSettings<'a, Param0: ::windows::runtime::IntoParam<'a, ITaskSettings>>(&self, psettings: Param0) -> ::windows::runtime::Result<()>4716 pub unsafe fn SetSettings<'a, Param0: ::windows::runtime::IntoParam<'a, ITaskSettings>>(&self, psettings: Param0) -> ::windows::runtime::Result<()> { 4717 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), psettings.into_param().abi()).ok() 4718 } 4719 #[cfg(feature = "Win32_Foundation")] Data(&self, pdata: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4720 pub unsafe fn Data(&self, pdata: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4721 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdata)).ok() 4722 } 4723 #[cfg(feature = "Win32_Foundation")] SetData<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, data: Param0) -> ::windows::runtime::Result<()>4724 pub unsafe fn SetData<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, data: Param0) -> ::windows::runtime::Result<()> { 4725 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), data.into_param().abi()).ok() 4726 } Principal(&self) -> ::windows::runtime::Result<IPrincipal>4727 pub unsafe fn Principal(&self) -> ::windows::runtime::Result<IPrincipal> { 4728 let mut result__: <IPrincipal as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4729 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IPrincipal>(result__) 4730 } SetPrincipal<'a, Param0: ::windows::runtime::IntoParam<'a, IPrincipal>>(&self, pprincipal: Param0) -> ::windows::runtime::Result<()>4731 pub unsafe fn SetPrincipal<'a, Param0: ::windows::runtime::IntoParam<'a, IPrincipal>>(&self, pprincipal: Param0) -> ::windows::runtime::Result<()> { 4732 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), pprincipal.into_param().abi()).ok() 4733 } Actions(&self) -> ::windows::runtime::Result<IActionCollection>4734 pub unsafe fn Actions(&self) -> ::windows::runtime::Result<IActionCollection> { 4735 let mut result__: <IActionCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4736 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IActionCollection>(result__) 4737 } SetActions<'a, Param0: ::windows::runtime::IntoParam<'a, IActionCollection>>(&self, pactions: Param0) -> ::windows::runtime::Result<()>4738 pub unsafe fn SetActions<'a, Param0: ::windows::runtime::IntoParam<'a, IActionCollection>>(&self, pactions: Param0) -> ::windows::runtime::Result<()> { 4739 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), pactions.into_param().abi()).ok() 4740 } 4741 #[cfg(feature = "Win32_Foundation")] XmlText(&self, pxml: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>4742 pub unsafe fn XmlText(&self, pxml: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 4743 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(pxml)).ok() 4744 } 4745 #[cfg(feature = "Win32_Foundation")] SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, xml: Param0) -> ::windows::runtime::Result<()>4746 pub unsafe fn SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, xml: Param0) -> ::windows::runtime::Result<()> { 4747 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), xml.into_param().abi()).ok() 4748 } 4749 } 4750 unsafe impl ::windows::runtime::Interface for ITaskDefinition { 4751 type Vtable = ITaskDefinition_abi; 4752 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(4122775493, 21357, 20343, [184, 82, 251, 193, 53, 111, 222, 182]); 4753 } 4754 impl ::std::convert::From<ITaskDefinition> for ::windows::runtime::IUnknown { from(value: ITaskDefinition) -> Self4755 fn from(value: ITaskDefinition) -> Self { 4756 unsafe { ::std::mem::transmute(value) } 4757 } 4758 } 4759 impl ::std::convert::From<&ITaskDefinition> for ::windows::runtime::IUnknown { from(value: &ITaskDefinition) -> Self4760 fn from(value: &ITaskDefinition) -> Self { 4761 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4762 } 4763 } 4764 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskDefinition { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4765 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4766 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4767 } 4768 } 4769 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskDefinition { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4770 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4771 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4772 } 4773 } 4774 #[cfg(feature = "Win32_System_Ole_Automation")] 4775 impl ::std::convert::From<ITaskDefinition> for super::Ole::Automation::IDispatch { from(value: ITaskDefinition) -> Self4776 fn from(value: ITaskDefinition) -> Self { 4777 unsafe { ::std::mem::transmute(value) } 4778 } 4779 } 4780 #[cfg(feature = "Win32_System_Ole_Automation")] 4781 impl ::std::convert::From<&ITaskDefinition> for super::Ole::Automation::IDispatch { from(value: &ITaskDefinition) -> Self4782 fn from(value: &ITaskDefinition) -> Self { 4783 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4784 } 4785 } 4786 #[cfg(feature = "Win32_System_Ole_Automation")] 4787 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskDefinition { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4788 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4789 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 4790 } 4791 } 4792 #[cfg(feature = "Win32_System_Ole_Automation")] 4793 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskDefinition { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4794 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4795 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 4796 } 4797 } 4798 #[repr(C)] 4799 #[doc(hidden)] 4800 pub struct ITaskDefinition_abi( 4801 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4802 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4803 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4804 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 4805 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4806 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 4807 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 4808 #[cfg(not(feature = "Win32_Foundation"))] usize, 4809 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 4810 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 4811 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4812 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppregistrationinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4813 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pregistrationinfo: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4814 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pptriggers: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4815 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptriggers: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4816 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppsettings: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4817 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, psettings: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4818 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdata: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4819 #[cfg(not(feature = "Win32_Foundation"))] usize, 4820 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, data: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4821 #[cfg(not(feature = "Win32_Foundation"))] usize, 4822 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppprincipal: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4823 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pprincipal: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4824 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppactions: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4825 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pactions: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4826 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pxml: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4827 #[cfg(not(feature = "Win32_Foundation"))] usize, 4828 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, xml: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4829 #[cfg(not(feature = "Win32_Foundation"))] usize, 4830 ); 4831 #[repr(transparent)] 4832 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 4833 pub struct ITaskFolder(::windows::runtime::IUnknown); 4834 impl ITaskFolder { 4835 #[cfg(feature = "Win32_Foundation")] Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>4836 pub unsafe fn Name(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 4837 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4838 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 4839 } 4840 #[cfg(feature = "Win32_Foundation")] Path(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>4841 pub unsafe fn Path(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 4842 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4843 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 4844 } 4845 #[cfg(feature = "Win32_Foundation")] GetFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<ITaskFolder>4846 pub unsafe fn GetFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<ITaskFolder> { 4847 let mut result__: <ITaskFolder as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4848 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), path.into_param().abi(), &mut result__).from_abi::<ITaskFolder>(result__) 4849 } GetFolders(&self, flags: i32) -> ::windows::runtime::Result<ITaskFolderCollection>4850 pub unsafe fn GetFolders(&self, flags: i32) -> ::windows::runtime::Result<ITaskFolderCollection> { 4851 let mut result__: <ITaskFolderCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4852 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(flags), &mut result__).from_abi::<ITaskFolderCollection>(result__) 4853 } 4854 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] CreateFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, subfoldername: Param0, sddl: Param1) -> ::windows::runtime::Result<ITaskFolder>4855 pub unsafe fn CreateFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, subfoldername: Param0, sddl: Param1) -> ::windows::runtime::Result<ITaskFolder> { 4856 let mut result__: <ITaskFolder as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4857 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), subfoldername.into_param().abi(), sddl.into_param().abi(), &mut result__).from_abi::<ITaskFolder>(result__) 4858 } 4859 #[cfg(feature = "Win32_Foundation")] DeleteFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, subfoldername: Param0, flags: i32) -> ::windows::runtime::Result<()>4860 pub unsafe fn DeleteFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, subfoldername: Param0, flags: i32) -> ::windows::runtime::Result<()> { 4861 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), subfoldername.into_param().abi(), ::std::mem::transmute(flags)).ok() 4862 } 4863 #[cfg(feature = "Win32_Foundation")] GetTask<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<IRegisteredTask>4864 pub unsafe fn GetTask<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<IRegisteredTask> { 4865 let mut result__: <IRegisteredTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4866 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), path.into_param().abi(), &mut result__).from_abi::<IRegisteredTask>(result__) 4867 } GetTasks(&self, flags: i32) -> ::windows::runtime::Result<IRegisteredTaskCollection>4868 pub unsafe fn GetTasks(&self, flags: i32) -> ::windows::runtime::Result<IRegisteredTaskCollection> { 4869 let mut result__: <IRegisteredTaskCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4870 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(flags), &mut result__).from_abi::<IRegisteredTaskCollection>(result__) 4871 } 4872 #[cfg(feature = "Win32_Foundation")] DeleteTask<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, flags: i32) -> ::windows::runtime::Result<()>4873 pub unsafe fn DeleteTask<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, flags: i32) -> ::windows::runtime::Result<()> { 4874 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), name.into_param().abi(), ::std::mem::transmute(flags)).ok() 4875 } 4876 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] RegisterTask<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param4: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param6: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>( &self, path: Param0, xmltext: Param1, flags: i32, userid: Param3, password: Param4, logontype: TASK_LOGON_TYPE, sddl: Param6, ) -> ::windows::runtime::Result<IRegisteredTask>4877 pub unsafe fn RegisterTask<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param3: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param4: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param6: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>( 4878 &self, 4879 path: Param0, 4880 xmltext: Param1, 4881 flags: i32, 4882 userid: Param3, 4883 password: Param4, 4884 logontype: TASK_LOGON_TYPE, 4885 sddl: Param6, 4886 ) -> ::windows::runtime::Result<IRegisteredTask> { 4887 let mut result__: <IRegisteredTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4888 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), path.into_param().abi(), xmltext.into_param().abi(), ::std::mem::transmute(flags), userid.into_param().abi(), password.into_param().abi(), ::std::mem::transmute(logontype), sddl.into_param().abi(), &mut result__).from_abi::<IRegisteredTask>(result__) 4889 } 4890 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] RegisterTaskDefinition<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, ITaskDefinition>, Param3: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param4: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param6: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>( &self, path: Param0, pdefinition: Param1, flags: i32, userid: Param3, password: Param4, logontype: TASK_LOGON_TYPE, sddl: Param6, ) -> ::windows::runtime::Result<IRegisteredTask>4891 pub unsafe fn RegisterTaskDefinition<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, ITaskDefinition>, Param3: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param4: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param6: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>( 4892 &self, 4893 path: Param0, 4894 pdefinition: Param1, 4895 flags: i32, 4896 userid: Param3, 4897 password: Param4, 4898 logontype: TASK_LOGON_TYPE, 4899 sddl: Param6, 4900 ) -> ::windows::runtime::Result<IRegisteredTask> { 4901 let mut result__: <IRegisteredTask as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4902 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), path.into_param().abi(), pdefinition.into_param().abi(), ::std::mem::transmute(flags), userid.into_param().abi(), password.into_param().abi(), ::std::mem::transmute(logontype), sddl.into_param().abi(), &mut result__).from_abi::<IRegisteredTask>(result__) 4903 } 4904 #[cfg(feature = "Win32_Foundation")] GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::runtime::Result<super::super::Foundation::BSTR>4905 pub unsafe fn GetSecurityDescriptor(&self, securityinformation: i32) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 4906 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 4907 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(securityinformation), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 4908 } 4909 #[cfg(feature = "Win32_Foundation")] SetSecurityDescriptor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, sddl: Param0, flags: i32) -> ::windows::runtime::Result<()>4910 pub unsafe fn SetSecurityDescriptor<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, sddl: Param0, flags: i32) -> ::windows::runtime::Result<()> { 4911 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), sddl.into_param().abi(), ::std::mem::transmute(flags)).ok() 4912 } 4913 } 4914 unsafe impl ::windows::runtime::Interface for ITaskFolder { 4915 type Vtable = ITaskFolder_abi; 4916 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2365243490, 41088, 19477, [154, 136, 170, 124, 42, 248, 13, 252]); 4917 } 4918 impl ::std::convert::From<ITaskFolder> for ::windows::runtime::IUnknown { from(value: ITaskFolder) -> Self4919 fn from(value: ITaskFolder) -> Self { 4920 unsafe { ::std::mem::transmute(value) } 4921 } 4922 } 4923 impl ::std::convert::From<&ITaskFolder> for ::windows::runtime::IUnknown { from(value: &ITaskFolder) -> Self4924 fn from(value: &ITaskFolder) -> Self { 4925 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4926 } 4927 } 4928 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskFolder { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4929 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4930 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 4931 } 4932 } 4933 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskFolder { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>4934 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 4935 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 4936 } 4937 } 4938 #[cfg(feature = "Win32_System_Ole_Automation")] 4939 impl ::std::convert::From<ITaskFolder> for super::Ole::Automation::IDispatch { from(value: ITaskFolder) -> Self4940 fn from(value: ITaskFolder) -> Self { 4941 unsafe { ::std::mem::transmute(value) } 4942 } 4943 } 4944 #[cfg(feature = "Win32_System_Ole_Automation")] 4945 impl ::std::convert::From<&ITaskFolder> for super::Ole::Automation::IDispatch { from(value: &ITaskFolder) -> Self4946 fn from(value: &ITaskFolder) -> Self { 4947 ::std::convert::From::from(::std::clone::Clone::clone(value)) 4948 } 4949 } 4950 #[cfg(feature = "Win32_System_Ole_Automation")] 4951 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskFolder { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4952 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4953 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 4954 } 4955 } 4956 #[cfg(feature = "Win32_System_Ole_Automation")] 4957 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskFolder { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>4958 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 4959 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 4960 } 4961 } 4962 #[repr(C)] 4963 #[doc(hidden)] 4964 pub struct ITaskFolder_abi( 4965 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4966 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4967 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 4968 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 4969 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4970 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 4971 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 4972 #[cfg(not(feature = "Win32_Foundation"))] usize, 4973 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 4974 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 4975 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4976 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4977 #[cfg(not(feature = "Win32_Foundation"))] usize, 4978 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppath: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4979 #[cfg(not(feature = "Win32_Foundation"))] usize, 4980 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppfolder: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4981 #[cfg(not(feature = "Win32_Foundation"))] usize, 4982 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, flags: i32, ppfolders: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4983 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, subfoldername: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, sddl: ::std::mem::ManuallyDrop<super::Com::VARIANT>, ppfolder: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4984 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4985 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, subfoldername: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: i32) -> ::windows::runtime::HRESULT, 4986 #[cfg(not(feature = "Win32_Foundation"))] usize, 4987 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, pptask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4988 #[cfg(not(feature = "Win32_Foundation"))] usize, 4989 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, flags: i32, pptasks: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4990 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: i32) -> ::windows::runtime::HRESULT, 4991 #[cfg(not(feature = "Win32_Foundation"))] usize, 4992 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 4993 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, xmltext: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: i32, userid: ::std::mem::ManuallyDrop<super::Com::VARIANT>, password: ::std::mem::ManuallyDrop<super::Com::VARIANT>, logontype: TASK_LOGON_TYPE, sddl: ::std::mem::ManuallyDrop<super::Com::VARIANT>, pptask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4994 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4995 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 4996 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, pdefinition: ::windows::runtime::RawPtr, flags: i32, userid: ::std::mem::ManuallyDrop<super::Com::VARIANT>, password: ::std::mem::ManuallyDrop<super::Com::VARIANT>, logontype: TASK_LOGON_TYPE, sddl: ::std::mem::ManuallyDrop<super::Com::VARIANT>, pptask: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 4997 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 4998 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, securityinformation: i32, psddl: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 4999 #[cfg(not(feature = "Win32_Foundation"))] usize, 5000 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, sddl: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, flags: i32) -> ::windows::runtime::HRESULT, 5001 #[cfg(not(feature = "Win32_Foundation"))] usize, 5002 ); 5003 #[repr(transparent)] 5004 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5005 pub struct ITaskFolderCollection(::windows::runtime::IUnknown); 5006 impl ITaskFolderCollection { Count(&self) -> ::windows::runtime::Result<i32>5007 pub unsafe fn Count(&self) -> ::windows::runtime::Result<i32> { 5008 let mut result__: <i32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5009 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i32>(result__) 5010 } 5011 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Item<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<ITaskFolder>5012 pub unsafe fn Item<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, index: Param0) -> ::windows::runtime::Result<ITaskFolder> { 5013 let mut result__: <ITaskFolder as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5014 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), index.into_param().abi(), &mut result__).from_abi::<ITaskFolder>(result__) 5015 } _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown>5016 pub unsafe fn _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 5017 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5018 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 5019 } 5020 } 5021 unsafe impl ::windows::runtime::Interface for ITaskFolderCollection { 5022 type Vtable = ITaskFolderCollection_abi; 5023 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2031635046, 34404, 16959, [151, 241, 99, 115, 86, 165, 216, 18]); 5024 } 5025 impl ::std::convert::From<ITaskFolderCollection> for ::windows::runtime::IUnknown { from(value: ITaskFolderCollection) -> Self5026 fn from(value: ITaskFolderCollection) -> Self { 5027 unsafe { ::std::mem::transmute(value) } 5028 } 5029 } 5030 impl ::std::convert::From<&ITaskFolderCollection> for ::windows::runtime::IUnknown { from(value: &ITaskFolderCollection) -> Self5031 fn from(value: &ITaskFolderCollection) -> Self { 5032 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5033 } 5034 } 5035 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskFolderCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5036 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5037 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5038 } 5039 } 5040 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskFolderCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5041 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5042 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5043 } 5044 } 5045 #[cfg(feature = "Win32_System_Ole_Automation")] 5046 impl ::std::convert::From<ITaskFolderCollection> for super::Ole::Automation::IDispatch { from(value: ITaskFolderCollection) -> Self5047 fn from(value: ITaskFolderCollection) -> Self { 5048 unsafe { ::std::mem::transmute(value) } 5049 } 5050 } 5051 #[cfg(feature = "Win32_System_Ole_Automation")] 5052 impl ::std::convert::From<&ITaskFolderCollection> for super::Ole::Automation::IDispatch { from(value: &ITaskFolderCollection) -> Self5053 fn from(value: &ITaskFolderCollection) -> Self { 5054 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5055 } 5056 } 5057 #[cfg(feature = "Win32_System_Ole_Automation")] 5058 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskFolderCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5059 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5060 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 5061 } 5062 } 5063 #[cfg(feature = "Win32_System_Ole_Automation")] 5064 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskFolderCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5065 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5066 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 5067 } 5068 } 5069 #[repr(C)] 5070 #[doc(hidden)] 5071 pub struct ITaskFolderCollection_abi( 5072 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5073 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5074 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5075 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 5076 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5077 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 5078 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 5079 #[cfg(not(feature = "Win32_Foundation"))] usize, 5080 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 5081 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 5082 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5083 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcount: *mut i32) -> ::windows::runtime::HRESULT, 5084 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: ::std::mem::ManuallyDrop<super::Com::VARIANT>, ppfolder: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5085 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5086 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenum: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5087 ); 5088 #[repr(transparent)] 5089 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5090 pub struct ITaskHandler(::windows::runtime::IUnknown); 5091 impl ITaskHandler { 5092 #[cfg(feature = "Win32_Foundation")] Start<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, phandlerservices: Param0, data: Param1) -> ::windows::runtime::Result<()>5093 pub unsafe fn Start<'a, Param0: ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, phandlerservices: Param0, data: Param1) -> ::windows::runtime::Result<()> { 5094 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), phandlerservices.into_param().abi(), data.into_param().abi()).ok() 5095 } Stop(&self) -> ::windows::runtime::Result<::windows::runtime::HRESULT>5096 pub unsafe fn Stop(&self) -> ::windows::runtime::Result<::windows::runtime::HRESULT> { 5097 let mut result__: <::windows::runtime::HRESULT as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5098 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::HRESULT>(result__) 5099 } Pause(&self) -> ::windows::runtime::Result<()>5100 pub unsafe fn Pause(&self) -> ::windows::runtime::Result<()> { 5101 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self)).ok() 5102 } Resume(&self) -> ::windows::runtime::Result<()>5103 pub unsafe fn Resume(&self) -> ::windows::runtime::Result<()> { 5104 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self)).ok() 5105 } 5106 } 5107 unsafe impl ::windows::runtime::Interface for ITaskHandler { 5108 type Vtable = ITaskHandler_abi; 5109 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2208135010, 20769, 16393, [146, 52, 79, 13, 25, 57, 79, 4]); 5110 } 5111 impl ::std::convert::From<ITaskHandler> for ::windows::runtime::IUnknown { from(value: ITaskHandler) -> Self5112 fn from(value: ITaskHandler) -> Self { 5113 unsafe { ::std::mem::transmute(value) } 5114 } 5115 } 5116 impl ::std::convert::From<&ITaskHandler> for ::windows::runtime::IUnknown { from(value: &ITaskHandler) -> Self5117 fn from(value: &ITaskHandler) -> Self { 5118 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5119 } 5120 } 5121 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskHandler { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5122 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5123 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5124 } 5125 } 5126 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskHandler { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5127 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5128 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5129 } 5130 } 5131 #[repr(C)] 5132 #[doc(hidden)] 5133 pub struct ITaskHandler_abi( 5134 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5135 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5136 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5137 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phandlerservices: ::windows::runtime::RawPtr, data: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5138 #[cfg(not(feature = "Win32_Foundation"))] usize, 5139 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pretcode: *mut ::windows::runtime::HRESULT) -> ::windows::runtime::HRESULT, 5140 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5141 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5142 ); 5143 #[repr(transparent)] 5144 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5145 pub struct ITaskHandlerStatus(::windows::runtime::IUnknown); 5146 impl ITaskHandlerStatus { 5147 #[cfg(feature = "Win32_Foundation")] UpdateStatus<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, percentcomplete: i16, statusmessage: Param1) -> ::windows::runtime::Result<()>5148 pub unsafe fn UpdateStatus<'a, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, percentcomplete: i16, statusmessage: Param1) -> ::windows::runtime::Result<()> { 5149 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), ::std::mem::transmute(percentcomplete), statusmessage.into_param().abi()).ok() 5150 } TaskCompleted(&self, taskerrcode: ::windows::runtime::HRESULT) -> ::windows::runtime::Result<()>5151 pub unsafe fn TaskCompleted(&self, taskerrcode: ::windows::runtime::HRESULT) -> ::windows::runtime::Result<()> { 5152 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(taskerrcode)).ok() 5153 } 5154 } 5155 unsafe impl ::windows::runtime::Interface for ITaskHandlerStatus { 5156 type Vtable = ITaskHandlerStatus_abi; 5157 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3941366415, 10144, 19932, [134, 117, 20, 114, 106, 1, 163, 138]); 5158 } 5159 impl ::std::convert::From<ITaskHandlerStatus> for ::windows::runtime::IUnknown { from(value: ITaskHandlerStatus) -> Self5160 fn from(value: ITaskHandlerStatus) -> Self { 5161 unsafe { ::std::mem::transmute(value) } 5162 } 5163 } 5164 impl ::std::convert::From<&ITaskHandlerStatus> for ::windows::runtime::IUnknown { from(value: &ITaskHandlerStatus) -> Self5165 fn from(value: &ITaskHandlerStatus) -> Self { 5166 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5167 } 5168 } 5169 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskHandlerStatus { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5170 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5171 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5172 } 5173 } 5174 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskHandlerStatus { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5175 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5176 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5177 } 5178 } 5179 #[repr(C)] 5180 #[doc(hidden)] 5181 pub struct ITaskHandlerStatus_abi( 5182 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5183 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5184 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5185 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, percentcomplete: i16, statusmessage: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5186 #[cfg(not(feature = "Win32_Foundation"))] usize, 5187 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, taskerrcode: ::windows::runtime::HRESULT) -> ::windows::runtime::HRESULT, 5188 ); 5189 #[repr(transparent)] 5190 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5191 pub struct ITaskNamedValueCollection(::windows::runtime::IUnknown); 5192 impl ITaskNamedValueCollection { Count(&self, pcount: *mut i32) -> ::windows::runtime::Result<()>5193 pub unsafe fn Count(&self, pcount: *mut i32) -> ::windows::runtime::Result<()> { 5194 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcount)).ok() 5195 } Item(&self, index: i32) -> ::windows::runtime::Result<ITaskNamedValuePair>5196 pub unsafe fn Item(&self, index: i32) -> ::windows::runtime::Result<ITaskNamedValuePair> { 5197 let mut result__: <ITaskNamedValuePair as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5198 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(index), &mut result__).from_abi::<ITaskNamedValuePair>(result__) 5199 } _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown>5200 pub unsafe fn _NewEnum(&self) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 5201 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5202 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 5203 } 5204 #[cfg(feature = "Win32_Foundation")] Create<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, value: Param1) -> ::windows::runtime::Result<ITaskNamedValuePair>5205 pub unsafe fn Create<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>, Param1: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0, value: Param1) -> ::windows::runtime::Result<ITaskNamedValuePair> { 5206 let mut result__: <ITaskNamedValuePair as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5207 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), name.into_param().abi(), value.into_param().abi(), &mut result__).from_abi::<ITaskNamedValuePair>(result__) 5208 } Remove(&self, index: i32) -> ::windows::runtime::Result<()>5209 pub unsafe fn Remove(&self, index: i32) -> ::windows::runtime::Result<()> { 5210 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(index)).ok() 5211 } Clear(&self) -> ::windows::runtime::Result<()>5212 pub unsafe fn Clear(&self) -> ::windows::runtime::Result<()> { 5213 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self)).ok() 5214 } 5215 } 5216 unsafe impl ::windows::runtime::Interface for ITaskNamedValueCollection { 5217 type Vtable = ITaskNamedValueCollection_abi; 5218 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(3035595371, 25539, 18148, [165, 4, 239, 105, 228, 247, 234, 77]); 5219 } 5220 impl ::std::convert::From<ITaskNamedValueCollection> for ::windows::runtime::IUnknown { from(value: ITaskNamedValueCollection) -> Self5221 fn from(value: ITaskNamedValueCollection) -> Self { 5222 unsafe { ::std::mem::transmute(value) } 5223 } 5224 } 5225 impl ::std::convert::From<&ITaskNamedValueCollection> for ::windows::runtime::IUnknown { from(value: &ITaskNamedValueCollection) -> Self5226 fn from(value: &ITaskNamedValueCollection) -> Self { 5227 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5228 } 5229 } 5230 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskNamedValueCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5231 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5232 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5233 } 5234 } 5235 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskNamedValueCollection { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5236 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5237 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5238 } 5239 } 5240 #[cfg(feature = "Win32_System_Ole_Automation")] 5241 impl ::std::convert::From<ITaskNamedValueCollection> for super::Ole::Automation::IDispatch { from(value: ITaskNamedValueCollection) -> Self5242 fn from(value: ITaskNamedValueCollection) -> Self { 5243 unsafe { ::std::mem::transmute(value) } 5244 } 5245 } 5246 #[cfg(feature = "Win32_System_Ole_Automation")] 5247 impl ::std::convert::From<&ITaskNamedValueCollection> for super::Ole::Automation::IDispatch { from(value: &ITaskNamedValueCollection) -> Self5248 fn from(value: &ITaskNamedValueCollection) -> Self { 5249 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5250 } 5251 } 5252 #[cfg(feature = "Win32_System_Ole_Automation")] 5253 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskNamedValueCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5254 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5255 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 5256 } 5257 } 5258 #[cfg(feature = "Win32_System_Ole_Automation")] 5259 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskNamedValueCollection { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5260 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5261 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 5262 } 5263 } 5264 #[repr(C)] 5265 #[doc(hidden)] 5266 pub struct ITaskNamedValueCollection_abi( 5267 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5268 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5269 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5270 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 5271 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5272 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 5273 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 5274 #[cfg(not(feature = "Win32_Foundation"))] usize, 5275 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 5276 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 5277 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5278 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcount: *mut i32) -> ::windows::runtime::HRESULT, 5279 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: i32, pppair: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5280 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenum: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5281 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, value: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, pppair: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5282 #[cfg(not(feature = "Win32_Foundation"))] usize, 5283 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, index: i32) -> ::windows::runtime::HRESULT, 5284 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5285 ); 5286 #[repr(transparent)] 5287 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5288 pub struct ITaskNamedValuePair(::windows::runtime::IUnknown); 5289 impl ITaskNamedValuePair { 5290 #[cfg(feature = "Win32_Foundation")] Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5291 pub unsafe fn Name(&self, pname: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5292 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pname)).ok() 5293 } 5294 #[cfg(feature = "Win32_Foundation")] SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::runtime::Result<()>5295 pub unsafe fn SetName<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, name: Param0) -> ::windows::runtime::Result<()> { 5296 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), name.into_param().abi()).ok() 5297 } 5298 #[cfg(feature = "Win32_Foundation")] Value(&self, pvalue: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5299 pub unsafe fn Value(&self, pvalue: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5300 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(pvalue)).ok() 5301 } 5302 #[cfg(feature = "Win32_Foundation")] SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::runtime::Result<()>5303 pub unsafe fn SetValue<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, value: Param0) -> ::windows::runtime::Result<()> { 5304 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), value.into_param().abi()).ok() 5305 } 5306 } 5307 unsafe impl ::windows::runtime::Interface for ITaskNamedValuePair { 5308 type Vtable = ITaskNamedValuePair_abi; 5309 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(956530792, 11078, 19197, [134, 98, 123, 182, 248, 104, 210, 33]); 5310 } 5311 impl ::std::convert::From<ITaskNamedValuePair> for ::windows::runtime::IUnknown { from(value: ITaskNamedValuePair) -> Self5312 fn from(value: ITaskNamedValuePair) -> Self { 5313 unsafe { ::std::mem::transmute(value) } 5314 } 5315 } 5316 impl ::std::convert::From<&ITaskNamedValuePair> for ::windows::runtime::IUnknown { from(value: &ITaskNamedValuePair) -> Self5317 fn from(value: &ITaskNamedValuePair) -> Self { 5318 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5319 } 5320 } 5321 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskNamedValuePair { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5322 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5323 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5324 } 5325 } 5326 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskNamedValuePair { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5327 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5328 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5329 } 5330 } 5331 #[cfg(feature = "Win32_System_Ole_Automation")] 5332 impl ::std::convert::From<ITaskNamedValuePair> for super::Ole::Automation::IDispatch { from(value: ITaskNamedValuePair) -> Self5333 fn from(value: ITaskNamedValuePair) -> Self { 5334 unsafe { ::std::mem::transmute(value) } 5335 } 5336 } 5337 #[cfg(feature = "Win32_System_Ole_Automation")] 5338 impl ::std::convert::From<&ITaskNamedValuePair> for super::Ole::Automation::IDispatch { from(value: &ITaskNamedValuePair) -> Self5339 fn from(value: &ITaskNamedValuePair) -> Self { 5340 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5341 } 5342 } 5343 #[cfg(feature = "Win32_System_Ole_Automation")] 5344 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskNamedValuePair { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5345 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5346 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 5347 } 5348 } 5349 #[cfg(feature = "Win32_System_Ole_Automation")] 5350 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskNamedValuePair { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5351 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5352 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 5353 } 5354 } 5355 #[repr(C)] 5356 #[doc(hidden)] 5357 pub struct ITaskNamedValuePair_abi( 5358 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5359 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5360 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5361 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 5362 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5363 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 5364 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 5365 #[cfg(not(feature = "Win32_Foundation"))] usize, 5366 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 5367 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 5368 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5369 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pname: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5370 #[cfg(not(feature = "Win32_Foundation"))] usize, 5371 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, name: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5372 #[cfg(not(feature = "Win32_Foundation"))] usize, 5373 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pvalue: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5374 #[cfg(not(feature = "Win32_Foundation"))] usize, 5375 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, value: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5376 #[cfg(not(feature = "Win32_Foundation"))] usize, 5377 ); 5378 #[repr(transparent)] 5379 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5380 pub struct ITaskScheduler(::windows::runtime::IUnknown); 5381 impl ITaskScheduler { 5382 #[cfg(feature = "Win32_Foundation")] SetTargetComputer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcomputer: Param0) -> ::windows::runtime::Result<()>5383 pub unsafe fn SetTargetComputer<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszcomputer: Param0) -> ::windows::runtime::Result<()> { 5384 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), pwszcomputer.into_param().abi()).ok() 5385 } 5386 #[cfg(feature = "Win32_Foundation")] GetTargetComputer(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR>5387 pub unsafe fn GetTargetComputer(&self) -> ::windows::runtime::Result<super::super::Foundation::PWSTR> { 5388 let mut result__: <super::super::Foundation::PWSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5389 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::PWSTR>(result__) 5390 } Enum(&self) -> ::windows::runtime::Result<IEnumWorkItems>5391 pub unsafe fn Enum(&self) -> ::windows::runtime::Result<IEnumWorkItems> { 5392 let mut result__: <IEnumWorkItems as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5393 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IEnumWorkItems>(result__) 5394 } 5395 #[cfg(feature = "Win32_Foundation")] Activate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszname: Param0, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::Result<::windows::runtime::IUnknown>5396 pub unsafe fn Activate<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszname: Param0, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 5397 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5398 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), pwszname.into_param().abi(), ::std::mem::transmute(riid), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 5399 } 5400 #[cfg(feature = "Win32_Foundation")] Delete<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszname: Param0) -> ::windows::runtime::Result<()>5401 pub unsafe fn Delete<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszname: Param0) -> ::windows::runtime::Result<()> { 5402 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), pwszname.into_param().abi()).ok() 5403 } 5404 #[cfg(feature = "Win32_Foundation")] NewWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwsztaskname: Param0, rclsid: *const ::windows::runtime::GUID, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::Result<::windows::runtime::IUnknown>5405 pub unsafe fn NewWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwsztaskname: Param0, rclsid: *const ::windows::runtime::GUID, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::Result<::windows::runtime::IUnknown> { 5406 let mut result__: <::windows::runtime::IUnknown as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5407 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), pwsztaskname.into_param().abi(), ::std::mem::transmute(rclsid), ::std::mem::transmute(riid), &mut result__).from_abi::<::windows::runtime::IUnknown>(result__) 5408 } 5409 #[cfg(feature = "Win32_Foundation")] AddWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, IScheduledWorkItem>>(&self, pwsztaskname: Param0, pworkitem: Param1) -> ::windows::runtime::Result<()>5410 pub unsafe fn AddWorkItem<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>, Param1: ::windows::runtime::IntoParam<'a, IScheduledWorkItem>>(&self, pwsztaskname: Param0, pworkitem: Param1) -> ::windows::runtime::Result<()> { 5411 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), pwsztaskname.into_param().abi(), pworkitem.into_param().abi()).ok() 5412 } 5413 #[cfg(feature = "Win32_Foundation")] IsOfType<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszname: Param0, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::Result<()>5414 pub unsafe fn IsOfType<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::PWSTR>>(&self, pwszname: Param0, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::Result<()> { 5415 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), pwszname.into_param().abi(), ::std::mem::transmute(riid)).ok() 5416 } 5417 } 5418 unsafe impl ::windows::runtime::Interface for ITaskScheduler { 5419 type Vtable = ITaskScheduler_abi; 5420 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(344708391, 41643, 4558, [177, 31, 0, 170, 0, 83, 5, 3]); 5421 } 5422 impl ::std::convert::From<ITaskScheduler> for ::windows::runtime::IUnknown { from(value: ITaskScheduler) -> Self5423 fn from(value: ITaskScheduler) -> Self { 5424 unsafe { ::std::mem::transmute(value) } 5425 } 5426 } 5427 impl ::std::convert::From<&ITaskScheduler> for ::windows::runtime::IUnknown { from(value: &ITaskScheduler) -> Self5428 fn from(value: &ITaskScheduler) -> Self { 5429 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5430 } 5431 } 5432 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskScheduler { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5433 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5434 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5435 } 5436 } 5437 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskScheduler { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5438 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5439 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5440 } 5441 } 5442 #[repr(C)] 5443 #[doc(hidden)] 5444 pub struct ITaskScheduler_abi( 5445 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5446 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5447 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5448 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszcomputer: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 5449 #[cfg(not(feature = "Win32_Foundation"))] usize, 5450 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppwszcomputer: *mut super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 5451 #[cfg(not(feature = "Win32_Foundation"))] usize, 5452 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppenumworkitems: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5453 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszname: super::super::Foundation::PWSTR, riid: *const ::windows::runtime::GUID, ppunk: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5454 #[cfg(not(feature = "Win32_Foundation"))] usize, 5455 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszname: super::super::Foundation::PWSTR) -> ::windows::runtime::HRESULT, 5456 #[cfg(not(feature = "Win32_Foundation"))] usize, 5457 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwsztaskname: super::super::Foundation::PWSTR, rclsid: *const ::windows::runtime::GUID, riid: *const ::windows::runtime::GUID, ppunk: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5458 #[cfg(not(feature = "Win32_Foundation"))] usize, 5459 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwsztaskname: super::super::Foundation::PWSTR, pworkitem: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5460 #[cfg(not(feature = "Win32_Foundation"))] usize, 5461 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwszname: super::super::Foundation::PWSTR, riid: *const ::windows::runtime::GUID) -> ::windows::runtime::HRESULT, 5462 #[cfg(not(feature = "Win32_Foundation"))] usize, 5463 ); 5464 #[repr(transparent)] 5465 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5466 pub struct ITaskService(::windows::runtime::IUnknown); 5467 impl ITaskService { 5468 #[cfg(feature = "Win32_Foundation")] GetFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<ITaskFolder>5469 pub unsafe fn GetFolder<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, path: Param0) -> ::windows::runtime::Result<ITaskFolder> { 5470 let mut result__: <ITaskFolder as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5471 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), path.into_param().abi(), &mut result__).from_abi::<ITaskFolder>(result__) 5472 } GetRunningTasks(&self, flags: i32) -> ::windows::runtime::Result<IRunningTaskCollection>5473 pub unsafe fn GetRunningTasks(&self, flags: i32) -> ::windows::runtime::Result<IRunningTaskCollection> { 5474 let mut result__: <IRunningTaskCollection as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5475 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(flags), &mut result__).from_abi::<IRunningTaskCollection>(result__) 5476 } NewTask(&self, flags: u32) -> ::windows::runtime::Result<ITaskDefinition>5477 pub unsafe fn NewTask(&self, flags: u32) -> ::windows::runtime::Result<ITaskDefinition> { 5478 let mut result__: <ITaskDefinition as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5479 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(flags), &mut result__).from_abi::<ITaskDefinition>(result__) 5480 } 5481 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Connect<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param1: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param2: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param3: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, servername: Param0, user: Param1, domain: Param2, password: Param3) -> ::windows::runtime::Result<()>5482 pub unsafe fn Connect<'a, Param0: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param1: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param2: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>, Param3: ::windows::runtime::IntoParam<'a, super::Com::VARIANT>>(&self, servername: Param0, user: Param1, domain: Param2, password: Param3) -> ::windows::runtime::Result<()> { 5483 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), servername.into_param().abi(), user.into_param().abi(), domain.into_param().abi(), password.into_param().abi()).ok() 5484 } Connected(&self) -> ::windows::runtime::Result<i16>5485 pub unsafe fn Connected(&self) -> ::windows::runtime::Result<i16> { 5486 let mut result__: <i16 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5487 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), &mut result__).from_abi::<i16>(result__) 5488 } 5489 #[cfg(feature = "Win32_Foundation")] TargetServer(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>5490 pub unsafe fn TargetServer(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 5491 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5492 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 5493 } 5494 #[cfg(feature = "Win32_Foundation")] ConnectedUser(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>5495 pub unsafe fn ConnectedUser(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 5496 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5497 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 5498 } 5499 #[cfg(feature = "Win32_Foundation")] ConnectedDomain(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR>5500 pub unsafe fn ConnectedDomain(&self) -> ::windows::runtime::Result<super::super::Foundation::BSTR> { 5501 let mut result__: <super::super::Foundation::BSTR as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5502 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), &mut result__).from_abi::<super::super::Foundation::BSTR>(result__) 5503 } HighestVersion(&self) -> ::windows::runtime::Result<u32>5504 pub unsafe fn HighestVersion(&self) -> ::windows::runtime::Result<u32> { 5505 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5506 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 5507 } 5508 } 5509 unsafe impl ::windows::runtime::Interface for ITaskService { 5510 type Vtable = ITaskService_abi; 5511 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(799777991, 19881, 16403, [150, 151, 32, 204, 63, 212, 15, 133]); 5512 } 5513 impl ::std::convert::From<ITaskService> for ::windows::runtime::IUnknown { from(value: ITaskService) -> Self5514 fn from(value: ITaskService) -> Self { 5515 unsafe { ::std::mem::transmute(value) } 5516 } 5517 } 5518 impl ::std::convert::From<&ITaskService> for ::windows::runtime::IUnknown { from(value: &ITaskService) -> Self5519 fn from(value: &ITaskService) -> Self { 5520 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5521 } 5522 } 5523 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskService { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5524 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5525 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5526 } 5527 } 5528 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskService { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5529 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5530 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5531 } 5532 } 5533 #[cfg(feature = "Win32_System_Ole_Automation")] 5534 impl ::std::convert::From<ITaskService> for super::Ole::Automation::IDispatch { from(value: ITaskService) -> Self5535 fn from(value: ITaskService) -> Self { 5536 unsafe { ::std::mem::transmute(value) } 5537 } 5538 } 5539 #[cfg(feature = "Win32_System_Ole_Automation")] 5540 impl ::std::convert::From<&ITaskService> for super::Ole::Automation::IDispatch { from(value: &ITaskService) -> Self5541 fn from(value: &ITaskService) -> Self { 5542 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5543 } 5544 } 5545 #[cfg(feature = "Win32_System_Ole_Automation")] 5546 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskService { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5547 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5548 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 5549 } 5550 } 5551 #[cfg(feature = "Win32_System_Ole_Automation")] 5552 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskService { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5553 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5554 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 5555 } 5556 } 5557 #[repr(C)] 5558 #[doc(hidden)] 5559 pub struct ITaskService_abi( 5560 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5561 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5562 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5563 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 5564 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5565 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 5566 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 5567 #[cfg(not(feature = "Win32_Foundation"))] usize, 5568 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 5569 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 5570 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5571 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, path: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>, ppfolder: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5572 #[cfg(not(feature = "Win32_Foundation"))] usize, 5573 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, flags: i32, pprunningtasks: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5574 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, flags: u32, ppdefinition: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5575 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, servername: ::std::mem::ManuallyDrop<super::Com::VARIANT>, user: ::std::mem::ManuallyDrop<super::Com::VARIANT>, domain: ::std::mem::ManuallyDrop<super::Com::VARIANT>, password: ::std::mem::ManuallyDrop<super::Com::VARIANT>) -> ::windows::runtime::HRESULT, 5576 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5577 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pconnected: *mut i16) -> ::windows::runtime::HRESULT, 5578 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pserver: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5579 #[cfg(not(feature = "Win32_Foundation"))] usize, 5580 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puser: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5581 #[cfg(not(feature = "Win32_Foundation"))] usize, 5582 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdomain: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5583 #[cfg(not(feature = "Win32_Foundation"))] usize, 5584 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pversion: *mut u32) -> ::windows::runtime::HRESULT, 5585 ); 5586 #[repr(transparent)] 5587 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5588 pub struct ITaskSettings(::windows::runtime::IUnknown); 5589 impl ITaskSettings { AllowDemandStart(&self, pallowdemandstart: *mut i16) -> ::windows::runtime::Result<()>5590 pub unsafe fn AllowDemandStart(&self, pallowdemandstart: *mut i16) -> ::windows::runtime::Result<()> { 5591 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pallowdemandstart)).ok() 5592 } SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::runtime::Result<()>5593 pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::runtime::Result<()> { 5594 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(allowdemandstart)).ok() 5595 } 5596 #[cfg(feature = "Win32_Foundation")] RestartInterval(&self, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5597 pub unsafe fn RestartInterval(&self, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5598 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(prestartinterval)).ok() 5599 } 5600 #[cfg(feature = "Win32_Foundation")] SetRestartInterval<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, restartinterval: Param0) -> ::windows::runtime::Result<()>5601 pub unsafe fn SetRestartInterval<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, restartinterval: Param0) -> ::windows::runtime::Result<()> { 5602 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), restartinterval.into_param().abi()).ok() 5603 } RestartCount(&self, prestartcount: *mut i32) -> ::windows::runtime::Result<()>5604 pub unsafe fn RestartCount(&self, prestartcount: *mut i32) -> ::windows::runtime::Result<()> { 5605 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(prestartcount)).ok() 5606 } SetRestartCount(&self, restartcount: i32) -> ::windows::runtime::Result<()>5607 pub unsafe fn SetRestartCount(&self, restartcount: i32) -> ::windows::runtime::Result<()> { 5608 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(restartcount)).ok() 5609 } MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()>5610 pub unsafe fn MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()> { 5611 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(ppolicy)).ok() 5612 } SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()>5613 pub unsafe fn SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()> { 5614 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(policy)).ok() 5615 } StopIfGoingOnBatteries(&self, pstopifonbatteries: *mut i16) -> ::windows::runtime::Result<()>5616 pub unsafe fn StopIfGoingOnBatteries(&self, pstopifonbatteries: *mut i16) -> ::windows::runtime::Result<()> { 5617 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstopifonbatteries)).ok() 5618 } SetStopIfGoingOnBatteries(&self, stopifonbatteries: i16) -> ::windows::runtime::Result<()>5619 pub unsafe fn SetStopIfGoingOnBatteries(&self, stopifonbatteries: i16) -> ::windows::runtime::Result<()> { 5620 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(stopifonbatteries)).ok() 5621 } DisallowStartIfOnBatteries(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()>5622 pub unsafe fn DisallowStartIfOnBatteries(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()> { 5623 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdisallowstart)).ok() 5624 } SetDisallowStartIfOnBatteries(&self, disallowstart: i16) -> ::windows::runtime::Result<()>5625 pub unsafe fn SetDisallowStartIfOnBatteries(&self, disallowstart: i16) -> ::windows::runtime::Result<()> { 5626 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(disallowstart)).ok() 5627 } AllowHardTerminate(&self, pallowhardterminate: *mut i16) -> ::windows::runtime::Result<()>5628 pub unsafe fn AllowHardTerminate(&self, pallowhardterminate: *mut i16) -> ::windows::runtime::Result<()> { 5629 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(pallowhardterminate)).ok() 5630 } SetAllowHardTerminate(&self, allowhardterminate: i16) -> ::windows::runtime::Result<()>5631 pub unsafe fn SetAllowHardTerminate(&self, allowhardterminate: i16) -> ::windows::runtime::Result<()> { 5632 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(allowhardterminate)).ok() 5633 } StartWhenAvailable(&self, pstartwhenavailable: *mut i16) -> ::windows::runtime::Result<()>5634 pub unsafe fn StartWhenAvailable(&self, pstartwhenavailable: *mut i16) -> ::windows::runtime::Result<()> { 5635 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstartwhenavailable)).ok() 5636 } SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::runtime::Result<()>5637 pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::runtime::Result<()> { 5638 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(startwhenavailable)).ok() 5639 } 5640 #[cfg(feature = "Win32_Foundation")] XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5641 pub unsafe fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5642 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptext)).ok() 5643 } 5644 #[cfg(feature = "Win32_Foundation")] SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()>5645 pub unsafe fn SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()> { 5646 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), text.into_param().abi()).ok() 5647 } RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut i16) -> ::windows::runtime::Result<()>5648 pub unsafe fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut i16) -> ::windows::runtime::Result<()> { 5649 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), ::std::mem::transmute(prunonlyifnetworkavailable)).ok() 5650 } SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::runtime::Result<()>5651 pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::runtime::Result<()> { 5652 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(runonlyifnetworkavailable)).ok() 5653 } 5654 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5655 pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5656 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), ::std::mem::transmute(pexecutiontimelimit)).ok() 5657 } 5658 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, executiontimelimit: Param0) -> ::windows::runtime::Result<()>5659 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, executiontimelimit: Param0) -> ::windows::runtime::Result<()> { 5660 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), executiontimelimit.into_param().abi()).ok() 5661 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>5662 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 5663 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 5664 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>5665 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 5666 (::windows::runtime::Interface::vtable(self).30)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 5667 } 5668 #[cfg(feature = "Win32_Foundation")] DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5669 pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5670 (::windows::runtime::Interface::vtable(self).31)(::std::mem::transmute_copy(self), ::std::mem::transmute(pexpirationdelay)).ok() 5671 } 5672 #[cfg(feature = "Win32_Foundation")] SetDeleteExpiredTaskAfter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, expirationdelay: Param0) -> ::windows::runtime::Result<()>5673 pub unsafe fn SetDeleteExpiredTaskAfter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, expirationdelay: Param0) -> ::windows::runtime::Result<()> { 5674 (::windows::runtime::Interface::vtable(self).32)(::std::mem::transmute_copy(self), expirationdelay.into_param().abi()).ok() 5675 } Priority(&self, ppriority: *mut i32) -> ::windows::runtime::Result<()>5676 pub unsafe fn Priority(&self, ppriority: *mut i32) -> ::windows::runtime::Result<()> { 5677 (::windows::runtime::Interface::vtable(self).33)(::std::mem::transmute_copy(self), ::std::mem::transmute(ppriority)).ok() 5678 } SetPriority(&self, priority: i32) -> ::windows::runtime::Result<()>5679 pub unsafe fn SetPriority(&self, priority: i32) -> ::windows::runtime::Result<()> { 5680 (::windows::runtime::Interface::vtable(self).34)(::std::mem::transmute_copy(self), ::std::mem::transmute(priority)).ok() 5681 } Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::runtime::Result<()>5682 pub unsafe fn Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::runtime::Result<()> { 5683 (::windows::runtime::Interface::vtable(self).35)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcompatlevel)).ok() 5684 } SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> ::windows::runtime::Result<()>5685 pub unsafe fn SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> ::windows::runtime::Result<()> { 5686 (::windows::runtime::Interface::vtable(self).36)(::std::mem::transmute_copy(self), ::std::mem::transmute(compatlevel)).ok() 5687 } Hidden(&self, phidden: *mut i16) -> ::windows::runtime::Result<()>5688 pub unsafe fn Hidden(&self, phidden: *mut i16) -> ::windows::runtime::Result<()> { 5689 (::windows::runtime::Interface::vtable(self).37)(::std::mem::transmute_copy(self), ::std::mem::transmute(phidden)).ok() 5690 } SetHidden(&self, hidden: i16) -> ::windows::runtime::Result<()>5691 pub unsafe fn SetHidden(&self, hidden: i16) -> ::windows::runtime::Result<()> { 5692 (::windows::runtime::Interface::vtable(self).38)(::std::mem::transmute_copy(self), ::std::mem::transmute(hidden)).ok() 5693 } IdleSettings(&self) -> ::windows::runtime::Result<IIdleSettings>5694 pub unsafe fn IdleSettings(&self) -> ::windows::runtime::Result<IIdleSettings> { 5695 let mut result__: <IIdleSettings as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5696 (::windows::runtime::Interface::vtable(self).39)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IIdleSettings>(result__) 5697 } SetIdleSettings<'a, Param0: ::windows::runtime::IntoParam<'a, IIdleSettings>>(&self, pidlesettings: Param0) -> ::windows::runtime::Result<()>5698 pub unsafe fn SetIdleSettings<'a, Param0: ::windows::runtime::IntoParam<'a, IIdleSettings>>(&self, pidlesettings: Param0) -> ::windows::runtime::Result<()> { 5699 (::windows::runtime::Interface::vtable(self).40)(::std::mem::transmute_copy(self), pidlesettings.into_param().abi()).ok() 5700 } RunOnlyIfIdle(&self, prunonlyifidle: *mut i16) -> ::windows::runtime::Result<()>5701 pub unsafe fn RunOnlyIfIdle(&self, prunonlyifidle: *mut i16) -> ::windows::runtime::Result<()> { 5702 (::windows::runtime::Interface::vtable(self).41)(::std::mem::transmute_copy(self), ::std::mem::transmute(prunonlyifidle)).ok() 5703 } SetRunOnlyIfIdle(&self, runonlyifidle: i16) -> ::windows::runtime::Result<()>5704 pub unsafe fn SetRunOnlyIfIdle(&self, runonlyifidle: i16) -> ::windows::runtime::Result<()> { 5705 (::windows::runtime::Interface::vtable(self).42)(::std::mem::transmute_copy(self), ::std::mem::transmute(runonlyifidle)).ok() 5706 } WakeToRun(&self, pwake: *mut i16) -> ::windows::runtime::Result<()>5707 pub unsafe fn WakeToRun(&self, pwake: *mut i16) -> ::windows::runtime::Result<()> { 5708 (::windows::runtime::Interface::vtable(self).43)(::std::mem::transmute_copy(self), ::std::mem::transmute(pwake)).ok() 5709 } SetWakeToRun(&self, wake: i16) -> ::windows::runtime::Result<()>5710 pub unsafe fn SetWakeToRun(&self, wake: i16) -> ::windows::runtime::Result<()> { 5711 (::windows::runtime::Interface::vtable(self).44)(::std::mem::transmute_copy(self), ::std::mem::transmute(wake)).ok() 5712 } NetworkSettings(&self) -> ::windows::runtime::Result<INetworkSettings>5713 pub unsafe fn NetworkSettings(&self) -> ::windows::runtime::Result<INetworkSettings> { 5714 let mut result__: <INetworkSettings as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5715 (::windows::runtime::Interface::vtable(self).45)(::std::mem::transmute_copy(self), &mut result__).from_abi::<INetworkSettings>(result__) 5716 } SetNetworkSettings<'a, Param0: ::windows::runtime::IntoParam<'a, INetworkSettings>>(&self, pnetworksettings: Param0) -> ::windows::runtime::Result<()>5717 pub unsafe fn SetNetworkSettings<'a, Param0: ::windows::runtime::IntoParam<'a, INetworkSettings>>(&self, pnetworksettings: Param0) -> ::windows::runtime::Result<()> { 5718 (::windows::runtime::Interface::vtable(self).46)(::std::mem::transmute_copy(self), pnetworksettings.into_param().abi()).ok() 5719 } 5720 } 5721 unsafe impl ::windows::runtime::Interface for ITaskSettings { 5722 type Vtable = ITaskSettings_abi; 5723 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(2413064477, 11522, 19596, [135, 227, 239, 246, 153, 222, 18, 126]); 5724 } 5725 impl ::std::convert::From<ITaskSettings> for ::windows::runtime::IUnknown { from(value: ITaskSettings) -> Self5726 fn from(value: ITaskSettings) -> Self { 5727 unsafe { ::std::mem::transmute(value) } 5728 } 5729 } 5730 impl ::std::convert::From<&ITaskSettings> for ::windows::runtime::IUnknown { from(value: &ITaskSettings) -> Self5731 fn from(value: &ITaskSettings) -> Self { 5732 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5733 } 5734 } 5735 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5736 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5737 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5738 } 5739 } 5740 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskSettings { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5741 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5742 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5743 } 5744 } 5745 #[cfg(feature = "Win32_System_Ole_Automation")] 5746 impl ::std::convert::From<ITaskSettings> for super::Ole::Automation::IDispatch { from(value: ITaskSettings) -> Self5747 fn from(value: ITaskSettings) -> Self { 5748 unsafe { ::std::mem::transmute(value) } 5749 } 5750 } 5751 #[cfg(feature = "Win32_System_Ole_Automation")] 5752 impl ::std::convert::From<&ITaskSettings> for super::Ole::Automation::IDispatch { from(value: &ITaskSettings) -> Self5753 fn from(value: &ITaskSettings) -> Self { 5754 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5755 } 5756 } 5757 #[cfg(feature = "Win32_System_Ole_Automation")] 5758 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5759 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5760 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 5761 } 5762 } 5763 #[cfg(feature = "Win32_System_Ole_Automation")] 5764 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskSettings { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5765 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5766 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 5767 } 5768 } 5769 #[repr(C)] 5770 #[doc(hidden)] 5771 pub struct ITaskSettings_abi( 5772 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5773 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5774 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5775 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 5776 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5777 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 5778 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 5779 #[cfg(not(feature = "Win32_Foundation"))] usize, 5780 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 5781 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 5782 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5783 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pallowdemandstart: *mut i16) -> ::windows::runtime::HRESULT, 5784 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, allowdemandstart: i16) -> ::windows::runtime::HRESULT, 5785 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prestartinterval: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5786 #[cfg(not(feature = "Win32_Foundation"))] usize, 5787 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, restartinterval: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5788 #[cfg(not(feature = "Win32_Foundation"))] usize, 5789 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prestartcount: *mut i32) -> ::windows::runtime::HRESULT, 5790 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, restartcount: i32) -> ::windows::runtime::HRESULT, 5791 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::runtime::HRESULT, 5792 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, policy: TASK_INSTANCES_POLICY) -> ::windows::runtime::HRESULT, 5793 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstopifonbatteries: *mut i16) -> ::windows::runtime::HRESULT, 5794 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, stopifonbatteries: i16) -> ::windows::runtime::HRESULT, 5795 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdisallowstart: *mut i16) -> ::windows::runtime::HRESULT, 5796 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, disallowstart: i16) -> ::windows::runtime::HRESULT, 5797 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pallowhardterminate: *mut i16) -> ::windows::runtime::HRESULT, 5798 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, allowhardterminate: i16) -> ::windows::runtime::HRESULT, 5799 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pstartwhenavailable: *mut i16) -> ::windows::runtime::HRESULT, 5800 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, startwhenavailable: i16) -> ::windows::runtime::HRESULT, 5801 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ptext: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5802 #[cfg(not(feature = "Win32_Foundation"))] usize, 5803 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, text: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5804 #[cfg(not(feature = "Win32_Foundation"))] usize, 5805 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prunonlyifnetworkavailable: *mut i16) -> ::windows::runtime::HRESULT, 5806 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, runonlyifnetworkavailable: i16) -> ::windows::runtime::HRESULT, 5807 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pexecutiontimelimit: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5808 #[cfg(not(feature = "Win32_Foundation"))] usize, 5809 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, executiontimelimit: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5810 #[cfg(not(feature = "Win32_Foundation"))] usize, 5811 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, penabled: *mut i16) -> ::windows::runtime::HRESULT, 5812 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, enabled: i16) -> ::windows::runtime::HRESULT, 5813 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pexpirationdelay: *mut ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5814 #[cfg(not(feature = "Win32_Foundation"))] usize, 5815 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, expirationdelay: ::std::mem::ManuallyDrop<super::super::Foundation::BSTR>) -> ::windows::runtime::HRESULT, 5816 #[cfg(not(feature = "Win32_Foundation"))] usize, 5817 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppriority: *mut i32) -> ::windows::runtime::HRESULT, 5818 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, priority: i32) -> ::windows::runtime::HRESULT, 5819 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::runtime::HRESULT, 5820 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, compatlevel: TASK_COMPATIBILITY) -> ::windows::runtime::HRESULT, 5821 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, phidden: *mut i16) -> ::windows::runtime::HRESULT, 5822 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, hidden: i16) -> ::windows::runtime::HRESULT, 5823 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppidlesettings: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5824 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pidlesettings: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5825 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, prunonlyifidle: *mut i16) -> ::windows::runtime::HRESULT, 5826 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, runonlyifidle: i16) -> ::windows::runtime::HRESULT, 5827 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pwake: *mut i16) -> ::windows::runtime::HRESULT, 5828 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, wake: i16) -> ::windows::runtime::HRESULT, 5829 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, ppnetworksettings: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5830 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pnetworksettings: ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5831 ); 5832 #[repr(transparent)] 5833 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5834 pub struct ITaskSettings2(::windows::runtime::IUnknown); 5835 impl ITaskSettings2 { DisallowStartOnRemoteAppSession(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()>5836 pub unsafe fn DisallowStartOnRemoteAppSession(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()> { 5837 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdisallowstart)).ok() 5838 } SetDisallowStartOnRemoteAppSession(&self, disallowstart: i16) -> ::windows::runtime::Result<()>5839 pub unsafe fn SetDisallowStartOnRemoteAppSession(&self, disallowstart: i16) -> ::windows::runtime::Result<()> { 5840 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(disallowstart)).ok() 5841 } UseUnifiedSchedulingEngine(&self, puseunifiedengine: *mut i16) -> ::windows::runtime::Result<()>5842 pub unsafe fn UseUnifiedSchedulingEngine(&self, puseunifiedengine: *mut i16) -> ::windows::runtime::Result<()> { 5843 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(puseunifiedengine)).ok() 5844 } SetUseUnifiedSchedulingEngine(&self, useunifiedengine: i16) -> ::windows::runtime::Result<()>5845 pub unsafe fn SetUseUnifiedSchedulingEngine(&self, useunifiedengine: i16) -> ::windows::runtime::Result<()> { 5846 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), ::std::mem::transmute(useunifiedengine)).ok() 5847 } 5848 } 5849 unsafe impl ::windows::runtime::Interface for ITaskSettings2 { 5850 type Vtable = ITaskSettings2_abi; 5851 const IID: ::windows::runtime::GUID = ::windows::runtime::GUID::from_values(738575344, 28397, 19461, [161, 95, 237, 125, 122, 152, 163, 105]); 5852 } 5853 impl ::std::convert::From<ITaskSettings2> for ::windows::runtime::IUnknown { from(value: ITaskSettings2) -> Self5854 fn from(value: ITaskSettings2) -> Self { 5855 unsafe { ::std::mem::transmute(value) } 5856 } 5857 } 5858 impl ::std::convert::From<&ITaskSettings2> for ::windows::runtime::IUnknown { from(value: &ITaskSettings2) -> Self5859 fn from(value: &ITaskSettings2) -> Self { 5860 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5861 } 5862 } 5863 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for ITaskSettings2 { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5864 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5865 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(self)) 5866 } 5867 } 5868 impl<'a> ::windows::runtime::IntoParam<'a, ::windows::runtime::IUnknown> for &ITaskSettings2 { into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown>5869 fn into_param(self) -> ::windows::runtime::Param<'a, ::windows::runtime::IUnknown> { 5870 ::windows::runtime::Param::Owned(::std::convert::Into::<::windows::runtime::IUnknown>::into(::std::clone::Clone::clone(self))) 5871 } 5872 } 5873 #[cfg(feature = "Win32_System_Ole_Automation")] 5874 impl ::std::convert::From<ITaskSettings2> for super::Ole::Automation::IDispatch { from(value: ITaskSettings2) -> Self5875 fn from(value: ITaskSettings2) -> Self { 5876 unsafe { ::std::mem::transmute(value) } 5877 } 5878 } 5879 #[cfg(feature = "Win32_System_Ole_Automation")] 5880 impl ::std::convert::From<&ITaskSettings2> for super::Ole::Automation::IDispatch { from(value: &ITaskSettings2) -> Self5881 fn from(value: &ITaskSettings2) -> Self { 5882 ::std::convert::From::from(::std::clone::Clone::clone(value)) 5883 } 5884 } 5885 #[cfg(feature = "Win32_System_Ole_Automation")] 5886 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for ITaskSettings2 { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5887 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5888 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(self)) 5889 } 5890 } 5891 #[cfg(feature = "Win32_System_Ole_Automation")] 5892 impl<'a> ::windows::runtime::IntoParam<'a, super::Ole::Automation::IDispatch> for &ITaskSettings2 { into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch>5893 fn into_param(self) -> ::windows::runtime::Param<'a, super::Ole::Automation::IDispatch> { 5894 ::windows::runtime::Param::Owned(::std::convert::Into::<super::Ole::Automation::IDispatch>::into(::std::clone::Clone::clone(self))) 5895 } 5896 } 5897 #[repr(C)] 5898 #[doc(hidden)] 5899 pub struct ITaskSettings2_abi( 5900 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, iid: &::windows::runtime::GUID, interface: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5901 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5902 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr) -> u32, 5903 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pctinfo: *mut u32) -> ::windows::runtime::HRESULT, 5904 #[cfg(feature = "Win32_System_Ole_Automation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, itinfo: u32, lcid: u32, pptinfo: *mut ::windows::runtime::RawPtr) -> ::windows::runtime::HRESULT, 5905 #[cfg(not(feature = "Win32_System_Ole_Automation"))] usize, 5906 #[cfg(feature = "Win32_Foundation")] pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::HRESULT, 5907 #[cfg(not(feature = "Win32_Foundation"))] usize, 5908 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] 5909 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut ::std::mem::ManuallyDrop<super::Com::VARIANT>, pexcepinfo: *mut ::std::mem::ManuallyDrop<super::Ole::Automation::EXCEPINFO>, puargerr: *mut u32) -> ::windows::runtime::HRESULT, 5910 #[cfg(not(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation")))] usize, 5911 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, pdisallowstart: *mut i16) -> ::windows::runtime::HRESULT, 5912 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, disallowstart: i16) -> ::windows::runtime::HRESULT, 5913 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, puseunifiedengine: *mut i16) -> ::windows::runtime::HRESULT, 5914 pub unsafe extern "system" fn(this: ::windows::runtime::RawPtr, useunifiedengine: i16) -> ::windows::runtime::HRESULT, 5915 ); 5916 #[repr(transparent)] 5917 #[derive(:: std :: cmp :: PartialEq, :: std :: cmp :: Eq, :: std :: clone :: Clone, :: std :: fmt :: Debug)] 5918 pub struct ITaskSettings3(::windows::runtime::IUnknown); 5919 impl ITaskSettings3 { GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32>5920 pub unsafe fn GetTypeInfoCount(&self) -> ::windows::runtime::Result<u32> { 5921 let mut result__: <u32 as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5922 (::windows::runtime::Interface::vtable(self).3)(::std::mem::transmute_copy(self), &mut result__).from_abi::<u32>(result__) 5923 } 5924 #[cfg(feature = "Win32_System_Ole_Automation")] GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo>5925 pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> ::windows::runtime::Result<super::Ole::Automation::ITypeInfo> { 5926 let mut result__: <super::Ole::Automation::ITypeInfo as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 5927 (::windows::runtime::Interface::vtable(self).4)(::std::mem::transmute_copy(self), ::std::mem::transmute(itinfo), ::std::mem::transmute(lcid), &mut result__).from_abi::<super::Ole::Automation::ITypeInfo>(result__) 5928 } 5929 #[cfg(feature = "Win32_Foundation")] GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()>5930 pub unsafe fn GetIDsOfNames(&self, riid: *const ::windows::runtime::GUID, rgsznames: *const super::super::Foundation::PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32) -> ::windows::runtime::Result<()> { 5931 (::windows::runtime::Interface::vtable(self).5)(::std::mem::transmute_copy(self), ::std::mem::transmute(riid), ::std::mem::transmute(rgsznames), ::std::mem::transmute(cnames), ::std::mem::transmute(lcid), ::std::mem::transmute(rgdispid)).ok() 5932 } 5933 #[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole_Automation"))] Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()>5934 pub unsafe fn Invoke(&self, dispidmember: i32, riid: *const ::windows::runtime::GUID, lcid: u32, wflags: u16, pdispparams: *const super::Ole::Automation::DISPPARAMS, pvarresult: *mut super::Com::VARIANT, pexcepinfo: *mut super::Ole::Automation::EXCEPINFO, puargerr: *mut u32) -> ::windows::runtime::Result<()> { 5935 (::windows::runtime::Interface::vtable(self).6)(::std::mem::transmute_copy(self), ::std::mem::transmute(dispidmember), ::std::mem::transmute(riid), ::std::mem::transmute(lcid), ::std::mem::transmute(wflags), ::std::mem::transmute(pdispparams), ::std::mem::transmute(pvarresult), ::std::mem::transmute(pexcepinfo), ::std::mem::transmute(puargerr)).ok() 5936 } AllowDemandStart(&self, pallowdemandstart: *mut i16) -> ::windows::runtime::Result<()>5937 pub unsafe fn AllowDemandStart(&self, pallowdemandstart: *mut i16) -> ::windows::runtime::Result<()> { 5938 (::windows::runtime::Interface::vtable(self).7)(::std::mem::transmute_copy(self), ::std::mem::transmute(pallowdemandstart)).ok() 5939 } SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::runtime::Result<()>5940 pub unsafe fn SetAllowDemandStart(&self, allowdemandstart: i16) -> ::windows::runtime::Result<()> { 5941 (::windows::runtime::Interface::vtable(self).8)(::std::mem::transmute_copy(self), ::std::mem::transmute(allowdemandstart)).ok() 5942 } 5943 #[cfg(feature = "Win32_Foundation")] RestartInterval(&self, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5944 pub unsafe fn RestartInterval(&self, prestartinterval: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5945 (::windows::runtime::Interface::vtable(self).9)(::std::mem::transmute_copy(self), ::std::mem::transmute(prestartinterval)).ok() 5946 } 5947 #[cfg(feature = "Win32_Foundation")] SetRestartInterval<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, restartinterval: Param0) -> ::windows::runtime::Result<()>5948 pub unsafe fn SetRestartInterval<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, restartinterval: Param0) -> ::windows::runtime::Result<()> { 5949 (::windows::runtime::Interface::vtable(self).10)(::std::mem::transmute_copy(self), restartinterval.into_param().abi()).ok() 5950 } RestartCount(&self, prestartcount: *mut i32) -> ::windows::runtime::Result<()>5951 pub unsafe fn RestartCount(&self, prestartcount: *mut i32) -> ::windows::runtime::Result<()> { 5952 (::windows::runtime::Interface::vtable(self).11)(::std::mem::transmute_copy(self), ::std::mem::transmute(prestartcount)).ok() 5953 } SetRestartCount(&self, restartcount: i32) -> ::windows::runtime::Result<()>5954 pub unsafe fn SetRestartCount(&self, restartcount: i32) -> ::windows::runtime::Result<()> { 5955 (::windows::runtime::Interface::vtable(self).12)(::std::mem::transmute_copy(self), ::std::mem::transmute(restartcount)).ok() 5956 } MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()>5957 pub unsafe fn MultipleInstances(&self, ppolicy: *mut TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()> { 5958 (::windows::runtime::Interface::vtable(self).13)(::std::mem::transmute_copy(self), ::std::mem::transmute(ppolicy)).ok() 5959 } SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()>5960 pub unsafe fn SetMultipleInstances(&self, policy: TASK_INSTANCES_POLICY) -> ::windows::runtime::Result<()> { 5961 (::windows::runtime::Interface::vtable(self).14)(::std::mem::transmute_copy(self), ::std::mem::transmute(policy)).ok() 5962 } StopIfGoingOnBatteries(&self, pstopifonbatteries: *mut i16) -> ::windows::runtime::Result<()>5963 pub unsafe fn StopIfGoingOnBatteries(&self, pstopifonbatteries: *mut i16) -> ::windows::runtime::Result<()> { 5964 (::windows::runtime::Interface::vtable(self).15)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstopifonbatteries)).ok() 5965 } SetStopIfGoingOnBatteries(&self, stopifonbatteries: i16) -> ::windows::runtime::Result<()>5966 pub unsafe fn SetStopIfGoingOnBatteries(&self, stopifonbatteries: i16) -> ::windows::runtime::Result<()> { 5967 (::windows::runtime::Interface::vtable(self).16)(::std::mem::transmute_copy(self), ::std::mem::transmute(stopifonbatteries)).ok() 5968 } DisallowStartIfOnBatteries(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()>5969 pub unsafe fn DisallowStartIfOnBatteries(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()> { 5970 (::windows::runtime::Interface::vtable(self).17)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdisallowstart)).ok() 5971 } SetDisallowStartIfOnBatteries(&self, disallowstart: i16) -> ::windows::runtime::Result<()>5972 pub unsafe fn SetDisallowStartIfOnBatteries(&self, disallowstart: i16) -> ::windows::runtime::Result<()> { 5973 (::windows::runtime::Interface::vtable(self).18)(::std::mem::transmute_copy(self), ::std::mem::transmute(disallowstart)).ok() 5974 } AllowHardTerminate(&self, pallowhardterminate: *mut i16) -> ::windows::runtime::Result<()>5975 pub unsafe fn AllowHardTerminate(&self, pallowhardterminate: *mut i16) -> ::windows::runtime::Result<()> { 5976 (::windows::runtime::Interface::vtable(self).19)(::std::mem::transmute_copy(self), ::std::mem::transmute(pallowhardterminate)).ok() 5977 } SetAllowHardTerminate(&self, allowhardterminate: i16) -> ::windows::runtime::Result<()>5978 pub unsafe fn SetAllowHardTerminate(&self, allowhardterminate: i16) -> ::windows::runtime::Result<()> { 5979 (::windows::runtime::Interface::vtable(self).20)(::std::mem::transmute_copy(self), ::std::mem::transmute(allowhardterminate)).ok() 5980 } StartWhenAvailable(&self, pstartwhenavailable: *mut i16) -> ::windows::runtime::Result<()>5981 pub unsafe fn StartWhenAvailable(&self, pstartwhenavailable: *mut i16) -> ::windows::runtime::Result<()> { 5982 (::windows::runtime::Interface::vtable(self).21)(::std::mem::transmute_copy(self), ::std::mem::transmute(pstartwhenavailable)).ok() 5983 } SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::runtime::Result<()>5984 pub unsafe fn SetStartWhenAvailable(&self, startwhenavailable: i16) -> ::windows::runtime::Result<()> { 5985 (::windows::runtime::Interface::vtable(self).22)(::std::mem::transmute_copy(self), ::std::mem::transmute(startwhenavailable)).ok() 5986 } 5987 #[cfg(feature = "Win32_Foundation")] XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>5988 pub unsafe fn XmlText(&self, ptext: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 5989 (::windows::runtime::Interface::vtable(self).23)(::std::mem::transmute_copy(self), ::std::mem::transmute(ptext)).ok() 5990 } 5991 #[cfg(feature = "Win32_Foundation")] SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()>5992 pub unsafe fn SetXmlText<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, text: Param0) -> ::windows::runtime::Result<()> { 5993 (::windows::runtime::Interface::vtable(self).24)(::std::mem::transmute_copy(self), text.into_param().abi()).ok() 5994 } RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut i16) -> ::windows::runtime::Result<()>5995 pub unsafe fn RunOnlyIfNetworkAvailable(&self, prunonlyifnetworkavailable: *mut i16) -> ::windows::runtime::Result<()> { 5996 (::windows::runtime::Interface::vtable(self).25)(::std::mem::transmute_copy(self), ::std::mem::transmute(prunonlyifnetworkavailable)).ok() 5997 } SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::runtime::Result<()>5998 pub unsafe fn SetRunOnlyIfNetworkAvailable(&self, runonlyifnetworkavailable: i16) -> ::windows::runtime::Result<()> { 5999 (::windows::runtime::Interface::vtable(self).26)(::std::mem::transmute_copy(self), ::std::mem::transmute(runonlyifnetworkavailable)).ok() 6000 } 6001 #[cfg(feature = "Win32_Foundation")] ExecutionTimeLimit(&self, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>6002 pub unsafe fn ExecutionTimeLimit(&self, pexecutiontimelimit: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 6003 (::windows::runtime::Interface::vtable(self).27)(::std::mem::transmute_copy(self), ::std::mem::transmute(pexecutiontimelimit)).ok() 6004 } 6005 #[cfg(feature = "Win32_Foundation")] SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, executiontimelimit: Param0) -> ::windows::runtime::Result<()>6006 pub unsafe fn SetExecutionTimeLimit<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, executiontimelimit: Param0) -> ::windows::runtime::Result<()> { 6007 (::windows::runtime::Interface::vtable(self).28)(::std::mem::transmute_copy(self), executiontimelimit.into_param().abi()).ok() 6008 } Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()>6009 pub unsafe fn Enabled(&self, penabled: *mut i16) -> ::windows::runtime::Result<()> { 6010 (::windows::runtime::Interface::vtable(self).29)(::std::mem::transmute_copy(self), ::std::mem::transmute(penabled)).ok() 6011 } SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()>6012 pub unsafe fn SetEnabled(&self, enabled: i16) -> ::windows::runtime::Result<()> { 6013 (::windows::runtime::Interface::vtable(self).30)(::std::mem::transmute_copy(self), ::std::mem::transmute(enabled)).ok() 6014 } 6015 #[cfg(feature = "Win32_Foundation")] DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()>6016 pub unsafe fn DeleteExpiredTaskAfter(&self, pexpirationdelay: *mut super::super::Foundation::BSTR) -> ::windows::runtime::Result<()> { 6017 (::windows::runtime::Interface::vtable(self).31)(::std::mem::transmute_copy(self), ::std::mem::transmute(pexpirationdelay)).ok() 6018 } 6019 #[cfg(feature = "Win32_Foundation")] SetDeleteExpiredTaskAfter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, expirationdelay: Param0) -> ::windows::runtime::Result<()>6020 pub unsafe fn SetDeleteExpiredTaskAfter<'a, Param0: ::windows::runtime::IntoParam<'a, super::super::Foundation::BSTR>>(&self, expirationdelay: Param0) -> ::windows::runtime::Result<()> { 6021 (::windows::runtime::Interface::vtable(self).32)(::std::mem::transmute_copy(self), expirationdelay.into_param().abi()).ok() 6022 } Priority(&self, ppriority: *mut i32) -> ::windows::runtime::Result<()>6023 pub unsafe fn Priority(&self, ppriority: *mut i32) -> ::windows::runtime::Result<()> { 6024 (::windows::runtime::Interface::vtable(self).33)(::std::mem::transmute_copy(self), ::std::mem::transmute(ppriority)).ok() 6025 } SetPriority(&self, priority: i32) -> ::windows::runtime::Result<()>6026 pub unsafe fn SetPriority(&self, priority: i32) -> ::windows::runtime::Result<()> { 6027 (::windows::runtime::Interface::vtable(self).34)(::std::mem::transmute_copy(self), ::std::mem::transmute(priority)).ok() 6028 } Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::runtime::Result<()>6029 pub unsafe fn Compatibility(&self, pcompatlevel: *mut TASK_COMPATIBILITY) -> ::windows::runtime::Result<()> { 6030 (::windows::runtime::Interface::vtable(self).35)(::std::mem::transmute_copy(self), ::std::mem::transmute(pcompatlevel)).ok() 6031 } SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> ::windows::runtime::Result<()>6032 pub unsafe fn SetCompatibility(&self, compatlevel: TASK_COMPATIBILITY) -> ::windows::runtime::Result<()> { 6033 (::windows::runtime::Interface::vtable(self).36)(::std::mem::transmute_copy(self), ::std::mem::transmute(compatlevel)).ok() 6034 } Hidden(&self, phidden: *mut i16) -> ::windows::runtime::Result<()>6035 pub unsafe fn Hidden(&self, phidden: *mut i16) -> ::windows::runtime::Result<()> { 6036 (::windows::runtime::Interface::vtable(self).37)(::std::mem::transmute_copy(self), ::std::mem::transmute(phidden)).ok() 6037 } SetHidden(&self, hidden: i16) -> ::windows::runtime::Result<()>6038 pub unsafe fn SetHidden(&self, hidden: i16) -> ::windows::runtime::Result<()> { 6039 (::windows::runtime::Interface::vtable(self).38)(::std::mem::transmute_copy(self), ::std::mem::transmute(hidden)).ok() 6040 } IdleSettings(&self) -> ::windows::runtime::Result<IIdleSettings>6041 pub unsafe fn IdleSettings(&self) -> ::windows::runtime::Result<IIdleSettings> { 6042 let mut result__: <IIdleSettings as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 6043 (::windows::runtime::Interface::vtable(self).39)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IIdleSettings>(result__) 6044 } SetIdleSettings<'a, Param0: ::windows::runtime::IntoParam<'a, IIdleSettings>>(&self, pidlesettings: Param0) -> ::windows::runtime::Result<()>6045 pub unsafe fn SetIdleSettings<'a, Param0: ::windows::runtime::IntoParam<'a, IIdleSettings>>(&self, pidlesettings: Param0) -> ::windows::runtime::Result<()> { 6046 (::windows::runtime::Interface::vtable(self).40)(::std::mem::transmute_copy(self), pidlesettings.into_param().abi()).ok() 6047 } RunOnlyIfIdle(&self, prunonlyifidle: *mut i16) -> ::windows::runtime::Result<()>6048 pub unsafe fn RunOnlyIfIdle(&self, prunonlyifidle: *mut i16) -> ::windows::runtime::Result<()> { 6049 (::windows::runtime::Interface::vtable(self).41)(::std::mem::transmute_copy(self), ::std::mem::transmute(prunonlyifidle)).ok() 6050 } SetRunOnlyIfIdle(&self, runonlyifidle: i16) -> ::windows::runtime::Result<()>6051 pub unsafe fn SetRunOnlyIfIdle(&self, runonlyifidle: i16) -> ::windows::runtime::Result<()> { 6052 (::windows::runtime::Interface::vtable(self).42)(::std::mem::transmute_copy(self), ::std::mem::transmute(runonlyifidle)).ok() 6053 } WakeToRun(&self, pwake: *mut i16) -> ::windows::runtime::Result<()>6054 pub unsafe fn WakeToRun(&self, pwake: *mut i16) -> ::windows::runtime::Result<()> { 6055 (::windows::runtime::Interface::vtable(self).43)(::std::mem::transmute_copy(self), ::std::mem::transmute(pwake)).ok() 6056 } SetWakeToRun(&self, wake: i16) -> ::windows::runtime::Result<()>6057 pub unsafe fn SetWakeToRun(&self, wake: i16) -> ::windows::runtime::Result<()> { 6058 (::windows::runtime::Interface::vtable(self).44)(::std::mem::transmute_copy(self), ::std::mem::transmute(wake)).ok() 6059 } NetworkSettings(&self) -> ::windows::runtime::Result<INetworkSettings>6060 pub unsafe fn NetworkSettings(&self) -> ::windows::runtime::Result<INetworkSettings> { 6061 let mut result__: <INetworkSettings as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 6062 (::windows::runtime::Interface::vtable(self).45)(::std::mem::transmute_copy(self), &mut result__).from_abi::<INetworkSettings>(result__) 6063 } SetNetworkSettings<'a, Param0: ::windows::runtime::IntoParam<'a, INetworkSettings>>(&self, pnetworksettings: Param0) -> ::windows::runtime::Result<()>6064 pub unsafe fn SetNetworkSettings<'a, Param0: ::windows::runtime::IntoParam<'a, INetworkSettings>>(&self, pnetworksettings: Param0) -> ::windows::runtime::Result<()> { 6065 (::windows::runtime::Interface::vtable(self).46)(::std::mem::transmute_copy(self), pnetworksettings.into_param().abi()).ok() 6066 } DisallowStartOnRemoteAppSession(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()>6067 pub unsafe fn DisallowStartOnRemoteAppSession(&self, pdisallowstart: *mut i16) -> ::windows::runtime::Result<()> { 6068 (::windows::runtime::Interface::vtable(self).47)(::std::mem::transmute_copy(self), ::std::mem::transmute(pdisallowstart)).ok() 6069 } SetDisallowStartOnRemoteAppSession(&self, disallowstart: i16) -> ::windows::runtime::Result<()>6070 pub unsafe fn SetDisallowStartOnRemoteAppSession(&self, disallowstart: i16) -> ::windows::runtime::Result<()> { 6071 (::windows::runtime::Interface::vtable(self).48)(::std::mem::transmute_copy(self), ::std::mem::transmute(disallowstart)).ok() 6072 } UseUnifiedSchedulingEngine(&self, puseunifiedengine: *mut i16) -> ::windows::runtime::Result<()>6073 pub unsafe fn UseUnifiedSchedulingEngine(&self, puseunifiedengine: *mut i16) -> ::windows::runtime::Result<()> { 6074 (::windows::runtime::Interface::vtable(self).49)(::std::mem::transmute_copy(self), ::std::mem::transmute(puseunifiedengine)).ok() 6075 } SetUseUnifiedSchedulingEngine(&self, useunifiedengine: i16) -> ::windows::runtime::Result<()>6076 pub unsafe fn SetUseUnifiedSchedulingEngine(&self, useunifiedengine: i16) -> ::windows::runtime::Result<()> { 6077 (::windows::runtime::Interface::vtable(self).50)(::std::mem::transmute_copy(self), ::std::mem::transmute(useunifiedengine)).ok() 6078 } MaintenanceSettings(&self) -> ::windows::runtime::Result<IMaintenanceSettings>6079 pub unsafe fn MaintenanceSettings(&self) -> ::windows::runtime::Result<IMaintenanceSettings> { 6080 let mut result__: <IMaintenanceSettings as ::windows::runtime::Abi>::Abi = ::std::mem::zeroed(); 6081 (::windows::runtime::Interface::vtable(self).51)(::std::mem::transmute_copy(self), &mut result__).from_abi::<IMaintenanceSettings>(result__) 6082 } SetMaintenanceSettings<'a, Param0: ::windows::runtime::IntoParam<'a, IMaintenanceSettings>>(&self, pmaintenancesettings: Param0) -> ::windows::runtime::Result<()>6083