X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=vendor%2Fwindows%2Fsrc%2FWindows%2FWin32%2FSystem%2FAssessmentTool%2Fimpl.rs;fp=vendor%2Fwindows%2Fsrc%2FWindows%2FWin32%2FSystem%2FAssessmentTool%2Fimpl.rs;h=e9a61105d633a8a0d3a1d8a2943d5ccef4afcf4f;hb=353b0b1106c09291d3c691e2bd6290fdf14b6691;hp=0000000000000000000000000000000000000000;hpb=9ffffee422eedc489e3035cb88b0dab8dc9ea408;p=rustc.git diff --git a/vendor/windows/src/Windows/Win32/System/AssessmentTool/impl.rs b/vendor/windows/src/Windows/Win32/System/AssessmentTool/impl.rs new file mode 100644 index 0000000000..e9a61105d6 --- /dev/null +++ b/vendor/windows/src/Windows/Win32/System/AssessmentTool/impl.rs @@ -0,0 +1,349 @@ +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"Win32_UI_Accessibility\"`, `\"implement\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] +pub trait IAccessibleWinSAT_Impl: Sized + super::super::UI::Accessibility::IAccessible_Impl { + fn SetAccessiblityData(&self, wsname: &::windows::core::PCWSTR, wsvalue: &::windows::core::PCWSTR, wsdesc: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] +impl ::windows::core::RuntimeName for IAccessibleWinSAT {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole", feature = "Win32_UI_Accessibility"))] +impl IAccessibleWinSAT_Vtbl { + pub const fn new, Impl: IAccessibleWinSAT_Impl, const OFFSET: isize>() -> IAccessibleWinSAT_Vtbl { + unsafe extern "system" fn SetAccessiblityData, Impl: IAccessibleWinSAT_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, wsname: ::windows::core::PCWSTR, wsvalue: ::windows::core::PCWSTR, wsdesc: ::windows::core::PCWSTR) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.SetAccessiblityData(::core::mem::transmute(&wsname), ::core::mem::transmute(&wsvalue), ::core::mem::transmute(&wsdesc)).into() + } + Self { + base__: super::super::UI::Accessibility::IAccessible_Vtbl::new::(), + SetAccessiblityData: SetAccessiblityData::, + } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID || iid == &::IID || iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Foundation\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Foundation")] +pub trait IInitiateWinSATAssessment_Impl: Sized { + fn InitiateAssessment(&self, cmdline: &::windows::core::PCWSTR, pcallbacks: ::core::option::Option<&IWinSATInitiateEvents>, callerhwnd: super::super::Foundation::HWND) -> ::windows::core::Result<()>; + fn InitiateFormalAssessment(&self, pcallbacks: ::core::option::Option<&IWinSATInitiateEvents>, callerhwnd: super::super::Foundation::HWND) -> ::windows::core::Result<()>; + fn CancelAssessment(&self) -> ::windows::core::Result<()>; +} +#[cfg(feature = "Win32_Foundation")] +impl ::windows::core::RuntimeName for IInitiateWinSATAssessment {} +#[cfg(feature = "Win32_Foundation")] +impl IInitiateWinSATAssessment_Vtbl { + pub const fn new, Impl: IInitiateWinSATAssessment_Impl, const OFFSET: isize>() -> IInitiateWinSATAssessment_Vtbl { + unsafe extern "system" fn InitiateAssessment, Impl: IInitiateWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, cmdline: ::windows::core::PCWSTR, pcallbacks: *mut ::core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.InitiateAssessment(::core::mem::transmute(&cmdline), ::windows::core::from_raw_borrowed(&pcallbacks), ::core::mem::transmute_copy(&callerhwnd)).into() + } + unsafe extern "system" fn InitiateFormalAssessment, Impl: IInitiateWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, pcallbacks: *mut ::core::ffi::c_void, callerhwnd: super::super::Foundation::HWND) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.InitiateFormalAssessment(::windows::core::from_raw_borrowed(&pcallbacks), ::core::mem::transmute_copy(&callerhwnd)).into() + } + unsafe extern "system" fn CancelAssessment, Impl: IInitiateWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.CancelAssessment().into() + } + Self { + base__: ::windows::core::IUnknown_Vtbl::new::(), + InitiateAssessment: InitiateAssessment::, + InitiateFormalAssessment: InitiateFormalAssessment::, + CancelAssessment: CancelAssessment::, + } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"implement\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +pub trait IProvideWinSATAssessmentInfo_Impl: Sized + super::Com::IDispatch_Impl { + fn Score(&self) -> ::windows::core::Result; + fn Title(&self) -> ::windows::core::Result<::windows::core::BSTR>; + fn Description(&self) -> ::windows::core::Result<::windows::core::BSTR>; +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl ::windows::core::RuntimeName for IProvideWinSATAssessmentInfo {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl IProvideWinSATAssessmentInfo_Vtbl { + pub const fn new, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>() -> IProvideWinSATAssessmentInfo_Vtbl { + unsafe extern "system" fn Score, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, score: *mut f32) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Score() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(score, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Title, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, title: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Title() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(title, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Description, Impl: IProvideWinSATAssessmentInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Description() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(description, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: super::Com::IDispatch_Vtbl::new::(), + Score: Score::, + Title: Title::, + Description: Description::, + } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID || iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"implement\"`*"] +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +pub trait IProvideWinSATResultsInfo_Impl: Sized + super::Com::IDispatch_Impl { + fn GetAssessmentInfo(&self, assessment: WINSAT_ASSESSMENT_TYPE) -> ::windows::core::Result; + fn AssessmentState(&self) -> ::windows::core::Result; + fn AssessmentDateTime(&self) -> ::windows::core::Result; + fn SystemRating(&self) -> ::windows::core::Result; + fn RatingStateDesc(&self) -> ::windows::core::Result<::windows::core::BSTR>; +} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl ::windows::core::RuntimeName for IProvideWinSATResultsInfo {} +#[cfg(all(feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl IProvideWinSATResultsInfo_Vtbl { + pub const fn new, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>() -> IProvideWinSATResultsInfo_Vtbl { + unsafe extern "system" fn GetAssessmentInfo, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, assessment: WINSAT_ASSESSMENT_TYPE, ppinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetAssessmentInfo(::core::mem::transmute_copy(&assessment)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(ppinfo, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn AssessmentState, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, state: *mut WINSAT_ASSESSMENT_STATE) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.AssessmentState() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(state, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn AssessmentDateTime, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, filetime: *mut super::Com::VARIANT) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.AssessmentDateTime() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(filetime, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn SystemRating, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, level: *mut f32) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.SystemRating() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(level, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn RatingStateDesc, Impl: IProvideWinSATResultsInfo_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, description: *mut ::std::mem::MaybeUninit<::windows::core::BSTR>) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.RatingStateDesc() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(description, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: super::Com::IDispatch_Vtbl::new::(), + GetAssessmentInfo: GetAssessmentInfo::, + AssessmentState: AssessmentState::, + AssessmentDateTime: AssessmentDateTime::, + SystemRating: SystemRating::, + RatingStateDesc: RatingStateDesc::, + } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID || iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Graphics_Gdi\"`, `\"implement\"`*"] +#[cfg(feature = "Win32_Graphics_Gdi")] +pub trait IProvideWinSATVisuals_Impl: Sized { + fn get_Bitmap(&self, bitmapsize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32) -> ::windows::core::Result; +} +#[cfg(feature = "Win32_Graphics_Gdi")] +impl ::windows::core::RuntimeName for IProvideWinSATVisuals {} +#[cfg(feature = "Win32_Graphics_Gdi")] +impl IProvideWinSATVisuals_Vtbl { + pub const fn new, Impl: IProvideWinSATVisuals_Impl, const OFFSET: isize>() -> IProvideWinSATVisuals_Vtbl { + unsafe extern "system" fn get_Bitmap, Impl: IProvideWinSATVisuals_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, bitmapsize: WINSAT_BITMAP_SIZE, state: WINSAT_ASSESSMENT_STATE, rating: f32, pbitmap: *mut super::super::Graphics::Gdi::HBITMAP) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.get_Bitmap(::core::mem::transmute_copy(&bitmapsize), ::core::mem::transmute_copy(&state), ::core::mem::transmute_copy(&rating)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(pbitmap, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { base__: ::windows::core::IUnknown_Vtbl::new::(), get_Bitmap: get_Bitmap:: } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"implement\"`*"] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +pub trait IQueryAllWinSATAssessments_Impl: Sized + super::Com::IDispatch_Impl { + fn get_AllXML(&self, xpath: &::windows::core::BSTR, namespaces: &::windows::core::BSTR) -> ::windows::core::Result; +} +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl ::windows::core::RuntimeName for IQueryAllWinSATAssessments {} +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl IQueryAllWinSATAssessments_Vtbl { + pub const fn new, Impl: IQueryAllWinSATAssessments_Impl, const OFFSET: isize>() -> IQueryAllWinSATAssessments_Vtbl { + unsafe extern "system" fn get_AllXML, Impl: IQueryAllWinSATAssessments_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpath: ::std::mem::MaybeUninit<::windows::core::BSTR>, namespaces: ::std::mem::MaybeUninit<::windows::core::BSTR>, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.get_AllXML(::core::mem::transmute(&xpath), ::core::mem::transmute(&namespaces)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(ppdomnodelist, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { base__: super::Com::IDispatch_Vtbl::new::(), get_AllXML: get_AllXML:: } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID || iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"implement\"`*"] +pub trait IQueryOEMWinSATCustomization_Impl: Sized { + fn GetOEMPrePopulationInfo(&self) -> ::windows::core::Result; +} +impl ::windows::core::RuntimeName for IQueryOEMWinSATCustomization {} +impl IQueryOEMWinSATCustomization_Vtbl { + pub const fn new, Impl: IQueryOEMWinSATCustomization_Impl, const OFFSET: isize>() -> IQueryOEMWinSATCustomization_Vtbl { + unsafe extern "system" fn GetOEMPrePopulationInfo, Impl: IQueryOEMWinSATCustomization_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, state: *mut WINSAT_OEM_CUSTOMIZATION_STATE) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.GetOEMPrePopulationInfo() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(state, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { base__: ::windows::core::IUnknown_Vtbl::new::(), GetOEMPrePopulationInfo: GetOEMPrePopulationInfo:: } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"Win32_Data_Xml_MsXml\"`, `\"Win32_Foundation\"`, `\"Win32_System_Com\"`, `\"Win32_System_Ole\"`, `\"implement\"`*"] +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +pub trait IQueryRecentWinSATAssessment_Impl: Sized + super::Com::IDispatch_Impl { + fn get_XML(&self, xpath: &::windows::core::BSTR, namespaces: &::windows::core::BSTR) -> ::windows::core::Result; + fn Info(&self) -> ::windows::core::Result; +} +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl ::windows::core::RuntimeName for IQueryRecentWinSATAssessment {} +#[cfg(all(feature = "Win32_Data_Xml_MsXml", feature = "Win32_Foundation", feature = "Win32_System_Com", feature = "Win32_System_Ole"))] +impl IQueryRecentWinSATAssessment_Vtbl { + pub const fn new, Impl: IQueryRecentWinSATAssessment_Impl, const OFFSET: isize>() -> IQueryRecentWinSATAssessment_Vtbl { + unsafe extern "system" fn get_XML, Impl: IQueryRecentWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, xpath: ::std::mem::MaybeUninit<::windows::core::BSTR>, namespaces: ::std::mem::MaybeUninit<::windows::core::BSTR>, ppdomnodelist: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.get_XML(::core::mem::transmute(&xpath), ::core::mem::transmute(&namespaces)) { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(ppdomnodelist, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + unsafe extern "system" fn Info, Impl: IQueryRecentWinSATAssessment_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ppwinsatassessmentinfo: *mut *mut ::core::ffi::c_void) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + match this.Info() { + ::core::result::Result::Ok(ok__) => { + ::core::ptr::write(ppwinsatassessmentinfo, ::core::mem::transmute(ok__)); + ::windows::core::HRESULT(0) + } + ::core::result::Result::Err(err) => err.into(), + } + } + Self { + base__: super::Com::IDispatch_Vtbl::new::(), + get_XML: get_XML::, + Info: Info::, + } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID || iid == &::IID + } +} +#[doc = "*Required features: `\"Win32_System_AssessmentTool\"`, `\"implement\"`*"] +pub trait IWinSATInitiateEvents_Impl: Sized { + fn WinSATComplete(&self, hresult: ::windows::core::HRESULT, strdescription: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; + fn WinSATUpdate(&self, ucurrenttick: u32, uticktotal: u32, strcurrentstate: &::windows::core::PCWSTR) -> ::windows::core::Result<()>; +} +impl ::windows::core::RuntimeName for IWinSATInitiateEvents {} +impl IWinSATInitiateEvents_Vtbl { + pub const fn new, Impl: IWinSATInitiateEvents_Impl, const OFFSET: isize>() -> IWinSATInitiateEvents_Vtbl { + unsafe extern "system" fn WinSATComplete, Impl: IWinSATInitiateEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, hresult: ::windows::core::HRESULT, strdescription: ::windows::core::PCWSTR) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.WinSATComplete(::core::mem::transmute_copy(&hresult), ::core::mem::transmute(&strdescription)).into() + } + unsafe extern "system" fn WinSATUpdate, Impl: IWinSATInitiateEvents_Impl, const OFFSET: isize>(this: *mut ::core::ffi::c_void, ucurrenttick: u32, uticktotal: u32, strcurrentstate: ::windows::core::PCWSTR) -> ::windows::core::HRESULT { + let this = (this as *const *const ()).offset(OFFSET) as *const Identity; + let this = (*this).get_impl(); + this.WinSATUpdate(::core::mem::transmute_copy(&ucurrenttick), ::core::mem::transmute_copy(&uticktotal), ::core::mem::transmute(&strcurrentstate)).into() + } + Self { + base__: ::windows::core::IUnknown_Vtbl::new::(), + WinSATComplete: WinSATComplete::, + WinSATUpdate: WinSATUpdate::, + } + } + pub fn matches(iid: &windows::core::GUID) -> bool { + iid == &::IID + } +}