From 2a4d92c91002f91b49fd282abbbe8ec8d3318339 Mon Sep 17 00:00:00 2001 From: Bill Avery Date: Wed, 24 Jul 2024 13:13:58 -0700 Subject: [PATCH] chore(deps): Update windows-rs to 0.58 and SDK to 1.0.2592.51 --- README.md | 2 +- crates/bindings/Cargo.toml | 8 +- crates/bindings/arm64/WebView2Loader.dll | Bin 140352 -> 140248 bytes .../bindings/arm64/WebView2LoaderStatic.lib | Bin 10218552 -> 10217912 bytes crates/bindings/src/Microsoft.rs | 14119 +++++++++------- crates/bindings/x64/WebView2Loader.dll | Bin 165440 -> 165336 bytes crates/bindings/x64/WebView2LoaderStatic.lib | Bin 10212834 -> 10212198 bytes crates/bindings/x86/WebView2Loader.dll | Bin 116304 -> 116200 bytes crates/bindings/x86/WebView2LoaderStatic.lib | Bin 10178464 -> 10177832 bytes crates/callback-macros/Cargo.toml | 8 +- crates/callback-macros/src/lib.rs | 14 +- crates/update-bindings/Cargo.toml | 6 +- crates/update-bindings/src/main.rs | 2 +- .../winmd/Microsoft.Web.WebView2.Win32.winmd | Bin 83456 -> 83456 bytes crates/webview2-com/Cargo.toml | 18 +- crates/webview2-com/examples/sample.rs | 4 +- crates/webview2-com/src/options.rs | 19 +- crates/webview2-com/src/pwstr.rs | 2 +- 18 files changed, 7737 insertions(+), 6465 deletions(-) diff --git a/README.md b/README.md index 15f6164..990d953 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ By default this crate uses the `WebView2LoaderStatic.lib` static library and doe ## Updating the WebView2 SDK You can tell the `update-bindings` tool to use a different version by updating `WEBVIEW2_VERSION` in `main.rs`: ```rust - const WEBVIEW2_VERSION: &str = "1.0.2535.41"; + const WEBVIEW2_VERSION: &str = "1.0.2592.51"; ``` It will also regenerate [callback_interfaces.rs](./crates/bindings/src/callback_interfaces.rs) if they change in a new version. This file is used in `webview2-com`, and in particular, the tests in [callback.rs](./crates/webview2-com/src/callback.rs) verify that all of the interfaces listed in `callback_interfaces.rs` are implemented. If a new version of the SDK declared additional callback interfaces, you will need to add those interfaces to `callback.rs` using the `#[completed_callback]` (for `ICoreWebView2...CompletedHandler` interfaces) and `#[event_callback]` (for `ICoreWebView2...EventHandler` interfaces) macros. diff --git a/crates/bindings/Cargo.toml b/crates/bindings/Cargo.toml index 46db3f9..b184586 100644 --- a/crates/bindings/Cargo.toml +++ b/crates/bindings/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webview2-com-sys" -version = "0.31.0" +version = "0.32.0" edition = "2021" rust-version = "1.61" description = "Bindings generated with the windows crate for the WebView2 COM APIs" @@ -19,10 +19,10 @@ targets = [ ] [dependencies] -windows-core = "0.57" +windows-core = "0.58" [dependencies.windows] -version = "0.57" +version = "0.58" features = [ "implement", "Win32_Foundation", @@ -35,4 +35,4 @@ features = [ ] [build-dependencies] -thiserror = "1.0.26" +thiserror = "1.0" diff --git a/crates/bindings/arm64/WebView2Loader.dll b/crates/bindings/arm64/WebView2Loader.dll index 116cd8a77f91f05931ddb2ae138455678a426feb..3c305e751eaaba4dac2c1e767d138d36cd5ca890 100644 GIT binary patch delta 3316 zcmcgvi91yL8$ajFjBV_)GsZe4+{27*vM<+?twq*k8`+n!)h!L95D`TqWY=S9N|LR* z2oaGaiO{b|mdF+==6Cwtp8Gt%`v=_fJn#3s@8^BL-|zc8?|HwU?`iAd813fBj7PnT zJeief3$-R@4IPF?3HOx1F;4K)RS-)Mj|TzLC!qGQ3>t{w&;y7g_P^@9s|ZX$r^0ss*B`ED#;0-Zs2T|fg+12h|1%izS{ z7URPTIBV+#cmX#wq0zt_FhE2poLM0 zl%c$4xNgyfyz@}oa%9qg@KI=>^6@nOo|}AOSYGOEna-J_k2NY4Lhbvz3IesoCV12O z<+aXt)P5Lqww1i9pJLI&#sL-LD)!)R~k_Wri<)CAWEGN=3(RXOtJ(iC^Q6OkSc;MY}j8_bNiAg^v7$G99`GTP0@BN^=Qq6I&P<-^|qeJJ#(gPBnKx}?axMz_~ zVnQ0Q1_{WjAzr%=730>VNg@iqY=0Z|lRbtPEguW;$3{$9b9Nc_QZZfN6ijC)z;p~>F$w}9NQj6u%*^G$wl)2FY#Gu! zh{f>Zg|ek!bq#f0Buh`7dN@Nvk^Zjy(3jr$wdZ>4At*6lU>3YhQ34$4_%m~uD-+)lQB?o{-3+bB)qUbNw# zvm4)9ufKf_PnZwfyevI*KD%mCkxyW*V=LxCgXF%Ojjjvg9Ug18P`JU3AFusO1IlAh z{Bf*|#!SyLdKG_{_9{EGc3#mXSH67B zJD%h1G@p<9qf^Zo*X7hmuR1XkSNTcpYJWE?Qq(DIO|d;z_nN{c{o-dv0OtZwJf9u1 z=0RJGs~=W+?!7ao9Z`_jpc9bW$q)EqD)%)rJulPK3?Lu*dXZ3<2?J6PudL)_jJO1EYJ2JGr`1O%Ni3G~&0%LKiOSyT-Pc^B4K6NZvW8J3*Aq+`zHN z3tq|o9$Uc_J=!RjS4ZKcCdE5=yFq04Pw<-m@luEPFnmze*TyDm#BoM!1f%0F!>e=2 zIC5%m?dc*LGIr;ORppRCSto|1R@lRNu>MpaMWykkv%*?%f%--6>pLu5PTDQ;1J zxWVU`$_m5yl9Z~D^5xcterdv-;#%*!Qi|*Wxrduvny*XmUS~E83`o~AqxR3tx2IbFB-t@=qBW^~_HjbDAPDWP0qiQCICLB@SW(Q53BFDTV)wH?|-D|*Jx zr2f9Xaor}Cp&W1^q|gBNDdIvua(Ck;ZDferXuiHfemAKQ{6gi9g_dszc6x%s>9c(V zFBc|$%0z&4d~e{^g>5$XLsv%n{YGnUC6?NweM`K}asKrZY-(R~MGA~5#(H_w-X>k= zlBR_xxS1lZ6{pQ-ea3Nd%31^gv|oLbYNNj}6w59G4a0Ou|0jLYL7?PcJ7XEG(vX1Y zW_qc_N6hVZoes^!*a5ThfvhyH;)Fy-xGa>&2*g3$0T>JbVSsr-k(g8ef}+4^F+vjIla) zStv({zm1SG@$`mm?xTa?Y;s$cn?<@$?5@^z!7w-d_K#9MUA6*sK}9x$E|%uct8dp{ z6Dti~ZM>p(}jVvfzbM|qOyqaz^k+e=fcK&%|58VfAvViG$_#Zd{d4 z^H1*oMfD&S1EA>;kcGJ?mpbN087C~=(mwMh<%3U|*%!N*D$mM%FMzCS2Y@fq=d(*cgQ4rx;u@+KPKIxXn!E)JHL{kDn4@6q;gZ$Y}Pcj)it=HHfF)? zVlP?2@ZMm+a|RG%t40@nZ~A*3Rd%bVLvhZUe50=WPKkmcs<&InEQ_h+!+rA-ebOSSGGg zm8v6$sS#L_jH$O%>nN^e57j`QFUf}mpVkIJQ<=@{Y%ld6PFwjMZO&Ts6nwsRxU_m_ zM!f9Xn^`M^xAUbCI?#`HMKIWV-`Lx)qn^$}54uw$(nPSmyv(-9&=HJ@%&SYe{{y4D z$8K9L6z}_%5Q=r6YFJz^+MUwGvW)7)%g>V4tUbc!M%3*R!Tn90#lyAivy&0`Y?oXO T`iZ(YvFy#xl$~Qg|2zH*YhqzB delta 3439 zcmcIlXH-+!7QXi;6hjHp1(Znd+$4l59T`S?Kq=zTksv)Nh(bsJMO36|KtzLp3W9(L z$pA7SbwCj?AV_(jD1-Dij!1d&jq9!V-v4*b+UM;3eP^Hbt+m%Vd!&oErJFZ138B(& znw4x1jjLx35+O5{S|#w^KF}ryTM3HxRI@1iwQ7hofs( zf(LkCQ&ik^c}!-RPL-fL29#r#y#nVk{Hnn0J^%oL?>m#R1iFJfcz^(C0XodRWpLu( z5&gp|IBTy9U;%v&tq=GDx}oax7uSO@2LWzAGLG9d_nX)1W`eQK9%E`1RIc_0Q&MS%lh=(5`&5o08huKJKg zsJoV4gL3}j!aK%gc41~FY(q_OCoJ3~oyyGG1}_TmOTjQrN&^Bxn0k}$gMgCg`6ws~ zV=K(Fn>5roYTbOsOUD)aGkjvW3dN|5h$@m9_Ke(eq^t2k2^6>Tk75f}=VDuSnrEl9 z$m_8mgQC^aj-4{5&>@j{a`sX5sCX5B{pG@-xrR*3ILUa0#CEoaPbI10#(cnVIpUFm zsN(xN8=0huiiXptXiAroWxQF7WBm?AL2QHSOyh3DM>jC(%$z(8&)wgT^%tD*xCyxa z^jmVBw1!Rl2`uGa-S+d=9@eHum21fR%CyNO(HnuD`SKs`ydU*jnMBb(C3+^aGB72? zw7=%IWR>2Y8~@p|r|B*4)g^(&G7;kvx%kJut<}#<(~+5z($i-KX>PQG`R)61%?J-TwPo+M_n8Y%?*C@lFz?6Q}GyBJMG3WBHdDUM6Y#C zXt8xJua7P#AjlC*-g&}J53;_^8C>bZvLmk)u4kC-7L5AmG#$Z&FN8FA-JJZK@5He*U_r@6mXQ!mi0Bn z)_D@w`b2(fr)pYi)cCVajW2dg;vw6_WBxhV9@kU$TJ7xHGV}xiYKx!Z)VuR&1W%6pa9 zWKt&Y%;5$3am^-dXQAzferUb=$JCA>IPV4;mY;nZyI$Me`55NEQyAw+7{KO2O|t-nKbpoZh?#ysK{s z{`D+f^hx_iO)*WGM-Ge^?NO}!uummym6F%&A-~fZz2X)p(^o(3!no3$0g7qLl)Kui z^n@9GneYjN7tJkgxARV~G+P{69L3QMnz*J!&9wPCtA%=Oh_c$LBy=qQK5z4M*vE)` zAUS^(KS-XKrz0v{b=2_54eu`iS&8^79lYn{S!o-d^Sjr(7kL&Om`8*m zLy&T!MlJEl8LTL?fejk>KYTb!o-&KJyrLx>%8Gck>CeCN$$)LOT#$KR{IF=3bxU-? z3BR5}=OH$Vyd5hSl#Yu}($0*LI^;LqvcIGl1Gq^@k$&#dNfq8`oYb~Qzc?+-&k`8$ z?&z_9W|7qiot~U zH;>AUozb@gVEosZke=)U4NQE)le&zlueRee&C}gicfC~$J_{(Gy>yCZJCk@-H~Oj9 zO{=z@qoGSC(x$o7t4BLuWv|+4SBQ^9bvSJ-r`|GIwc|;%E8uz1uWfaVMqVE2(zj7F zJFF<(;WYW6?`LDF|M(=7h{W@*H)PW$s- z`<78(9``EQM17Pz=RB}sa=p^sx@^SSL9j3R3uP@?@krQ6#^=;dWk0zdpe^EB%60ND zPvvGG$17P}n7R90VlLqF=u?H;_Bn?LHJGzrmBos|YKtD`tR3@T<3=YR;R@buB46zA z*D=qDL9sky2z!_Y5&qR6zZU)9KT&1+&_QUw=ws65&2|Ibir?8g#NZL%^x=!atMsjd zP&S2+3xK$Qxz8jFEGLQn@!ex_I2a4-c>Wu}{Q%$?*ziYdO7TD;L97O>2BUsl0D%C^ z!&x9mJMo7j67V-W-@y3J>i$PAgjIo+U^<^Hg#9i8K?6a+M#`t^2zJPkX^MA~9Nl;L zQBT5dZvBB~#+!c4J+qFjvvpLFJGY1MwFQR6DBe*T;s<5ay4kr@}iA5GlOj4flTOIxKL+G`4~Ht z_nJ%E{s1F#);BX;zhX>x@9W4eZMfD`WC68u=i&XBVQl5O+;_58@rpO7uN`#!{H%M6 zo(mIY4rWL7kqt*ieos}ALYGv0iQf|Y9pyf4R2HsV zD@%E=COqd+xw-k-K9}4az3Seop}7xnsCu6Aq*oTgVZ#EyY|qSSR<6AhQ}`1hx;U(F zqP@`nSQ@WOUbe1NruSy&A$iw8Rn4a&VGB)+e18_XhLDfl;g&e(89!BDo6>#XH)$<4 z`LGlW7=~EW!*$CJD?^Mbfu9{Y}w@;|EYIY;n z2wPi?OIzsfVd$r=_u)v*q9 zWz6G+`pYUs-l|RUZgf8REyvRX<#9*K?)ZllsTI{w+^uuhZBb1p2UUF~ zkuop!HYDz_WeephQua{>Qiu6D$ zc3YwVnK5|Loy54lE8}baPJwruz(!aMYtebKCp`_5E`K&AoS=VmE}k~M^Lo81wlSL> l!_)860rO5J#ps@DJ#sZ``QFnD&e5K?o=tG=DfW|re*#~4qO1S_ diff --git a/crates/bindings/arm64/WebView2LoaderStatic.lib b/crates/bindings/arm64/WebView2LoaderStatic.lib index 5bc54d27843b13febb9b2bfdcb0d069d004c0299..e6f52a3dadf1e1da060a72832fbaac218795df11 100644 GIT binary patch delta 2334 zcmb`{e@xVM9LMp`_qgMfuHuI%3d$YeQ70fAcPJ&Mf`IW$y6;_|Lm@pC1R;NdWhsit zHwyDd=En%lES8ZrD)b|*+T3cUOx=gTlq)hw#RtBcgKA{ zpU?LTN6uYSANl5*y8ZUy+VuT|4z;#Dgr1lp^feHAAGP;;^S|CJx-*vyk=mj9qW}3l z#Y47}e_H^%_MIbVV`Qfi*(rev{6GyF@CPjngW(XsBRd~B<__7PPRX7&N~WBkq@jn08h=8#$4kCF;kiI`!%4M^x`U!pkeKG8`#bsdYQ(S7L#i|DbL_svf@D}TMy;a-Y z8$-_b#;_!t)8IdV;byPWUojqx5DSmMqhNvw5C`#)023h*lE4hfU;!(nz$BOqsqh#) z4pVr4MVfn!6vcz;sT{&u2h&a~HMi4XDm($xU^>izbjX02kO^6k4YS}$UUNIgxk8s~ zAl_G&{Yr##p)wcpARh`~HWb2BU;`QK;NTZ3pI&k{#GE<_=PXV-ljP&1( z_F~xY8$QGErEfTgp~pAez~KIS&;;5E3F9*hXqQDAbN4JiVRgG`u4BJ)MMkQE}=Asa+CBln3s zjQm1mH}bs50pv|@`UhY+!7@v<3f%Ux(z+TWX*(%)=$7V)9V#f83&l_Z&%ivG&)t$M&aAq~ znaScZNlDCZam7l7Y_0gwiXW;U9Lgz+3l_jaSOlf~l%=dRO;acviIdG=Q5LPKLRO1x zL~aw=iaaRtDDt?-OUUm<4k9J?k>?vi?M6I{-b_NKip)dWMV2F%i`<0VEb?vS`yxL_ zekJl-%aZ2Br(EgoqVISW}RauKphCT%h8kE6&%yJs23~*{VJ)nKTHal~{%n^t^4>oH zJQ~{JOOq8 hT&cgh1-8OA*bcA34tO1Q0)t)f1~l{ft8aE_{sIH8nzjG{ delta 2953 zcmc)LYfMvD00;1UOJB08ynVr_Jlcu2K%qmYpeSOQqGAi278P1b3y6R%Mdwh&SJgRR zb6#}QsmVTU;3H0VikW79m@{@++!m%LE}4lM!KuN`4-gmkZ*On*VVfTo5*mK#|IaEvWw=cj=v=^6bN$v5b_OKv=Fc56T^Tt6 zCc-3$hXi;X66wlFWq&g3WI;CQ;Z4Ya=`aJ{f|)Rj_SfgW zSkLaEl|K?ww8Lt*YnmH8&br1VWs;}SZFSUWY#xWB#^uI8LWeX~ms9hPgIaAm{%oGQ z277vSQ=_BKna+=?44t5|+1gU;*0!u`;m+JAlzTFm8!vh`;0+(jg*=!Ib08n)!aOK| z`A`T8zyL+?HVq$IXm%-llbPTv<+EuTZ&Sk}D2Bzb1eQVxECVB$pcKkzQ$zWxo6*@B znOISNO$(WBtm#4ecpeE8v$fp70y337ND~Z1Es<227^aq6Q%sU2ZHQa>*okbts$Y?Zw2O&2AonHR|R_ z6#bebzlJMnv+V_ap4IazWJ@gg6;NBo(O{fN(kQ7SdD%or0_Rboz(CLyPV zavpMFC|i(iq1=kRklp2)PLg_%+DU_oq zp9-Z1<%&>xQGOB10Lq|HMwh9W*s{=vPC>~O%6yb!p;%Gsgt7r;n@|p;oDj+dluJVS z0p+$(9-}-L%BXS`6N&2L4Gi-sauno3@7k0o-*ah#w zZg?N|&{M{}3->7uK7NN6P{RSQ_}*UF2m2w=KY)YqAshk@I^i%Jq2hZVotOLtBJUX7 diff --git a/crates/bindings/src/Microsoft.rs b/crates/bindings/src/Microsoft.rs index dd768bb..381785a 100644 --- a/crates/bindings/src/Microsoft.rs +++ b/crates/bindings/src/Microsoft.rs @@ -1,4 +1,4 @@ -// Bindings generated by `windows-bindgen` 0.57.0 +// Bindings generated by `windows-bindgen` 0.58.0 #![allow( non_snake_case, @@ -18858,7 +18858,7 @@ pub mod Web { COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS = COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS(2i32); pub const CORE_WEBVIEW_TARGET_PRODUCT_VERSION: windows_core::PCWSTR = - windows_core::w!("125.0.2535.41"); + windows_core::w!("126.0.2592.51"); #[repr(transparent)] #[derive(PartialEq, Eq, Copy, Clone, Default)] pub struct COREWEBVIEW2_BOUNDS_MODE(pub i32); @@ -19894,63 +19894,71 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2 {} impl ICoreWebView2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_Vtbl { + pub const fn new( + ) -> ICoreWebView2_Vtbl + where + Identity: ICoreWebView2_Impl, + { unsafe extern "system" fn Settings< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, settings: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2_Impl::Settings(this) { Ok(ok__) => { - core::ptr::write(settings, core::mem::transmute(ok__)); + settings.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Source< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::Source(this, core::mem::transmute_copy(&uri)).into() } unsafe extern "system" fn Navigate< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::Navigate(this, core::mem::transmute(&uri)).into() } unsafe extern "system" fn NavigateToString< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, htmlcontent: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::NavigateToString( this, core::mem::transmute(&htmlcontent), @@ -19958,16 +19966,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_NavigationStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_NavigationStarting( this, windows_core::from_raw_borrowed(&eventhandler), @@ -19976,15 +19986,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NavigationStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_NavigationStarting( this, core::mem::transmute(&token), @@ -19992,16 +20004,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_ContentLoading< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_ContentLoading( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20010,15 +20024,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ContentLoading< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_ContentLoading( this, core::mem::transmute(&token), @@ -20026,16 +20042,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_SourceChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_SourceChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20044,29 +20062,33 @@ pub mod Web { .into() } unsafe extern "system" fn remove_SourceChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_SourceChanged(this, core::mem::transmute(&token)) .into() } unsafe extern "system" fn add_HistoryChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_HistoryChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20075,15 +20097,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_HistoryChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_HistoryChanged( this, core::mem::transmute(&token), @@ -20091,16 +20115,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_NavigationCompleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_NavigationCompleted( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20109,15 +20135,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NavigationCompleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_NavigationCompleted( this, core::mem::transmute(&token), @@ -20125,16 +20153,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_FrameNavigationStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_FrameNavigationStarting( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20143,15 +20173,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_FrameNavigationStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_FrameNavigationStarting( this, core::mem::transmute(&token), @@ -20159,16 +20191,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_FrameNavigationCompleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_FrameNavigationCompleted( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20177,15 +20211,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_FrameNavigationCompleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_FrameNavigationCompleted( this, core::mem::transmute(&token), @@ -20193,16 +20229,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_ScriptDialogOpening< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_ScriptDialogOpening( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20211,15 +20249,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ScriptDialogOpening< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_ScriptDialogOpening( this, core::mem::transmute(&token), @@ -20227,16 +20267,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_PermissionRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_PermissionRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20245,15 +20287,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_PermissionRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_PermissionRequested( this, core::mem::transmute(&token), @@ -20261,16 +20305,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_ProcessFailed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_ProcessFailed( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20279,29 +20325,33 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ProcessFailed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_ProcessFailed(this, core::mem::transmute(&token)) .into() } unsafe extern "system" fn AddScriptToExecuteOnDocumentCreated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, javascript: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::AddScriptToExecuteOnDocumentCreated( this, core::mem::transmute(&javascript), @@ -20310,15 +20360,17 @@ pub mod Web { .into() } unsafe extern "system" fn RemoveScriptToExecuteOnDocumentCreated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, id: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::RemoveScriptToExecuteOnDocumentCreated( this, core::mem::transmute(&id), @@ -20326,16 +20378,18 @@ pub mod Web { .into() } unsafe extern "system" fn ExecuteScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, javascript: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::ExecuteScript( this, core::mem::transmute(&javascript), @@ -20344,17 +20398,19 @@ pub mod Web { .into() } unsafe extern "system" fn CapturePreview< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT, imagestream: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::CapturePreview( this, core::mem::transmute_copy(&imageformat), @@ -20364,26 +20420,30 @@ pub mod Web { .into() } unsafe extern "system" fn Reload< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::Reload(this).into() } unsafe extern "system" fn PostWebMessageAsJson< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, webmessageasjson: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::PostWebMessageAsJson( this, core::mem::transmute(&webmessageasjson), @@ -20391,15 +20451,17 @@ pub mod Web { .into() } unsafe extern "system" fn PostWebMessageAsString< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, webmessageasstring: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::PostWebMessageAsString( this, core::mem::transmute(&webmessageasstring), @@ -20407,16 +20469,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_WebMessageReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_WebMessageReceived( this, windows_core::from_raw_borrowed(&handler), @@ -20425,15 +20489,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_WebMessageReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_WebMessageReceived( this, core::mem::transmute(&token), @@ -20441,17 +20507,19 @@ pub mod Web { .into() } unsafe extern "system" fn CallDevToolsProtocolMethod< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, methodname: windows_core::PCWSTR, parametersasjson: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::CallDevToolsProtocolMethod( this, core::mem::transmute(&methodname), @@ -20461,15 +20529,17 @@ pub mod Web { .into() } unsafe extern "system" fn BrowserProcessId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::BrowserProcessId( this, core::mem::transmute_copy(&value), @@ -20477,28 +20547,32 @@ pub mod Web { .into() } unsafe extern "system" fn CanGoBack< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cangoback: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::CanGoBack(this, core::mem::transmute_copy(&cangoback)) .into() } unsafe extern "system" fn CanGoForward< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cangoforward: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::CanGoForward( this, core::mem::transmute_copy(&cangoforward), @@ -20506,71 +20580,81 @@ pub mod Web { .into() } unsafe extern "system" fn GoBack< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::GoBack(this).into() } unsafe extern "system" fn GoForward< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::GoForward(this).into() } unsafe extern "system" fn GetDevToolsProtocolEventReceiver< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventname: windows_core::PCWSTR, receiver: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2_Impl::GetDevToolsProtocolEventReceiver( this, core::mem::transmute(&eventname), ) { Ok(ok__) => { - core::ptr::write(receiver, core::mem::transmute(ok__)); + receiver.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Stop< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::Stop(this).into() } unsafe extern "system" fn add_NewWindowRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_NewWindowRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20579,15 +20663,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NewWindowRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_NewWindowRequested( this, core::mem::transmute(&token), @@ -20595,16 +20681,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_DocumentTitleChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_DocumentTitleChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20613,15 +20701,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_DocumentTitleChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_DocumentTitleChanged( this, core::mem::transmute(&token), @@ -20629,29 +20719,33 @@ pub mod Web { .into() } unsafe extern "system" fn DocumentTitle< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, title: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::DocumentTitle(this, core::mem::transmute_copy(&title)) .into() } unsafe extern "system" fn AddHostObjectToScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, object: *mut core::mem::MaybeUninit, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::AddHostObjectToScript( this, core::mem::transmute(&name), @@ -20660,15 +20754,17 @@ pub mod Web { .into() } unsafe extern "system" fn RemoveHostObjectFromScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::RemoveHostObjectFromScript( this, core::mem::transmute(&name), @@ -20676,27 +20772,31 @@ pub mod Web { .into() } unsafe extern "system" fn OpenDevToolsWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::OpenDevToolsWindow(this).into() } unsafe extern "system" fn add_ContainsFullScreenElementChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_ContainsFullScreenElementChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20705,15 +20805,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ContainsFullScreenElementChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_ContainsFullScreenElementChanged( this, core::mem::transmute(&token), @@ -20721,15 +20823,17 @@ pub mod Web { .into() } unsafe extern "system" fn ContainsFullScreenElement< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, containsfullscreenelement: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::ContainsFullScreenElement( this, core::mem::transmute_copy(&containsfullscreenelement), @@ -20737,16 +20841,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_WebResourceRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_WebResourceRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20755,15 +20861,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_WebResourceRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_WebResourceRequested( this, core::mem::transmute(&token), @@ -20771,16 +20879,18 @@ pub mod Web { .into() } unsafe extern "system" fn AddWebResourceRequestedFilter< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::AddWebResourceRequestedFilter( this, core::mem::transmute(&uri), @@ -20789,16 +20899,18 @@ pub mod Web { .into() } unsafe extern "system" fn RemoveWebResourceRequestedFilter< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::RemoveWebResourceRequestedFilter( this, core::mem::transmute(&uri), @@ -20807,16 +20919,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_WindowCloseRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::add_WindowCloseRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -20825,15 +20939,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_WindowCloseRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_Impl::remove_WindowCloseRequested( this, core::mem::transmute(&token), @@ -20842,150 +20958,90 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Settings: Settings::, - Source: Source::, - Navigate: Navigate::, - NavigateToString: NavigateToString::, - add_NavigationStarting: add_NavigationStarting::, - remove_NavigationStarting: remove_NavigationStarting::< - Identity, - Impl, - OFFSET, - >, - add_ContentLoading: add_ContentLoading::, - remove_ContentLoading: remove_ContentLoading::, - add_SourceChanged: add_SourceChanged::, - remove_SourceChanged: remove_SourceChanged::, - add_HistoryChanged: add_HistoryChanged::, - remove_HistoryChanged: remove_HistoryChanged::, - add_NavigationCompleted: add_NavigationCompleted::, - remove_NavigationCompleted: remove_NavigationCompleted::< - Identity, - Impl, - OFFSET, - >, - add_FrameNavigationStarting: add_FrameNavigationStarting::< - Identity, - Impl, - OFFSET, - >, + Settings: Settings::, + Source: Source::, + Navigate: Navigate::, + NavigateToString: NavigateToString::, + add_NavigationStarting: add_NavigationStarting::, + remove_NavigationStarting: remove_NavigationStarting::, + add_ContentLoading: add_ContentLoading::, + remove_ContentLoading: remove_ContentLoading::, + add_SourceChanged: add_SourceChanged::, + remove_SourceChanged: remove_SourceChanged::, + add_HistoryChanged: add_HistoryChanged::, + remove_HistoryChanged: remove_HistoryChanged::, + add_NavigationCompleted: add_NavigationCompleted::, + remove_NavigationCompleted: remove_NavigationCompleted::, + add_FrameNavigationStarting: add_FrameNavigationStarting::, remove_FrameNavigationStarting: remove_FrameNavigationStarting::< Identity, - Impl, OFFSET, >, add_FrameNavigationCompleted: add_FrameNavigationCompleted::< Identity, - Impl, OFFSET, >, remove_FrameNavigationCompleted: remove_FrameNavigationCompleted::< Identity, - Impl, - OFFSET, - >, - add_ScriptDialogOpening: add_ScriptDialogOpening::, - remove_ScriptDialogOpening: remove_ScriptDialogOpening::< - Identity, - Impl, - OFFSET, - >, - add_PermissionRequested: add_PermissionRequested::, - remove_PermissionRequested: remove_PermissionRequested::< - Identity, - Impl, OFFSET, >, - add_ProcessFailed: add_ProcessFailed::, - remove_ProcessFailed: remove_ProcessFailed::, + add_ScriptDialogOpening: add_ScriptDialogOpening::, + remove_ScriptDialogOpening: remove_ScriptDialogOpening::, + add_PermissionRequested: add_PermissionRequested::, + remove_PermissionRequested: remove_PermissionRequested::, + add_ProcessFailed: add_ProcessFailed::, + remove_ProcessFailed: remove_ProcessFailed::, AddScriptToExecuteOnDocumentCreated: AddScriptToExecuteOnDocumentCreated::< Identity, - Impl, OFFSET, >, RemoveScriptToExecuteOnDocumentCreated: - RemoveScriptToExecuteOnDocumentCreated::, - ExecuteScript: ExecuteScript::, - CapturePreview: CapturePreview::, - Reload: Reload::, - PostWebMessageAsJson: PostWebMessageAsJson::, - PostWebMessageAsString: PostWebMessageAsString::, - add_WebMessageReceived: add_WebMessageReceived::, - remove_WebMessageReceived: remove_WebMessageReceived::< - Identity, - Impl, - OFFSET, - >, - CallDevToolsProtocolMethod: CallDevToolsProtocolMethod::< - Identity, - Impl, - OFFSET, - >, - BrowserProcessId: BrowserProcessId::, - CanGoBack: CanGoBack::, - CanGoForward: CanGoForward::, - GoBack: GoBack::, - GoForward: GoForward::, + RemoveScriptToExecuteOnDocumentCreated::, + ExecuteScript: ExecuteScript::, + CapturePreview: CapturePreview::, + Reload: Reload::, + PostWebMessageAsJson: PostWebMessageAsJson::, + PostWebMessageAsString: PostWebMessageAsString::, + add_WebMessageReceived: add_WebMessageReceived::, + remove_WebMessageReceived: remove_WebMessageReceived::, + CallDevToolsProtocolMethod: CallDevToolsProtocolMethod::, + BrowserProcessId: BrowserProcessId::, + CanGoBack: CanGoBack::, + CanGoForward: CanGoForward::, + GoBack: GoBack::, + GoForward: GoForward::, GetDevToolsProtocolEventReceiver: GetDevToolsProtocolEventReceiver::< Identity, - Impl, - OFFSET, - >, - Stop: Stop::, - add_NewWindowRequested: add_NewWindowRequested::, - remove_NewWindowRequested: remove_NewWindowRequested::< - Identity, - Impl, - OFFSET, - >, - add_DocumentTitleChanged: add_DocumentTitleChanged::, - remove_DocumentTitleChanged: remove_DocumentTitleChanged::< - Identity, - Impl, OFFSET, >, - DocumentTitle: DocumentTitle::, - AddHostObjectToScript: AddHostObjectToScript::, - RemoveHostObjectFromScript: RemoveHostObjectFromScript::< - Identity, - Impl, - OFFSET, - >, - OpenDevToolsWindow: OpenDevToolsWindow::, + Stop: Stop::, + add_NewWindowRequested: add_NewWindowRequested::, + remove_NewWindowRequested: remove_NewWindowRequested::, + add_DocumentTitleChanged: add_DocumentTitleChanged::, + remove_DocumentTitleChanged: remove_DocumentTitleChanged::, + DocumentTitle: DocumentTitle::, + AddHostObjectToScript: AddHostObjectToScript::, + RemoveHostObjectFromScript: RemoveHostObjectFromScript::, + OpenDevToolsWindow: OpenDevToolsWindow::, add_ContainsFullScreenElementChanged: add_ContainsFullScreenElementChanged::< Identity, - Impl, OFFSET, >, remove_ContainsFullScreenElementChanged: - remove_ContainsFullScreenElementChanged::, - ContainsFullScreenElement: ContainsFullScreenElement::< - Identity, - Impl, - OFFSET, - >, - add_WebResourceRequested: add_WebResourceRequested::, - remove_WebResourceRequested: remove_WebResourceRequested::< - Identity, - Impl, - OFFSET, - >, + remove_ContainsFullScreenElementChanged::, + ContainsFullScreenElement: ContainsFullScreenElement::, + add_WebResourceRequested: add_WebResourceRequested::, + remove_WebResourceRequested: remove_WebResourceRequested::, AddWebResourceRequestedFilter: AddWebResourceRequestedFilter::< Identity, - Impl, OFFSET, >, RemoveWebResourceRequestedFilter: RemoveWebResourceRequestedFilter::< Identity, - Impl, - OFFSET, - >, - add_WindowCloseRequested: add_WindowCloseRequested::, - remove_WindowCloseRequested: remove_WindowCloseRequested::< - Identity, - Impl, OFFSET, >, + add_WindowCloseRequested: add_WindowCloseRequested::, + remove_WindowCloseRequested: remove_WindowCloseRequested::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21014,21 +21070,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2AcceleratorKeyPressedEventArgs {} impl ICoreWebView2AcceleratorKeyPressedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2AcceleratorKeyPressedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2AcceleratorKeyPressedEventArgs_Vtbl + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { unsafe extern "system" fn KeyEventKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, keyeventkind: *mut COREWEBVIEW2_KEY_EVENT_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs_Impl::KeyEventKind( this, core::mem::transmute_copy(&keyeventkind), @@ -21036,15 +21094,17 @@ pub mod Web { .into() } unsafe extern "system" fn VirtualKey< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, virtualkey: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs_Impl::VirtualKey( this, core::mem::transmute_copy(&virtualkey), @@ -21052,15 +21112,17 @@ pub mod Web { .into() } unsafe extern "system" fn KeyEventLParam< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, lparam: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs_Impl::KeyEventLParam( this, core::mem::transmute_copy(&lparam), @@ -21068,15 +21130,17 @@ pub mod Web { .into() } unsafe extern "system" fn PhysicalKeyStatus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, physicalkeystatus: *mut COREWEBVIEW2_PHYSICAL_KEY_STATUS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs_Impl::PhysicalKeyStatus( this, core::mem::transmute_copy(&physicalkeystatus), @@ -21084,15 +21148,17 @@ pub mod Web { .into() } unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs_Impl::Handled( this, core::mem::transmute_copy(&handled), @@ -21100,15 +21166,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs_Impl::SetHandled( this, core::mem::transmute_copy(&handled), @@ -21117,12 +21185,12 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - KeyEventKind: KeyEventKind::, - VirtualKey: VirtualKey::, - KeyEventLParam: KeyEventLParam::, - PhysicalKeyStatus: PhysicalKeyStatus::, - Handled: Handled::, - SetHandled: SetHandled::, + KeyEventKind: KeyEventKind::, + VirtualKey: VirtualKey::, + KeyEventLParam: KeyEventLParam::, + PhysicalKeyStatus: PhysicalKeyStatus::, + Handled: Handled::, + SetHandled: SetHandled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21143,49 +21211,50 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2AcceleratorKeyPressedEventArgs2 {} impl ICoreWebView2AcceleratorKeyPressedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2AcceleratorKeyPressedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2AcceleratorKeyPressedEventArgs2_Vtbl + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl, + { unsafe extern "system" fn IsBrowserAcceleratorKeyEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl:: IsBrowserAcceleratorKeyEnabled ( this , core::mem::transmute_copy ( & value ) , ) . into ( ) } unsafe extern "system" fn SetIsBrowserAcceleratorKeyEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventArgs2_Impl:: SetIsBrowserAcceleratorKeyEnabled ( this , core::mem::transmute_copy ( & value ) , ) . into ( ) } Self { base__: ICoreWebView2AcceleratorKeyPressedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), IsBrowserAcceleratorKeyEnabled: IsBrowserAcceleratorKeyEnabled::< Identity, - Impl, OFFSET, >, SetIsBrowserAcceleratorKeyEnabled: SetIsBrowserAcceleratorKeyEnabled::< Identity, - Impl, OFFSET, >, } @@ -21203,22 +21272,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2AcceleratorKeyPressedEventHandler {} impl ICoreWebView2AcceleratorKeyPressedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2AcceleratorKeyPressedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2AcceleratorKeyPressedEventHandler_Vtbl + where + Identity: ICoreWebView2AcceleratorKeyPressedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AcceleratorKeyPressedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2AcceleratorKeyPressedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AcceleratorKeyPressedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -21228,7 +21299,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21249,28 +21320,30 @@ pub mod Web { { } impl ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Vtbl + where + Identity: ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, id: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: + ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler_Impl:: Invoke ( this , core::mem::transmute_copy ( & errorcode ) , core::mem::transmute ( & id ) , ) . into ( ) } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21298,21 +21371,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BasicAuthenticationRequestedEventArgs {} impl ICoreWebView2BasicAuthenticationRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BasicAuthenticationRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2BasicAuthenticationRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl::Uri( this, core::mem::transmute_copy(&value), @@ -21320,15 +21395,17 @@ pub mod Web { .into() } unsafe extern "system" fn Challenge< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, challenge: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl::Challenge( this, core::mem::transmute_copy(&challenge), @@ -21336,35 +21413,39 @@ pub mod Web { .into() } unsafe extern "system" fn Response< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, response: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl::Response( this, ) { Ok(ok__) => { - core::ptr::write(response, core::mem::transmute(ok__)); + response.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cancel: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl::Cancel( this, core::mem::transmute_copy(&cancel), @@ -21372,15 +21453,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cancel: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl::SetCancel( this, core::mem::transmute_copy(&cancel), @@ -21388,20 +21471,22 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2BasicAuthenticationRequestedEventArgs_Impl::GetDeferral( this, ) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -21409,12 +21494,12 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - Challenge: Challenge::, - Response: Response::, - Cancel: Cancel::, - SetCancel: SetCancel::, - GetDeferral: GetDeferral::, + Uri: Uri::, + Challenge: Challenge::, + Response: Response::, + Cancel: Cancel::, + SetCancel: SetCancel::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21430,22 +21515,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BasicAuthenticationRequestedEventHandler {} impl ICoreWebView2BasicAuthenticationRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BasicAuthenticationRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2BasicAuthenticationRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -21455,7 +21542,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21470,21 +21557,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BasicAuthenticationResponse {} impl ICoreWebView2BasicAuthenticationResponse_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationResponse_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BasicAuthenticationResponse_Vtbl { + pub const fn new( + ) -> ICoreWebView2BasicAuthenticationResponse_Vtbl + where + Identity: ICoreWebView2BasicAuthenticationResponse_Impl, + { unsafe extern "system" fn UserName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, username: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationResponse_Impl::UserName( this, core::mem::transmute_copy(&username), @@ -21492,15 +21581,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetUserName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, username: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationResponse_Impl::SetUserName( this, core::mem::transmute(&username), @@ -21508,15 +21599,17 @@ pub mod Web { .into() } unsafe extern "system" fn Password< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, password: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationResponse_Impl::Password( this, core::mem::transmute_copy(&password), @@ -21524,15 +21617,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPassword< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BasicAuthenticationResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, password: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BasicAuthenticationResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BasicAuthenticationResponse_Impl::SetPassword( this, core::mem::transmute(&password), @@ -21541,10 +21636,10 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - UserName: UserName::, - SetUserName: SetUserName::, - Password: Password::, - SetPassword: SetPassword::, + UserName: UserName::, + SetUserName: SetUserName::, + Password: Password::, + SetPassword: SetPassword::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21570,21 +21665,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BrowserExtension {} impl ICoreWebView2BrowserExtension_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtension_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BrowserExtension_Vtbl { + pub const fn new( + ) -> ICoreWebView2BrowserExtension_Vtbl + where + Identity: ICoreWebView2BrowserExtension_Impl, + { unsafe extern "system" fn Id< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtension_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtension_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtension_Impl::Id( this, core::mem::transmute_copy(&value), @@ -21592,15 +21689,17 @@ pub mod Web { .into() } unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtension_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtension_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtension_Impl::Name( this, core::mem::transmute_copy(&value), @@ -21608,15 +21707,17 @@ pub mod Web { .into() } unsafe extern "system" fn Remove< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtension_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtension_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtension_Impl::Remove( this, windows_core::from_raw_borrowed(&handler), @@ -21624,15 +21725,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtension_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtension_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtension_Impl::IsEnabled( this, core::mem::transmute_copy(&value), @@ -21640,16 +21743,18 @@ pub mod Web { .into() } unsafe extern "system" fn Enable< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtension_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isenabled: windows::Win32::Foundation::BOOL, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtension_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtension_Impl::Enable( this, core::mem::transmute_copy(&isenabled), @@ -21659,11 +21764,11 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Id: Id::, - Name: Name::, - Remove: Remove::, - IsEnabled: IsEnabled::, - Enable: Enable::, + Id: Id::, + Name: Name::, + Remove: Remove::, + IsEnabled: IsEnabled::, + Enable: Enable::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21675,21 +21780,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BrowserExtensionEnableCompletedHandler {} impl ICoreWebView2BrowserExtensionEnableCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionEnableCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BrowserExtensionEnableCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2BrowserExtensionEnableCompletedHandler_Vtbl + where + Identity: ICoreWebView2BrowserExtensionEnableCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionEnableCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtensionEnableCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtensionEnableCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -21698,7 +21805,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21714,21 +21821,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BrowserExtensionList {} impl ICoreWebView2BrowserExtensionList_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionList_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BrowserExtensionList_Vtbl { + pub const fn new( + ) -> ICoreWebView2BrowserExtensionList_Vtbl + where + Identity: ICoreWebView2BrowserExtensionList_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionList_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, count: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtensionList_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtensionList_Impl::Count( this, core::mem::transmute_copy(&count), @@ -21736,22 +21845,24 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionList_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, extension: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtensionList_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2BrowserExtensionList_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(extension, core::mem::transmute(ok__)); + extension.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -21759,8 +21870,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21772,21 +21883,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BrowserExtensionRemoveCompletedHandler {} impl ICoreWebView2BrowserExtensionRemoveCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionRemoveCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BrowserExtensionRemoveCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2BrowserExtensionRemoveCompletedHandler_Vtbl + where + Identity: ICoreWebView2BrowserExtensionRemoveCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserExtensionRemoveCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserExtensionRemoveCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserExtensionRemoveCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -21795,7 +21908,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21811,21 +21924,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BrowserProcessExitedEventArgs {} impl ICoreWebView2BrowserProcessExitedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserProcessExitedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BrowserProcessExitedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2BrowserProcessExitedEventArgs_Vtbl + where + Identity: ICoreWebView2BrowserProcessExitedEventArgs_Impl, + { unsafe extern "system" fn BrowserProcessExitKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserProcessExitedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, browserprocessexitkind: *mut COREWEBVIEW2_BROWSER_PROCESS_EXIT_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserProcessExitedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserProcessExitedEventArgs_Impl::BrowserProcessExitKind( this, core::mem::transmute_copy(&browserprocessexitkind), @@ -21833,15 +21948,17 @@ pub mod Web { .into() } unsafe extern "system" fn BrowserProcessId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserProcessExitedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserProcessExitedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserProcessExitedEventArgs_Impl::BrowserProcessId( this, core::mem::transmute_copy(&value), @@ -21850,8 +21967,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - BrowserProcessExitKind: BrowserProcessExitKind::, - BrowserProcessId: BrowserProcessId::, + BrowserProcessExitKind: BrowserProcessExitKind::, + BrowserProcessId: BrowserProcessId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21867,22 +21984,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BrowserProcessExitedEventHandler {} impl ICoreWebView2BrowserProcessExitedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserProcessExitedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BrowserProcessExitedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2BrowserProcessExitedEventHandler_Vtbl + where + Identity: ICoreWebView2BrowserProcessExitedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BrowserProcessExitedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BrowserProcessExitedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BrowserProcessExitedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -21892,7 +22011,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21908,22 +22027,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2BytesReceivedChangedEventHandler {} impl ICoreWebView2BytesReceivedChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BytesReceivedChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2BytesReceivedChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2BytesReceivedChangedEventHandler_Vtbl + where + Identity: ICoreWebView2BytesReceivedChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2BytesReceivedChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2BytesReceivedChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2BytesReceivedChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -21933,7 +22054,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21949,23 +22070,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CallDevToolsProtocolMethodCompletedHandler {} impl ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Vtbl + where + Identity: ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, returnobjectasjson: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CallDevToolsProtocolMethodCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -21975,7 +22097,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -21987,21 +22109,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CapturePreviewCompletedHandler {} impl ICoreWebView2CapturePreviewCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CapturePreviewCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CapturePreviewCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2CapturePreviewCompletedHandler_Vtbl + where + Identity: ICoreWebView2CapturePreviewCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CapturePreviewCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CapturePreviewCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CapturePreviewCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -22010,7 +22134,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22037,21 +22161,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Certificate {} impl ICoreWebView2Certificate_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Certificate_Vtbl { + pub const fn new( + ) -> ICoreWebView2Certificate_Vtbl + where + Identity: ICoreWebView2Certificate_Impl, + { unsafe extern "system" fn Subject< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::Subject( this, core::mem::transmute_copy(&value), @@ -22059,15 +22185,17 @@ pub mod Web { .into() } unsafe extern "system" fn Issuer< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::Issuer( this, core::mem::transmute_copy(&value), @@ -22075,15 +22203,17 @@ pub mod Web { .into() } unsafe extern "system" fn ValidFrom< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::ValidFrom( this, core::mem::transmute_copy(&value), @@ -22091,15 +22221,17 @@ pub mod Web { .into() } unsafe extern "system" fn ValidTo< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::ValidTo( this, core::mem::transmute_copy(&value), @@ -22107,15 +22239,17 @@ pub mod Web { .into() } unsafe extern "system" fn DerEncodedSerialNumber< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::DerEncodedSerialNumber( this, core::mem::transmute_copy(&value), @@ -22123,15 +22257,17 @@ pub mod Web { .into() } unsafe extern "system" fn DisplayName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::DisplayName( this, core::mem::transmute_copy(&value), @@ -22139,15 +22275,17 @@ pub mod Web { .into() } unsafe extern "system" fn ToPemEncoding< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pemencodeddata: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Certificate_Impl::ToPemEncoding( this, core::mem::transmute_copy(&pemencodeddata), @@ -22155,19 +22293,21 @@ pub mod Web { .into() } unsafe extern "system" fn PemEncodedIssuerCertificateChain< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Certificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Certificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Certificate_Impl::PemEncodedIssuerCertificateChain(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -22175,16 +22315,15 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Subject: Subject::, - Issuer: Issuer::, - ValidFrom: ValidFrom::, - ValidTo: ValidTo::, - DerEncodedSerialNumber: DerEncodedSerialNumber::, - DisplayName: DisplayName::, - ToPemEncoding: ToPemEncoding::, + Subject: Subject::, + Issuer: Issuer::, + ValidFrom: ValidFrom::, + ValidTo: ValidTo::, + DerEncodedSerialNumber: DerEncodedSerialNumber::, + DisplayName: DisplayName::, + ToPemEncoding: ToPemEncoding::, PemEncodedIssuerCertificateChain: PemEncodedIssuerCertificateChain::< Identity, - Impl, OFFSET, >, } @@ -22198,21 +22337,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ClearBrowsingDataCompletedHandler {} impl ICoreWebView2ClearBrowsingDataCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClearBrowsingDataCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ClearBrowsingDataCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ClearBrowsingDataCompletedHandler_Vtbl + where + Identity: ICoreWebView2ClearBrowsingDataCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClearBrowsingDataCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClearBrowsingDataCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClearBrowsingDataCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -22221,7 +22362,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22235,27 +22376,29 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler {} impl ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Vtbl + where + Identity: ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: + ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClearServerCertificateErrorActionsCompletedHandler_Impl:: Invoke ( this , core::mem::transmute_copy ( & errorcode ) , ) . into ( ) } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22286,21 +22429,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ClientCertificate {} impl ICoreWebView2ClientCertificate_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ClientCertificate_Vtbl { + pub const fn new( + ) -> ICoreWebView2ClientCertificate_Vtbl + where + Identity: ICoreWebView2ClientCertificate_Impl, + { unsafe extern "system" fn Subject< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::Subject( this, core::mem::transmute_copy(&value), @@ -22308,15 +22453,17 @@ pub mod Web { .into() } unsafe extern "system" fn Issuer< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::Issuer( this, core::mem::transmute_copy(&value), @@ -22324,15 +22471,17 @@ pub mod Web { .into() } unsafe extern "system" fn ValidFrom< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::ValidFrom( this, core::mem::transmute_copy(&value), @@ -22340,15 +22489,17 @@ pub mod Web { .into() } unsafe extern "system" fn ValidTo< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::ValidTo( this, core::mem::transmute_copy(&value), @@ -22356,15 +22507,17 @@ pub mod Web { .into() } unsafe extern "system" fn DerEncodedSerialNumber< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::DerEncodedSerialNumber( this, core::mem::transmute_copy(&value), @@ -22372,15 +22525,17 @@ pub mod Web { .into() } unsafe extern "system" fn DisplayName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::DisplayName( this, core::mem::transmute_copy(&value), @@ -22388,15 +22543,17 @@ pub mod Web { .into() } unsafe extern "system" fn ToPemEncoding< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pemencodeddata: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::ToPemEncoding( this, core::mem::transmute_copy(&pemencodeddata), @@ -22404,35 +22561,39 @@ pub mod Web { .into() } unsafe extern "system" fn PemEncodedIssuerCertificateChain< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ClientCertificate_Impl::PemEncodedIssuerCertificateChain( this, ) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Kind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificate_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_CLIENT_CERTIFICATE_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificate_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificate_Impl::Kind( this, core::mem::transmute_copy(&value), @@ -22441,19 +22602,18 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Subject: Subject::, - Issuer: Issuer::, - ValidFrom: ValidFrom::, - ValidTo: ValidTo::, - DerEncodedSerialNumber: DerEncodedSerialNumber::, - DisplayName: DisplayName::, - ToPemEncoding: ToPemEncoding::, + Subject: Subject::, + Issuer: Issuer::, + ValidFrom: ValidFrom::, + ValidTo: ValidTo::, + DerEncodedSerialNumber: DerEncodedSerialNumber::, + DisplayName: DisplayName::, + ToPemEncoding: ToPemEncoding::, PemEncodedIssuerCertificateChain: PemEncodedIssuerCertificateChain::< Identity, - Impl, OFFSET, >, - Kind: Kind::, + Kind: Kind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22469,21 +22629,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ClientCertificateCollection {} impl ICoreWebView2ClientCertificateCollection_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateCollection_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ClientCertificateCollection_Vtbl { + pub const fn new( + ) -> ICoreWebView2ClientCertificateCollection_Vtbl + where + Identity: ICoreWebView2ClientCertificateCollection_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateCollection_Impl::Count( this, core::mem::transmute_copy(&value), @@ -22491,22 +22653,24 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, certificate: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ClientCertificateCollection_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(certificate, core::mem::transmute(ok__)); + certificate.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -22514,8 +22678,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22562,21 +22726,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ClientCertificateRequestedEventArgs {} impl ICoreWebView2ClientCertificateRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ClientCertificateRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2ClientCertificateRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { unsafe extern "system" fn Host< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::Host( this, core::mem::transmute_copy(&value), @@ -22584,15 +22750,17 @@ pub mod Web { .into() } unsafe extern "system" fn Port< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::Port( this, core::mem::transmute_copy(&value), @@ -22600,15 +22768,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsProxy< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::IsProxy( this, core::mem::transmute_copy(&value), @@ -22616,63 +22786,73 @@ pub mod Web { .into() } unsafe extern "system" fn AllowedCertificateAuthorities< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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 ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: AllowedCertificateAuthorities ( this , ) { Ok ( ok__ ) => { core::ptr::write ( value , core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: AllowedCertificateAuthorities ( this , ) { Ok ( ok__ ) => { value . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } } unsafe extern "system" fn MutuallyTrustedCertificates< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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 ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: MutuallyTrustedCertificates ( this , ) { Ok ( ok__ ) => { core::ptr::write ( value , core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: MutuallyTrustedCertificates ( this , ) { Ok ( ok__ ) => { value . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } } unsafe extern "system" fn SelectedCertificate< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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 ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: SelectedCertificate ( this , ) { Ok ( ok__ ) => { core::ptr::write ( value , core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: SelectedCertificate ( this , ) { Ok ( ok__ ) => { value . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } } unsafe extern "system" fn SetSelectedCertificate< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl:: SetSelectedCertificate ( this , windows_core::from_raw_borrowed ( & value ) , ) . into ( ) } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::Cancel( this, core::mem::transmute_copy(&value), @@ -22680,15 +22860,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::SetCancel( this, core::mem::transmute_copy(&value), @@ -22696,15 +22878,17 @@ pub mod Web { .into() } unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::Handled( this, core::mem::transmute_copy(&value), @@ -22712,15 +22896,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventArgs_Impl::SetHandled( this, core::mem::transmute_copy(&value), @@ -22728,20 +22914,22 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ClientCertificateRequestedEventArgs_Impl::GetDeferral( this, ) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -22749,26 +22937,21 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Host: Host::, - Port: Port::, - IsProxy: IsProxy::, + Host: Host::, + Port: Port::, + IsProxy: IsProxy::, AllowedCertificateAuthorities: AllowedCertificateAuthorities::< Identity, - Impl, - OFFSET, - >, - MutuallyTrustedCertificates: MutuallyTrustedCertificates::< - Identity, - Impl, OFFSET, >, - SelectedCertificate: SelectedCertificate::, - SetSelectedCertificate: SetSelectedCertificate::, - Cancel: Cancel::, - SetCancel: SetCancel::, - Handled: Handled::, - SetHandled: SetHandled::, - GetDeferral: GetDeferral::, + MutuallyTrustedCertificates: MutuallyTrustedCertificates::, + SelectedCertificate: SelectedCertificate::, + SetSelectedCertificate: SetSelectedCertificate::, + Cancel: Cancel::, + SetCancel: SetCancel::, + Handled: Handled::, + SetHandled: SetHandled::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22784,22 +22967,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ClientCertificateRequestedEventHandler {} impl ICoreWebView2ClientCertificateRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ClientCertificateRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ClientCertificateRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2ClientCertificateRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ClientCertificateRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ClientCertificateRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ClientCertificateRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -22809,7 +22994,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -22851,39 +23036,43 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CompositionController {} impl ICoreWebView2CompositionController_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CompositionController_Vtbl { + pub const fn new( + ) -> ICoreWebView2CompositionController_Vtbl + where + Identity: ICoreWebView2CompositionController_Impl, + { unsafe extern "system" fn RootVisualTarget< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, target: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2CompositionController_Impl::RootVisualTarget(this) { Ok(ok__) => { - core::ptr::write(target, core::mem::transmute(ok__)); + target.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn SetRootVisualTarget< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, target: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::SetRootVisualTarget( this, windows_core::from_raw_borrowed(&target), @@ -22891,8 +23080,7 @@ pub mod Web { .into() } unsafe extern "system" fn SendMouseInput< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -22900,9 +23088,12 @@ pub mod Web { virtualkeys: COREWEBVIEW2_MOUSE_EVENT_VIRTUAL_KEYS, mousedata: u32, point: windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::SendMouseInput( this, core::mem::transmute_copy(&eventkind), @@ -22913,16 +23104,18 @@ pub mod Web { .into() } unsafe extern "system" fn SendPointerInput< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventkind: COREWEBVIEW2_POINTER_EVENT_KIND, pointerinfo: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::SendPointerInput( this, core::mem::transmute_copy(&eventkind), @@ -22931,15 +23124,17 @@ pub mod Web { .into() } unsafe extern "system" fn Cursor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cursor: *mut windows::Win32::UI::WindowsAndMessaging::HCURSOR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::Cursor( this, core::mem::transmute_copy(&cursor), @@ -22947,15 +23142,17 @@ pub mod Web { .into() } unsafe extern "system" fn SystemCursorId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, systemcursorid: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::SystemCursorId( this, core::mem::transmute_copy(&systemcursorid), @@ -22963,16 +23160,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_CursorChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::add_CursorChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -22981,15 +23180,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_CursorChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController_Impl::remove_CursorChanged( this, core::mem::transmute(&token), @@ -22998,14 +23199,14 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - RootVisualTarget: RootVisualTarget::, - SetRootVisualTarget: SetRootVisualTarget::, - SendMouseInput: SendMouseInput::, - SendPointerInput: SendPointerInput::, - Cursor: Cursor::, - SystemCursorId: SystemCursorId::, - add_CursorChanged: add_CursorChanged::, - remove_CursorChanged: remove_CursorChanged::, + RootVisualTarget: RootVisualTarget::, + SetRootVisualTarget: SetRootVisualTarget::, + SendMouseInput: SendMouseInput::, + SendPointerInput: SendPointerInput::, + Cursor: Cursor::, + SystemCursorId: SystemCursorId::, + add_CursorChanged: add_CursorChanged::, + remove_CursorChanged: remove_CursorChanged::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23019,36 +23220,34 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CompositionController2 {} impl ICoreWebView2CompositionController2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CompositionController2_Vtbl { + pub const fn new( + ) -> ICoreWebView2CompositionController2_Vtbl + where + Identity: ICoreWebView2CompositionController2_Impl, + { unsafe extern "system" fn AutomationProvider< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, provider: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2CompositionController2_Impl::AutomationProvider(this) { Ok(ok__) => { - core::ptr::write(provider, core::mem::transmute(ok__)); + provider.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2CompositionController_Vtbl::new::< - Identity, - Impl, - OFFSET, - >(), - AutomationProvider: AutomationProvider::, + base__: ICoreWebView2CompositionController_Vtbl::new::(), + AutomationProvider: AutomationProvider::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23084,14 +23283,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CompositionController3 {} impl ICoreWebView2CompositionController3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CompositionController3_Vtbl { + pub const fn new( + ) -> ICoreWebView2CompositionController3_Vtbl + where + Identity: ICoreWebView2CompositionController3_Impl, + { unsafe extern "system" fn DragEnter< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23099,9 +23297,12 @@ pub mod Web { keystate: u32, point: windows::Win32::Foundation::POINT, effect: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController3_Impl::DragEnter( this, windows_core::from_raw_borrowed(&dataobject), @@ -23112,28 +23313,32 @@ pub mod Web { .into() } unsafe extern "system" fn DragLeave< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController3_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController3_Impl::DragLeave(this).into() } unsafe extern "system" fn DragOver< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, keystate: u32, point: windows::Win32::Foundation::POINT, effect: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController3_Impl::DragOver( this, core::mem::transmute_copy(&keystate), @@ -23143,8 +23348,7 @@ pub mod Web { .into() } unsafe extern "system" fn Drop< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -23152,9 +23356,12 @@ pub mod Web { keystate: u32, point: windows::Win32::Foundation::POINT, effect: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController3_Impl::Drop( this, windows_core::from_raw_borrowed(&dataobject), @@ -23165,15 +23372,11 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2CompositionController2_Vtbl::new::< - Identity, - Impl, - OFFSET, - >(), - DragEnter: DragEnter::, - DragLeave: DragLeave::, - DragOver: DragOver::, - Drop: Drop::, + base__: ICoreWebView2CompositionController2_Vtbl::new::(), + DragEnter: DragEnter::, + DragLeave: DragLeave::, + DragOver: DragOver::, + Drop: Drop::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23204,22 +23407,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CompositionController4 {} impl ICoreWebView2CompositionController4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CompositionController4_Vtbl { + pub const fn new( + ) -> ICoreWebView2CompositionController4_Vtbl + where + Identity: ICoreWebView2CompositionController4_Impl, + { unsafe extern "system" fn GetNonClientRegionAtPoint< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, point: windows::Win32::Foundation::POINT, value: *mut COREWEBVIEW2_NON_CLIENT_REGION_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController4_Impl::GetNonClientRegionAtPoint( this, core::mem::transmute(&point), @@ -23228,38 +23433,42 @@ pub mod Web { .into() } unsafe extern "system" fn QueryNonClientRegion< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, kind: COREWEBVIEW2_NON_CLIENT_REGION_KIND, rects: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2CompositionController4_Impl::QueryNonClientRegion( this, core::mem::transmute_copy(&kind), ) { Ok(ok__) => { - core::ptr::write(rects, core::mem::transmute(ok__)); + rects.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn add_NonClientRegionChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController4_Impl::add_NonClientRegionChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -23268,15 +23477,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NonClientRegionChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CompositionController4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CompositionController4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CompositionController4_Impl::remove_NonClientRegionChanged( this, core::mem::transmute(&token), @@ -23284,25 +23495,12 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2CompositionController3_Vtbl::new::< - Identity, - Impl, - OFFSET, - >(), - GetNonClientRegionAtPoint: GetNonClientRegionAtPoint::< - Identity, - Impl, - OFFSET, - >, - QueryNonClientRegion: QueryNonClientRegion::, - add_NonClientRegionChanged: add_NonClientRegionChanged::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2CompositionController3_Vtbl::new::(), + GetNonClientRegionAtPoint: GetNonClientRegionAtPoint::, + QueryNonClientRegion: QueryNonClientRegion::, + add_NonClientRegionChanged: add_NonClientRegionChanged::, remove_NonClientRegionChanged: remove_NonClientRegionChanged::< Identity, - Impl, OFFSET, >, } @@ -23322,23 +23520,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContainsFullScreenElementChangedEventHandler {} impl ICoreWebView2ContainsFullScreenElementChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContainsFullScreenElementChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContainsFullScreenElementChangedEventHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2ContainsFullScreenElementChangedEventHandler_Vtbl + where + Identity: ICoreWebView2ContainsFullScreenElementChangedEventHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContainsFullScreenElementChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContainsFullScreenElementChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContainsFullScreenElementChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -23348,7 +23547,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23364,21 +23563,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContentLoadingEventArgs {} impl ICoreWebView2ContentLoadingEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContentLoadingEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContentLoadingEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContentLoadingEventArgs_Vtbl + where + Identity: ICoreWebView2ContentLoadingEventArgs_Impl, + { unsafe extern "system" fn IsErrorPage< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContentLoadingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, iserrorpage: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContentLoadingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContentLoadingEventArgs_Impl::IsErrorPage( this, core::mem::transmute_copy(&iserrorpage), @@ -23386,15 +23587,17 @@ pub mod Web { .into() } unsafe extern "system" fn NavigationId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContentLoadingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, navigationid: *mut u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContentLoadingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContentLoadingEventArgs_Impl::NavigationId( this, core::mem::transmute_copy(&navigationid), @@ -23403,8 +23606,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - IsErrorPage: IsErrorPage::, - NavigationId: NavigationId::, + IsErrorPage: IsErrorPage::, + NavigationId: NavigationId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23420,22 +23623,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContentLoadingEventHandler {} impl ICoreWebView2ContentLoadingEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContentLoadingEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContentLoadingEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContentLoadingEventHandler_Vtbl + where + Identity: ICoreWebView2ContentLoadingEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContentLoadingEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContentLoadingEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContentLoadingEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -23445,7 +23650,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23494,21 +23699,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContextMenuItem {} impl ICoreWebView2ContextMenuItem_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContextMenuItem_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContextMenuItem_Vtbl + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::Name( this, core::mem::transmute_copy(&value), @@ -23516,15 +23723,17 @@ pub mod Web { .into() } unsafe extern "system" fn Label< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::Label( this, core::mem::transmute_copy(&value), @@ -23532,15 +23741,17 @@ pub mod Web { .into() } unsafe extern "system" fn CommandId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::CommandId( this, core::mem::transmute_copy(&value), @@ -23548,15 +23759,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShortcutKeyDescription< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::ShortcutKeyDescription( this, core::mem::transmute_copy(&value), @@ -23564,33 +23777,37 @@ pub mod Web { .into() } unsafe extern "system" fn Icon< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ContextMenuItem_Impl::Icon(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Kind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::Kind( this, core::mem::transmute_copy(&value), @@ -23598,15 +23815,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::SetIsEnabled( this, core::mem::transmute_copy(&value), @@ -23614,15 +23833,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::IsEnabled( this, core::mem::transmute_copy(&value), @@ -23630,15 +23851,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsChecked< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::SetIsChecked( this, core::mem::transmute_copy(&value), @@ -23646,15 +23869,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsChecked< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::IsChecked( this, core::mem::transmute_copy(&value), @@ -23662,34 +23887,38 @@ pub mod Web { .into() } unsafe extern "system" fn Children< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ContextMenuItem_Impl::Children(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn add_CustomItemSelected< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::add_CustomItemSelected( this, windows_core::from_raw_borrowed(&eventhandler), @@ -23698,15 +23927,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_CustomItemSelected< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItem_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItem_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItem_Impl::remove_CustomItemSelected( this, core::mem::transmute(&token), @@ -23715,23 +23946,19 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Name: Name::, - Label: Label::, - CommandId: CommandId::, - ShortcutKeyDescription: ShortcutKeyDescription::, - Icon: Icon::, - Kind: Kind::, - SetIsEnabled: SetIsEnabled::, - IsEnabled: IsEnabled::, - SetIsChecked: SetIsChecked::, - IsChecked: IsChecked::, - Children: Children::, - add_CustomItemSelected: add_CustomItemSelected::, - remove_CustomItemSelected: remove_CustomItemSelected::< - Identity, - Impl, - OFFSET, - >, + Name: Name::, + Label: Label::, + CommandId: CommandId::, + ShortcutKeyDescription: ShortcutKeyDescription::, + Icon: Icon::, + Kind: Kind::, + SetIsEnabled: SetIsEnabled::, + IsEnabled: IsEnabled::, + SetIsChecked: SetIsChecked::, + IsChecked: IsChecked::, + Children: Children::, + add_CustomItemSelected: add_CustomItemSelected::, + remove_CustomItemSelected: remove_CustomItemSelected::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23753,21 +23980,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContextMenuItemCollection {} impl ICoreWebView2ContextMenuItemCollection_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItemCollection_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContextMenuItemCollection_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContextMenuItemCollection_Vtbl + where + Identity: ICoreWebView2ContextMenuItemCollection_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItemCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItemCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItemCollection_Impl::Count( this, core::mem::transmute_copy(&value), @@ -23775,37 +24004,41 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItemCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItemCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ContextMenuItemCollection_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn RemoveValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItemCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItemCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItemCollection_Impl::RemoveValueAtIndex( this, core::mem::transmute_copy(&index), @@ -23813,16 +24046,18 @@ pub mod Web { .into() } unsafe extern "system" fn InsertValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuItemCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, value: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuItemCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuItemCollection_Impl::InsertValueAtIndex( this, core::mem::transmute_copy(&index), @@ -23832,10 +24067,10 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, - RemoveValueAtIndex: RemoveValueAtIndex::, - InsertValueAtIndex: InsertValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, + RemoveValueAtIndex: RemoveValueAtIndex::, + InsertValueAtIndex: InsertValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -23865,59 +24100,65 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContextMenuRequestedEventArgs {} impl ICoreWebView2ContextMenuRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContextMenuRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContextMenuRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { unsafe extern "system" fn MenuItems< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ContextMenuRequestedEventArgs_Impl::MenuItems(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn ContextMenuTarget< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ContextMenuRequestedEventArgs_Impl::ContextMenuTarget( this, ) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Location< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuRequestedEventArgs_Impl::Location( this, core::mem::transmute_copy(&value), @@ -23925,15 +24166,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetSelectedCommandId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuRequestedEventArgs_Impl::SetSelectedCommandId( this, core::mem::transmute_copy(&value), @@ -23941,15 +24184,17 @@ pub mod Web { .into() } unsafe extern "system" fn SelectedCommandId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuRequestedEventArgs_Impl::SelectedCommandId( this, core::mem::transmute_copy(&value), @@ -23957,15 +24202,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuRequestedEventArgs_Impl::SetHandled( this, core::mem::transmute_copy(&value), @@ -23973,15 +24220,17 @@ pub mod Web { .into() } unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuRequestedEventArgs_Impl::Handled( this, core::mem::transmute_copy(&value), @@ -23989,18 +24238,20 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ContextMenuRequestedEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -24008,14 +24259,14 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - MenuItems: MenuItems::, - ContextMenuTarget: ContextMenuTarget::, - Location: Location::, - SetSelectedCommandId: SetSelectedCommandId::, - SelectedCommandId: SelectedCommandId::, - SetHandled: SetHandled::, - Handled: Handled::, - GetDeferral: GetDeferral::, + MenuItems: MenuItems::, + ContextMenuTarget: ContextMenuTarget::, + Location: Location::, + SetSelectedCommandId: SetSelectedCommandId::, + SelectedCommandId: SelectedCommandId::, + SetHandled: SetHandled::, + Handled: Handled::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -24031,22 +24282,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContextMenuRequestedEventHandler {} impl ICoreWebView2ContextMenuRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContextMenuRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContextMenuRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2ContextMenuRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -24056,7 +24309,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -24104,21 +24357,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ContextMenuTarget {} impl ICoreWebView2ContextMenuTarget_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ContextMenuTarget_Vtbl { + pub const fn new( + ) -> ICoreWebView2ContextMenuTarget_Vtbl + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { unsafe extern "system" fn Kind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_CONTEXT_MENU_TARGET_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::Kind( this, core::mem::transmute_copy(&value), @@ -24126,15 +24381,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsEditable< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::IsEditable( this, core::mem::transmute_copy(&value), @@ -24142,15 +24399,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsRequestedForMainFrame< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::IsRequestedForMainFrame( this, core::mem::transmute_copy(&value), @@ -24158,15 +24417,17 @@ pub mod Web { .into() } unsafe extern "system" fn PageUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::PageUri( this, core::mem::transmute_copy(&value), @@ -24174,15 +24435,17 @@ pub mod Web { .into() } unsafe extern "system" fn FrameUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::FrameUri( this, core::mem::transmute_copy(&value), @@ -24190,15 +24453,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasLinkUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::HasLinkUri( this, core::mem::transmute_copy(&value), @@ -24206,15 +24471,17 @@ pub mod Web { .into() } unsafe extern "system" fn LinkUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::LinkUri( this, core::mem::transmute_copy(&value), @@ -24222,15 +24489,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasLinkText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::HasLinkText( this, core::mem::transmute_copy(&value), @@ -24238,15 +24507,17 @@ pub mod Web { .into() } unsafe extern "system" fn LinkText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::LinkText( this, core::mem::transmute_copy(&value), @@ -24254,15 +24525,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasSourceUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::HasSourceUri( this, core::mem::transmute_copy(&value), @@ -24270,15 +24543,17 @@ pub mod Web { .into() } unsafe extern "system" fn SourceUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::SourceUri( this, core::mem::transmute_copy(&value), @@ -24286,15 +24561,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasSelection< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::HasSelection( this, core::mem::transmute_copy(&value), @@ -24302,15 +24579,17 @@ pub mod Web { .into() } unsafe extern "system" fn SelectionText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ContextMenuTarget_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ContextMenuTarget_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ContextMenuTarget_Impl::SelectionText( this, core::mem::transmute_copy(&value), @@ -24319,19 +24598,19 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Kind: Kind::, - IsEditable: IsEditable::, - IsRequestedForMainFrame: IsRequestedForMainFrame::, - PageUri: PageUri::, - FrameUri: FrameUri::, - HasLinkUri: HasLinkUri::, - LinkUri: LinkUri::, - HasLinkText: HasLinkText::, - LinkText: LinkText::, - HasSourceUri: HasSourceUri::, - SourceUri: SourceUri::, - HasSelection: HasSelection::, - SelectionText: SelectionText::, + Kind: Kind::, + IsEditable: IsEditable::, + IsRequestedForMainFrame: IsRequestedForMainFrame::, + PageUri: PageUri::, + FrameUri: FrameUri::, + HasLinkUri: HasLinkUri::, + LinkUri: LinkUri::, + HasLinkText: HasLinkText::, + LinkText: LinkText::, + HasSourceUri: HasSourceUri::, + SourceUri: SourceUri::, + HasSelection: HasSelection::, + SelectionText: SelectionText::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -24425,21 +24704,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Controller {} impl ICoreWebView2Controller_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Controller_Vtbl { + pub const fn new( + ) -> ICoreWebView2Controller_Vtbl + where + Identity: ICoreWebView2Controller_Impl, + { unsafe extern "system" fn IsVisible< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isvisible: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::IsVisible( this, core::mem::transmute_copy(&isvisible), @@ -24447,15 +24728,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsVisible< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isvisible: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::SetIsVisible( this, core::mem::transmute_copy(&isvisible), @@ -24463,15 +24746,17 @@ pub mod Web { .into() } unsafe extern "system" fn Bounds< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, bounds: *mut windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::Bounds( this, core::mem::transmute_copy(&bounds), @@ -24479,28 +24764,32 @@ pub mod Web { .into() } unsafe extern "system" fn SetBounds< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, bounds: windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::SetBounds(this, core::mem::transmute(&bounds)) .into() } unsafe extern "system" fn ZoomFactor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, zoomfactor: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::ZoomFactor( this, core::mem::transmute_copy(&zoomfactor), @@ -24508,15 +24797,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetZoomFactor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, zoomfactor: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::SetZoomFactor( this, core::mem::transmute_copy(&zoomfactor), @@ -24524,16 +24815,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_ZoomFactorChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::add_ZoomFactorChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -24542,15 +24835,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ZoomFactorChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::remove_ZoomFactorChanged( this, core::mem::transmute(&token), @@ -24558,16 +24853,18 @@ pub mod Web { .into() } unsafe extern "system" fn SetBoundsAndZoomFactor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, bounds: windows::Win32::Foundation::RECT, zoomfactor: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::SetBoundsAndZoomFactor( this, core::mem::transmute(&bounds), @@ -24576,15 +24873,17 @@ pub mod Web { .into() } unsafe extern "system" fn MoveFocus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, reason: COREWEBVIEW2_MOVE_FOCUS_REASON, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::MoveFocus( this, core::mem::transmute_copy(&reason), @@ -24592,16 +24891,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_MoveFocusRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::add_MoveFocusRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -24610,15 +24911,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_MoveFocusRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::remove_MoveFocusRequested( this, core::mem::transmute(&token), @@ -24626,16 +24929,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_GotFocus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::add_GotFocus( this, windows_core::from_raw_borrowed(&eventhandler), @@ -24644,15 +24949,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_GotFocus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::remove_GotFocus( this, core::mem::transmute(&token), @@ -24660,16 +24967,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_LostFocus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::add_LostFocus( this, windows_core::from_raw_borrowed(&eventhandler), @@ -24678,15 +24987,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_LostFocus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::remove_LostFocus( this, core::mem::transmute(&token), @@ -24694,16 +25005,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_AcceleratorKeyPressed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::add_AcceleratorKeyPressed( this, windows_core::from_raw_borrowed(&eventhandler), @@ -24712,15 +25025,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_AcceleratorKeyPressed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::remove_AcceleratorKeyPressed( this, core::mem::transmute(&token), @@ -24728,15 +25043,17 @@ pub mod Web { .into() } unsafe extern "system" fn ParentWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parentwindow: *mut windows::Win32::Foundation::HWND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::ParentWindow( this, core::mem::transmute_copy(&parentwindow), @@ -24744,15 +25061,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetParentWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parentwindow: windows::Win32::Foundation::HWND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::SetParentWindow( this, core::mem::transmute_copy(&parentwindow), @@ -24760,40 +25079,46 @@ pub mod Web { .into() } unsafe extern "system" fn NotifyParentWindowPositionChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::NotifyParentWindowPositionChanged(this).into() } unsafe extern "system" fn Close< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller_Impl::Close(this).into() } unsafe extern "system" fn CoreWebView2< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, corewebview2: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Controller_Impl::CoreWebView2(this) { Ok(ok__) => { - core::ptr::write(corewebview2, core::mem::transmute(ok__)); + corewebview2.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -24801,45 +25126,35 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - IsVisible: IsVisible::, - SetIsVisible: SetIsVisible::, - Bounds: Bounds::, - SetBounds: SetBounds::, - ZoomFactor: ZoomFactor::, - SetZoomFactor: SetZoomFactor::, - add_ZoomFactorChanged: add_ZoomFactorChanged::, - remove_ZoomFactorChanged: remove_ZoomFactorChanged::, - SetBoundsAndZoomFactor: SetBoundsAndZoomFactor::, - MoveFocus: MoveFocus::, - add_MoveFocusRequested: add_MoveFocusRequested::, - remove_MoveFocusRequested: remove_MoveFocusRequested::< - Identity, - Impl, - OFFSET, - >, - add_GotFocus: add_GotFocus::, - remove_GotFocus: remove_GotFocus::, - add_LostFocus: add_LostFocus::, - remove_LostFocus: remove_LostFocus::, - add_AcceleratorKeyPressed: add_AcceleratorKeyPressed::< - Identity, - Impl, - OFFSET, - >, + IsVisible: IsVisible::, + SetIsVisible: SetIsVisible::, + Bounds: Bounds::, + SetBounds: SetBounds::, + ZoomFactor: ZoomFactor::, + SetZoomFactor: SetZoomFactor::, + add_ZoomFactorChanged: add_ZoomFactorChanged::, + remove_ZoomFactorChanged: remove_ZoomFactorChanged::, + SetBoundsAndZoomFactor: SetBoundsAndZoomFactor::, + MoveFocus: MoveFocus::, + add_MoveFocusRequested: add_MoveFocusRequested::, + remove_MoveFocusRequested: remove_MoveFocusRequested::, + add_GotFocus: add_GotFocus::, + remove_GotFocus: remove_GotFocus::, + add_LostFocus: add_LostFocus::, + remove_LostFocus: remove_LostFocus::, + add_AcceleratorKeyPressed: add_AcceleratorKeyPressed::, remove_AcceleratorKeyPressed: remove_AcceleratorKeyPressed::< Identity, - Impl, OFFSET, >, - ParentWindow: ParentWindow::, - SetParentWindow: SetParentWindow::, + ParentWindow: ParentWindow::, + SetParentWindow: SetParentWindow::, NotifyParentWindowPositionChanged: NotifyParentWindowPositionChanged::< Identity, - Impl, OFFSET, >, - Close: Close::, - CoreWebView2: CoreWebView2::, + Close: Close::, + CoreWebView2: CoreWebView2::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -24858,21 +25173,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Controller2 {} impl ICoreWebView2Controller2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Controller2_Vtbl { + pub const fn new( + ) -> ICoreWebView2Controller2_Vtbl + where + Identity: ICoreWebView2Controller2_Impl, + { unsafe extern "system" fn DefaultBackgroundColor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, backgroundcolor: *mut COREWEBVIEW2_COLOR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller2_Impl::DefaultBackgroundColor( this, core::mem::transmute_copy(&backgroundcolor), @@ -24880,15 +25197,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetDefaultBackgroundColor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, backgroundcolor: COREWEBVIEW2_COLOR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller2_Impl::SetDefaultBackgroundColor( this, core::mem::transmute(&backgroundcolor), @@ -24896,13 +25215,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Controller_Vtbl::new::(), - DefaultBackgroundColor: DefaultBackgroundColor::, - SetDefaultBackgroundColor: SetDefaultBackgroundColor::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Controller_Vtbl::new::(), + DefaultBackgroundColor: DefaultBackgroundColor::, + SetDefaultBackgroundColor: SetDefaultBackgroundColor::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -24941,21 +25256,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Controller3 {} impl ICoreWebView2Controller3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Controller3_Vtbl { + pub const fn new( + ) -> ICoreWebView2Controller3_Vtbl + where + Identity: ICoreWebView2Controller3_Impl, + { unsafe extern "system" fn RasterizationScale< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, scale: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::RasterizationScale( this, core::mem::transmute_copy(&scale), @@ -24963,15 +25280,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetRasterizationScale< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, scale: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::SetRasterizationScale( this, core::mem::transmute_copy(&scale), @@ -24979,15 +25298,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldDetectMonitorScaleChanges< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::ShouldDetectMonitorScaleChanges( this, core::mem::transmute_copy(&value), @@ -24995,15 +25316,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetShouldDetectMonitorScaleChanges< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::SetShouldDetectMonitorScaleChanges( this, core::mem::transmute_copy(&value), @@ -25011,16 +25334,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_RasterizationScaleChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::add_RasterizationScaleChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -25029,15 +25354,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_RasterizationScaleChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::remove_RasterizationScaleChanged( this, core::mem::transmute(&token), @@ -25045,15 +25372,17 @@ pub mod Web { .into() } unsafe extern "system" fn BoundsMode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, boundsmode: *mut COREWEBVIEW2_BOUNDS_MODE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::BoundsMode( this, core::mem::transmute_copy(&boundsmode), @@ -25061,15 +25390,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetBoundsMode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, boundsmode: COREWEBVIEW2_BOUNDS_MODE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller3_Impl::SetBoundsMode( this, core::mem::transmute_copy(&boundsmode), @@ -25077,31 +25408,27 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Controller2_Vtbl::new::(), - RasterizationScale: RasterizationScale::, - SetRasterizationScale: SetRasterizationScale::, + base__: ICoreWebView2Controller2_Vtbl::new::(), + RasterizationScale: RasterizationScale::, + SetRasterizationScale: SetRasterizationScale::, ShouldDetectMonitorScaleChanges: ShouldDetectMonitorScaleChanges::< Identity, - Impl, OFFSET, >, SetShouldDetectMonitorScaleChanges: SetShouldDetectMonitorScaleChanges::< Identity, - Impl, OFFSET, >, add_RasterizationScaleChanged: add_RasterizationScaleChanged::< Identity, - Impl, OFFSET, >, remove_RasterizationScaleChanged: remove_RasterizationScaleChanged::< Identity, - Impl, OFFSET, >, - BoundsMode: BoundsMode::, - SetBoundsMode: SetBoundsMode::, + BoundsMode: BoundsMode::, + SetBoundsMode: SetBoundsMode::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25122,21 +25449,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Controller4 {} impl ICoreWebView2Controller4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Controller4_Vtbl { + pub const fn new( + ) -> ICoreWebView2Controller4_Vtbl + where + Identity: ICoreWebView2Controller4_Impl, + { unsafe extern "system" fn AllowExternalDrop< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller4_Impl::AllowExternalDrop( this, core::mem::transmute_copy(&value), @@ -25144,15 +25473,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAllowExternalDrop< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Controller4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Controller4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Controller4_Impl::SetAllowExternalDrop( this, core::mem::transmute_copy(&value), @@ -25160,9 +25491,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Controller3_Vtbl::new::(), - AllowExternalDrop: AllowExternalDrop::, - SetAllowExternalDrop: SetAllowExternalDrop::, + base__: ICoreWebView2Controller3_Vtbl::new::(), + AllowExternalDrop: AllowExternalDrop::, + SetAllowExternalDrop: SetAllowExternalDrop::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25186,21 +25517,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ControllerOptions {} impl ICoreWebView2ControllerOptions_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ControllerOptions_Vtbl { + pub const fn new( + ) -> ICoreWebView2ControllerOptions_Vtbl + where + Identity: ICoreWebView2ControllerOptions_Impl, + { unsafe extern "system" fn ProfileName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ControllerOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ControllerOptions_Impl::ProfileName( this, core::mem::transmute_copy(&value), @@ -25208,15 +25541,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetProfileName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ControllerOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ControllerOptions_Impl::SetProfileName( this, core::mem::transmute(&value), @@ -25224,15 +25559,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsInPrivateModeEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ControllerOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ControllerOptions_Impl::IsInPrivateModeEnabled( this, core::mem::transmute_copy(&value), @@ -25240,15 +25577,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsInPrivateModeEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ControllerOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ControllerOptions_Impl::SetIsInPrivateModeEnabled( this, core::mem::transmute_copy(&value), @@ -25257,14 +25596,10 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ProfileName: ProfileName::, - SetProfileName: SetProfileName::, - IsInPrivateModeEnabled: IsInPrivateModeEnabled::, - SetIsInPrivateModeEnabled: SetIsInPrivateModeEnabled::< - Identity, - Impl, - OFFSET, - >, + ProfileName: ProfileName::, + SetProfileName: SetProfileName::, + IsInPrivateModeEnabled: IsInPrivateModeEnabled::, + SetIsInPrivateModeEnabled: SetIsInPrivateModeEnabled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25285,21 +25620,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ControllerOptions2 {} impl ICoreWebView2ControllerOptions2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ControllerOptions2_Vtbl { + pub const fn new( + ) -> ICoreWebView2ControllerOptions2_Vtbl + where + Identity: ICoreWebView2ControllerOptions2_Impl, + { unsafe extern "system" fn ScriptLocale< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, locale: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ControllerOptions2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ControllerOptions2_Impl::ScriptLocale( this, core::mem::transmute_copy(&locale), @@ -25307,15 +25644,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetScriptLocale< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ControllerOptions2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, locale: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ControllerOptions2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ControllerOptions2_Impl::SetScriptLocale( this, core::mem::transmute(&locale), @@ -25323,10 +25662,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2ControllerOptions_Vtbl::new::( - ), - ScriptLocale: ScriptLocale::, - SetScriptLocale: SetScriptLocale::, + base__: ICoreWebView2ControllerOptions_Vtbl::new::(), + ScriptLocale: ScriptLocale::, + SetScriptLocale: SetScriptLocale::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25373,99 +25711,113 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Cookie {} impl ICoreWebView2Cookie_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Cookie_Vtbl { + pub const fn new( + ) -> ICoreWebView2Cookie_Vtbl + where + Identity: ICoreWebView2Cookie_Impl, + { unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::Name(this, core::mem::transmute_copy(&name)) .into() } unsafe extern "system" fn Value< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::Value(this, core::mem::transmute_copy(&value)) .into() } unsafe extern "system" fn SetValue< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::SetValue(this, core::mem::transmute(&value)) .into() } unsafe extern "system" fn Domain< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, domain: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::Domain(this, core::mem::transmute_copy(&domain)) .into() } unsafe extern "system" fn Path< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, path: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::Path(this, core::mem::transmute_copy(&path)) .into() } unsafe extern "system" fn Expires< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, expires: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::Expires(this, core::mem::transmute_copy(&expires)) .into() } unsafe extern "system" fn SetExpires< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, expires: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::SetExpires( this, core::mem::transmute_copy(&expires), @@ -25473,15 +25825,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsHttpOnly< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, ishttponly: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::IsHttpOnly( this, core::mem::transmute_copy(&ishttponly), @@ -25489,15 +25843,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsHttpOnly< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, ishttponly: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::SetIsHttpOnly( this, core::mem::transmute_copy(&ishttponly), @@ -25505,15 +25861,17 @@ pub mod Web { .into() } unsafe extern "system" fn SameSite< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, samesite: *mut COREWEBVIEW2_COOKIE_SAME_SITE_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::SameSite( this, core::mem::transmute_copy(&samesite), @@ -25521,15 +25879,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetSameSite< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, samesite: COREWEBVIEW2_COOKIE_SAME_SITE_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::SetSameSite( this, core::mem::transmute_copy(&samesite), @@ -25537,15 +25897,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsSecure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, issecure: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::IsSecure( this, core::mem::transmute_copy(&issecure), @@ -25553,15 +25915,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsSecure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, issecure: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::SetIsSecure( this, core::mem::transmute_copy(&issecure), @@ -25569,15 +25933,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsSession< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Cookie_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, issession: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Cookie_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Cookie_Impl::IsSession( this, core::mem::transmute_copy(&issession), @@ -25586,20 +25952,20 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Name: Name::, - Value: Value::, - SetValue: SetValue::, - Domain: Domain::, - Path: Path::, - Expires: Expires::, - SetExpires: SetExpires::, - IsHttpOnly: IsHttpOnly::, - SetIsHttpOnly: SetIsHttpOnly::, - SameSite: SameSite::, - SetSameSite: SetSameSite::, - IsSecure: IsSecure::, - SetIsSecure: SetIsSecure::, - IsSession: IsSession::, + Name: Name::, + Value: Value::, + SetValue: SetValue::, + Domain: Domain::, + Path: Path::, + Expires: Expires::, + SetExpires: SetExpires::, + IsHttpOnly: IsHttpOnly::, + SetIsHttpOnly: SetIsHttpOnly::, + SameSite: SameSite::, + SetSameSite: SetSameSite::, + IsSecure: IsSecure::, + SetIsSecure: SetIsSecure::, + IsSession: IsSession::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25612,41 +25978,45 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CookieList {} impl ICoreWebView2CookieList_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieList_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CookieList_Vtbl { + pub const fn new( + ) -> ICoreWebView2CookieList_Vtbl + where + Identity: ICoreWebView2CookieList_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieList_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, count: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieList_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieList_Impl::Count(this, core::mem::transmute_copy(&count)) .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieList_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, cookie: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieList_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2CookieList_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(cookie, core::mem::transmute(ok__)); + cookie.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -25654,8 +26024,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25702,14 +26072,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CookieManager {} impl ICoreWebView2CookieManager_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CookieManager_Vtbl { + pub const fn new( + ) -> ICoreWebView2CookieManager_Vtbl + where + Identity: ICoreWebView2CookieManager_Impl, + { unsafe extern "system" fn CreateCookie< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -25718,9 +26087,12 @@ pub mod Web { domain: windows_core::PCWSTR, path: windows_core::PCWSTR, cookie: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2CookieManager_Impl::CreateCookie( this, core::mem::transmute(&name), @@ -25729,45 +26101,49 @@ pub mod Web { core::mem::transmute(&path), ) { Ok(ok__) => { - core::ptr::write(cookie, core::mem::transmute(ok__)); + cookie.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn CopyCookie< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cookieparam: *mut core::ffi::c_void, cookie: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2CookieManager_Impl::CopyCookie( this, windows_core::from_raw_borrowed(&cookieparam), ) { Ok(ok__) => { - core::ptr::write(cookie, core::mem::transmute(ok__)); + cookie.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn GetCookies< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieManager_Impl::GetCookies( this, core::mem::transmute(&uri), @@ -25776,15 +26152,17 @@ pub mod Web { .into() } unsafe extern "system" fn AddOrUpdateCookie< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cookie: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieManager_Impl::AddOrUpdateCookie( this, windows_core::from_raw_borrowed(&cookie), @@ -25792,15 +26170,17 @@ pub mod Web { .into() } unsafe extern "system" fn DeleteCookie< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cookie: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieManager_Impl::DeleteCookie( this, windows_core::from_raw_borrowed(&cookie), @@ -25808,16 +26188,18 @@ pub mod Web { .into() } unsafe extern "system" fn DeleteCookies< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, uri: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieManager_Impl::DeleteCookies( this, core::mem::transmute(&name), @@ -25826,17 +26208,19 @@ pub mod Web { .into() } unsafe extern "system" fn DeleteCookiesWithDomainAndPath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, domain: windows_core::PCWSTR, path: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieManager_Impl::DeleteCookiesWithDomainAndPath( this, core::mem::transmute(&name), @@ -25846,30 +26230,31 @@ pub mod Web { .into() } unsafe extern "system" fn DeleteAllCookies< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CookieManager_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CookieManager_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CookieManager_Impl::DeleteAllCookies(this).into() } Self { base__: windows_core::IUnknown_Vtbl::new::(), - CreateCookie: CreateCookie::, - CopyCookie: CopyCookie::, - GetCookies: GetCookies::, - AddOrUpdateCookie: AddOrUpdateCookie::, - DeleteCookie: DeleteCookie::, - DeleteCookies: DeleteCookies::, + CreateCookie: CreateCookie::, + CopyCookie: CopyCookie::, + GetCookies: GetCookies::, + AddOrUpdateCookie: AddOrUpdateCookie::, + DeleteCookie: DeleteCookie::, + DeleteCookies: DeleteCookies::, DeleteCookiesWithDomainAndPath: DeleteCookiesWithDomainAndPath::< Identity, - Impl, OFFSET, >, - DeleteAllCookies: DeleteAllCookies::, + DeleteAllCookies: DeleteAllCookies::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25890,28 +26275,19 @@ pub mod Web { { } impl ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Vtbl - { - unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Impl, - const OFFSET: isize, - >( - this: *mut core::ffi::c_void, - errorcode: windows_core::HRESULT, - webview: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + pub const fn new( + ) -> ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Vtbl + where + Identity: + ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Impl, + { unsafe extern "system" fn Invoke < Identity :windows_core::IUnknownImpl , const OFFSET :isize > ( this : * mut core::ffi::c_void , errorcode : windows_core::HRESULT , webview : * mut core::ffi::c_void , ) -> windows_core::HRESULT where Identity : ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Impl < >{ + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler_Impl:: Invoke ( this , core::mem::transmute_copy ( & errorcode ) , windows_core::from_raw_borrowed ( & webview ) , ) . into ( ) } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25929,23 +26305,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CreateCoreWebView2ControllerCompletedHandler {} impl ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Vtbl + where + Identity: ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, createdcontroller: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CreateCoreWebView2ControllerCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -25955,7 +26332,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -25973,23 +26350,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler {} impl ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Vtbl + where + Identity: ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, createdenvironment: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -25999,7 +26377,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26015,22 +26393,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CursorChangedEventHandler {} impl ICoreWebView2CursorChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CursorChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CursorChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2CursorChangedEventHandler_Vtbl + where + Identity: ICoreWebView2CursorChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CursorChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CursorChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CursorChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -26040,7 +26420,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26056,22 +26436,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CustomItemSelectedEventHandler {} impl ICoreWebView2CustomItemSelectedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomItemSelectedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CustomItemSelectedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2CustomItemSelectedEventHandler_Vtbl + where + Identity: ICoreWebView2CustomItemSelectedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomItemSelectedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomItemSelectedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomItemSelectedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -26081,7 +26463,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26122,21 +26504,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2CustomSchemeRegistration {} impl ICoreWebView2CustomSchemeRegistration_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, - const OFFSET: isize, - >() -> ICoreWebView2CustomSchemeRegistration_Vtbl { + pub const fn new( + ) -> ICoreWebView2CustomSchemeRegistration_Vtbl + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { unsafe extern "system" fn SchemeName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, schemename: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::SchemeName( this, core::mem::transmute_copy(&schemename), @@ -26144,15 +26528,17 @@ pub mod Web { .into() } unsafe extern "system" fn TreatAsSecure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, treatassecure: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::TreatAsSecure( this, core::mem::transmute_copy(&treatassecure), @@ -26160,15 +26546,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTreatAsSecure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::SetTreatAsSecure( this, core::mem::transmute_copy(&value), @@ -26176,16 +26564,18 @@ pub mod Web { .into() } unsafe extern "system" fn GetAllowedOrigins< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, allowedoriginscount: *mut u32, allowedorigins: *mut *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::GetAllowedOrigins( this, core::mem::transmute_copy(&allowedoriginscount), @@ -26194,16 +26584,18 @@ pub mod Web { .into() } unsafe extern "system" fn SetAllowedOrigins< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, allowedoriginscount: u32, allowedorigins: *const windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::SetAllowedOrigins( this, core::mem::transmute_copy(&allowedoriginscount), @@ -26212,15 +26604,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasAuthorityComponent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hasauthoritycomponent: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::HasAuthorityComponent( this, core::mem::transmute_copy(&hasauthoritycomponent), @@ -26228,15 +26622,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHasAuthorityComponent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2CustomSchemeRegistration_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hasauthoritycomponent: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2CustomSchemeRegistration_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2CustomSchemeRegistration_Impl::SetHasAuthorityComponent( this, core::mem::transmute_copy(&hasauthoritycomponent), @@ -26245,13 +26641,13 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - SchemeName: SchemeName::, - TreatAsSecure: TreatAsSecure::, - SetTreatAsSecure: SetTreatAsSecure::, - GetAllowedOrigins: GetAllowedOrigins::, - SetAllowedOrigins: SetAllowedOrigins::, - HasAuthorityComponent: HasAuthorityComponent::, - SetHasAuthorityComponent: SetHasAuthorityComponent::, + SchemeName: SchemeName::, + TreatAsSecure: TreatAsSecure::, + SetTreatAsSecure: SetTreatAsSecure::, + GetAllowedOrigins: GetAllowedOrigins::, + SetAllowedOrigins: SetAllowedOrigins::, + HasAuthorityComponent: HasAuthorityComponent::, + SetHasAuthorityComponent: SetHasAuthorityComponent::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26263,21 +26659,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DOMContentLoadedEventArgs {} impl ICoreWebView2DOMContentLoadedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DOMContentLoadedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DOMContentLoadedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2DOMContentLoadedEventArgs_Vtbl + where + Identity: ICoreWebView2DOMContentLoadedEventArgs_Impl, + { unsafe extern "system" fn NavigationId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DOMContentLoadedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, navigationid: *mut u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DOMContentLoadedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DOMContentLoadedEventArgs_Impl::NavigationId( this, core::mem::transmute_copy(&navigationid), @@ -26286,7 +26684,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - NavigationId: NavigationId::, + NavigationId: NavigationId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26302,22 +26700,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DOMContentLoadedEventHandler {} impl ICoreWebView2DOMContentLoadedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DOMContentLoadedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DOMContentLoadedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2DOMContentLoadedEventHandler_Vtbl + where + Identity: ICoreWebView2DOMContentLoadedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DOMContentLoadedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DOMContentLoadedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DOMContentLoadedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -26327,7 +26727,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26339,25 +26739,27 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Deferral {} impl ICoreWebView2Deferral_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Deferral_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Deferral_Vtbl { + pub const fn new( + ) -> ICoreWebView2Deferral_Vtbl + where + Identity: ICoreWebView2Deferral_Impl, + { unsafe extern "system" fn Complete< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Deferral_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Deferral_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Deferral_Impl::Complete(this).into() } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Complete: Complete::, + Complete: Complete::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26372,26 +26774,28 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DevToolsProtocolEventReceivedEventArgs {} impl ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Vtbl + where + Identity: ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Impl, + { unsafe extern "system" fn ParameterObjectAsJson< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parameterobjectasjson: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Impl:: ParameterObjectAsJson ( this , core::mem::transmute_copy ( & parameterobjectasjson ) , ) . into ( ) } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ParameterObjectAsJson: ParameterObjectAsJson::, + ParameterObjectAsJson: ParameterObjectAsJson::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26408,21 +26812,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DevToolsProtocolEventReceivedEventArgs2 {} impl ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Vtbl + where + Identity: ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Impl, + { unsafe extern "system" fn SessionId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sessionid: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DevToolsProtocolEventReceivedEventArgs2_Impl::SessionId( this, core::mem::transmute_copy(&sessionid), @@ -26432,10 +26838,9 @@ pub mod Web { Self { base__: ICoreWebView2DevToolsProtocolEventReceivedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), - SessionId: SessionId::, + SessionId: SessionId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26451,22 +26856,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DevToolsProtocolEventReceivedEventHandler {} impl ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Vtbl + where + Identity: ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DevToolsProtocolEventReceivedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -26476,7 +26883,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26496,46 +26903,48 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DevToolsProtocolEventReceiver {} impl ICoreWebView2DevToolsProtocolEventReceiver_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceiver_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DevToolsProtocolEventReceiver_Vtbl { + pub const fn new( + ) -> ICoreWebView2DevToolsProtocolEventReceiver_Vtbl + where + Identity: ICoreWebView2DevToolsProtocolEventReceiver_Impl, + { unsafe extern "system" fn add_DevToolsProtocolEventReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceiver_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DevToolsProtocolEventReceiver_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DevToolsProtocolEventReceiver_Impl:: add_DevToolsProtocolEventReceived ( this , windows_core::from_raw_borrowed ( & handler ) , core::mem::transmute_copy ( & token ) , ) . into ( ) } unsafe extern "system" fn remove_DevToolsProtocolEventReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DevToolsProtocolEventReceiver_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DevToolsProtocolEventReceiver_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DevToolsProtocolEventReceiver_Impl:: remove_DevToolsProtocolEventReceived ( this , core::mem::transmute ( & token ) , ) . into ( ) } Self { base__: windows_core::IUnknown_Vtbl::new::(), add_DevToolsProtocolEventReceived: add_DevToolsProtocolEventReceived::< Identity, - Impl, OFFSET, >, remove_DevToolsProtocolEventReceived: remove_DevToolsProtocolEventReceived::< Identity, - Impl, OFFSET, >, } @@ -26553,22 +26962,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DocumentTitleChangedEventHandler {} impl ICoreWebView2DocumentTitleChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DocumentTitleChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DocumentTitleChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2DocumentTitleChangedEventHandler_Vtbl + where + Identity: ICoreWebView2DocumentTitleChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DocumentTitleChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DocumentTitleChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DocumentTitleChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -26578,7 +26989,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -26650,22 +27061,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DownloadOperation {} impl ICoreWebView2DownloadOperation_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DownloadOperation_Vtbl { + pub const fn new( + ) -> ICoreWebView2DownloadOperation_Vtbl + where + Identity: ICoreWebView2DownloadOperation_Impl, + { unsafe extern "system" fn add_BytesReceivedChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::add_BytesReceivedChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -26674,15 +27087,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_BytesReceivedChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::remove_BytesReceivedChanged( this, core::mem::transmute(&token), @@ -26690,16 +27105,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_EstimatedEndTimeChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::add_EstimatedEndTimeChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -26708,15 +27125,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_EstimatedEndTimeChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::remove_EstimatedEndTimeChanged( this, core::mem::transmute(&token), @@ -26724,16 +27143,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_StateChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::add_StateChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -26742,15 +27163,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_StateChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::remove_StateChanged( this, core::mem::transmute(&token), @@ -26758,15 +27181,17 @@ pub mod Web { .into() } unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::Uri( this, core::mem::transmute_copy(&uri), @@ -26774,15 +27199,17 @@ pub mod Web { .into() } unsafe extern "system" fn ContentDisposition< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, contentdisposition: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::ContentDisposition( this, core::mem::transmute_copy(&contentdisposition), @@ -26790,15 +27217,17 @@ pub mod Web { .into() } unsafe extern "system" fn MimeType< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, mimetype: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::MimeType( this, core::mem::transmute_copy(&mimetype), @@ -26806,15 +27235,17 @@ pub mod Web { .into() } unsafe extern "system" fn TotalBytesToReceive< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, totalbytestoreceive: *mut i64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::TotalBytesToReceive( this, core::mem::transmute_copy(&totalbytestoreceive), @@ -26822,15 +27253,17 @@ pub mod Web { .into() } unsafe extern "system" fn BytesReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, bytesreceived: *mut i64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::BytesReceived( this, core::mem::transmute_copy(&bytesreceived), @@ -26838,15 +27271,17 @@ pub mod Web { .into() } unsafe extern "system" fn EstimatedEndTime< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, estimatedendtime: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::EstimatedEndTime( this, core::mem::transmute_copy(&estimatedendtime), @@ -26854,15 +27289,17 @@ pub mod Web { .into() } unsafe extern "system" fn ResultFilePath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, resultfilepath: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::ResultFilePath( this, core::mem::transmute_copy(&resultfilepath), @@ -26870,15 +27307,17 @@ pub mod Web { .into() } unsafe extern "system" fn State< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, downloadstate: *mut COREWEBVIEW2_DOWNLOAD_STATE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::State( this, core::mem::transmute_copy(&downloadstate), @@ -26886,15 +27325,17 @@ pub mod Web { .into() } unsafe extern "system" fn InterruptReason< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, interruptreason: *mut COREWEBVIEW2_DOWNLOAD_INTERRUPT_REASON, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::InterruptReason( this, core::mem::transmute_copy(&interruptreason), @@ -26902,48 +27343,56 @@ pub mod Web { .into() } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::Cancel(this).into() } unsafe extern "system" fn Pause< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::Pause(this).into() } unsafe extern "system" fn Resume< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::Resume(this).into() } unsafe extern "system" fn CanResume< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadOperation_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, canresume: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadOperation_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadOperation_Impl::CanResume( this, core::mem::transmute_copy(&canresume), @@ -26952,37 +27401,28 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - add_BytesReceivedChanged: add_BytesReceivedChanged::, - remove_BytesReceivedChanged: remove_BytesReceivedChanged::< - Identity, - Impl, - OFFSET, - >, - add_EstimatedEndTimeChanged: add_EstimatedEndTimeChanged::< - Identity, - Impl, - OFFSET, - >, + add_BytesReceivedChanged: add_BytesReceivedChanged::, + remove_BytesReceivedChanged: remove_BytesReceivedChanged::, + add_EstimatedEndTimeChanged: add_EstimatedEndTimeChanged::, remove_EstimatedEndTimeChanged: remove_EstimatedEndTimeChanged::< Identity, - Impl, OFFSET, >, - add_StateChanged: add_StateChanged::, - remove_StateChanged: remove_StateChanged::, - Uri: Uri::, - ContentDisposition: ContentDisposition::, - MimeType: MimeType::, - TotalBytesToReceive: TotalBytesToReceive::, - BytesReceived: BytesReceived::, - EstimatedEndTime: EstimatedEndTime::, - ResultFilePath: ResultFilePath::, - State: State::, - InterruptReason: InterruptReason::, - Cancel: Cancel::, - Pause: Pause::, - Resume: Resume::, - CanResume: CanResume::, + add_StateChanged: add_StateChanged::, + remove_StateChanged: remove_StateChanged::, + Uri: Uri::, + ContentDisposition: ContentDisposition::, + MimeType: MimeType::, + TotalBytesToReceive: TotalBytesToReceive::, + BytesReceived: BytesReceived::, + EstimatedEndTime: EstimatedEndTime::, + ResultFilePath: ResultFilePath::, + State: State::, + InterruptReason: InterruptReason::, + Cancel: Cancel::, + Pause: Pause::, + Resume: Resume::, + CanResume: CanResume::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27020,39 +27460,43 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DownloadStartingEventArgs {} impl ICoreWebView2DownloadStartingEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DownloadStartingEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2DownloadStartingEventArgs_Vtbl + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { unsafe extern "system" fn DownloadOperation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, downloadoperation: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2DownloadStartingEventArgs_Impl::DownloadOperation(this) { Ok(ok__) => { - core::ptr::write(downloadoperation, core::mem::transmute(ok__)); + downloadoperation.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cancel: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventArgs_Impl::Cancel( this, core::mem::transmute_copy(&cancel), @@ -27060,15 +27504,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cancel: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventArgs_Impl::SetCancel( this, core::mem::transmute_copy(&cancel), @@ -27076,15 +27522,17 @@ pub mod Web { .into() } unsafe extern "system" fn ResultFilePath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, resultfilepath: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventArgs_Impl::ResultFilePath( this, core::mem::transmute_copy(&resultfilepath), @@ -27092,15 +27540,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetResultFilePath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, resultfilepath: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventArgs_Impl::SetResultFilePath( this, core::mem::transmute(&resultfilepath), @@ -27108,15 +27558,17 @@ pub mod Web { .into() } unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventArgs_Impl::Handled( this, core::mem::transmute_copy(&handled), @@ -27124,15 +27576,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventArgs_Impl::SetHandled( this, core::mem::transmute_copy(&handled), @@ -27140,18 +27594,20 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2DownloadStartingEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -27159,14 +27615,14 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - DownloadOperation: DownloadOperation::, - Cancel: Cancel::, - SetCancel: SetCancel::, - ResultFilePath: ResultFilePath::, - SetResultFilePath: SetResultFilePath::, - Handled: Handled::, - SetHandled: SetHandled::, - GetDeferral: GetDeferral::, + DownloadOperation: DownloadOperation::, + Cancel: Cancel::, + SetCancel: SetCancel::, + ResultFilePath: ResultFilePath::, + SetResultFilePath: SetResultFilePath::, + Handled: Handled::, + SetHandled: SetHandled::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27182,22 +27638,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2DownloadStartingEventHandler {} impl ICoreWebView2DownloadStartingEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2DownloadStartingEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2DownloadStartingEventHandler_Vtbl + where + Identity: ICoreWebView2DownloadStartingEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2DownloadStartingEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2DownloadStartingEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2DownloadStartingEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -27207,7 +27665,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27243,22 +27701,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment {} impl ICoreWebView2Environment_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment_Vtbl + where + Identity: ICoreWebView2Environment_Impl, + { unsafe extern "system" fn CreateCoreWebView2Controller< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parentwindow: windows::Win32::Foundation::HWND, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment_Impl::CreateCoreWebView2Controller( this, core::mem::transmute_copy(&parentwindow), @@ -27267,8 +27727,7 @@ pub mod Web { .into() } unsafe extern "system" fn CreateWebResourceResponse< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27277,9 +27736,12 @@ pub mod Web { reasonphrase: windows_core::PCWSTR, headers: windows_core::PCWSTR, response: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment_Impl::CreateWebResourceResponse( this, windows_core::from_raw_borrowed(&content), @@ -27288,22 +27750,24 @@ pub mod Web { core::mem::transmute(&headers), ) { Ok(ok__) => { - core::ptr::write(response, core::mem::transmute(ok__)); + response.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn BrowserVersionString< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, versioninfo: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment_Impl::BrowserVersionString( this, core::mem::transmute_copy(&versioninfo), @@ -27311,16 +27775,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_NewBrowserVersionAvailable< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment_Impl::add_NewBrowserVersionAvailable( this, windows_core::from_raw_borrowed(&eventhandler), @@ -27329,15 +27795,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NewBrowserVersionAvailable< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment_Impl::remove_NewBrowserVersionAvailable( this, core::mem::transmute(&token), @@ -27348,23 +27816,16 @@ pub mod Web { base__: windows_core::IUnknown_Vtbl::new::(), CreateCoreWebView2Controller: CreateCoreWebView2Controller::< Identity, - Impl, - OFFSET, - >, - CreateWebResourceResponse: CreateWebResourceResponse::< - Identity, - Impl, OFFSET, >, - BrowserVersionString: BrowserVersionString::, + CreateWebResourceResponse: CreateWebResourceResponse::, + BrowserVersionString: BrowserVersionString::, add_NewBrowserVersionAvailable: add_NewBrowserVersionAvailable::< Identity, - Impl, OFFSET, >, remove_NewBrowserVersionAvailable: remove_NewBrowserVersionAvailable::< Identity, - Impl, OFFSET, >, } @@ -27396,43 +27857,47 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment10 {} impl ICoreWebView2Environment10_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment10_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment10_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment10_Vtbl + where + Identity: ICoreWebView2Environment10_Impl, + { unsafe extern "system" fn CreateCoreWebView2ControllerOptions< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment10_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, options: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment10_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment10_Impl::CreateCoreWebView2ControllerOptions( this, ) { Ok(ok__) => { - core::ptr::write(options, core::mem::transmute(ok__)); + options.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn CreateCoreWebView2ControllerWithOptions< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment10_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parentwindow: windows::Win32::Foundation::HWND, options: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment10_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment10_Impl::CreateCoreWebView2ControllerWithOptions( this, core::mem::transmute_copy(&parentwindow), @@ -27442,34 +27907,31 @@ pub mod Web { .into() } unsafe extern "system" fn CreateCoreWebView2CompositionControllerWithOptions< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment10_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parentwindow: windows::Win32::Foundation::HWND, options: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment10_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment10_Impl:: CreateCoreWebView2CompositionControllerWithOptions ( this , core::mem::transmute_copy ( & parentwindow ) , windows_core::from_raw_borrowed ( & options ) , windows_core::from_raw_borrowed ( & handler ) , ) . into ( ) } Self { - base__: ICoreWebView2Environment9_Vtbl::new::(), + base__: ICoreWebView2Environment9_Vtbl::new::(), CreateCoreWebView2ControllerOptions: CreateCoreWebView2ControllerOptions::< Identity, - Impl, OFFSET, >, CreateCoreWebView2ControllerWithOptions: - CreateCoreWebView2ControllerWithOptions::, + CreateCoreWebView2ControllerWithOptions::, CreateCoreWebView2CompositionControllerWithOptions: - CreateCoreWebView2CompositionControllerWithOptions::< - Identity, - Impl, - OFFSET, - >, + CreateCoreWebView2CompositionControllerWithOptions::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27495,21 +27957,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment11 {} impl ICoreWebView2Environment11_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment11_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment11_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment11_Vtbl + where + Identity: ICoreWebView2Environment11_Impl, + { unsafe extern "system" fn FailureReportFolderPath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment11_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment11_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment11_Impl::FailureReportFolderPath( this, core::mem::transmute_copy(&value), @@ -27517,8 +27981,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Environment10_Vtbl::new::(), - FailureReportFolderPath: FailureReportFolderPath::, + base__: ICoreWebView2Environment10_Vtbl::new::(), + FailureReportFolderPath: FailureReportFolderPath::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27545,36 +28009,38 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment12 {} impl ICoreWebView2Environment12_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment12_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment12_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment12_Vtbl + where + Identity: ICoreWebView2Environment12_Impl, + { unsafe extern "system" fn CreateSharedBuffer< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment12_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, size: u64, shared_buffer: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment12_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment12_Impl::CreateSharedBuffer( this, core::mem::transmute_copy(&size), ) { Ok(ok__) => { - core::ptr::write(shared_buffer, core::mem::transmute(ok__)); + shared_buffer.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment11_Vtbl::new::(), - CreateSharedBuffer: CreateSharedBuffer::, + base__: ICoreWebView2Environment11_Vtbl::new::(), + CreateSharedBuffer: CreateSharedBuffer::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27602,21 +28068,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment13 {} impl ICoreWebView2Environment13_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment13_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment13_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment13_Vtbl + where + Identity: ICoreWebView2Environment13_Impl, + { unsafe extern "system" fn GetProcessExtendedInfos< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment13_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment13_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment13_Impl::GetProcessExtendedInfos( this, windows_core::from_raw_borrowed(&handler), @@ -27624,8 +28092,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Environment12_Vtbl::new::(), - GetProcessExtendedInfos: GetProcessExtendedInfos::, + base__: ICoreWebView2Environment12_Vtbl::new::(), + GetProcessExtendedInfos: GetProcessExtendedInfos::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27657,14 +28125,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment2 {} impl ICoreWebView2Environment2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment2_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment2_Vtbl + where + Identity: ICoreWebView2Environment2_Impl, + { unsafe extern "system" fn CreateWebResourceRequest< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -27673,9 +28140,12 @@ pub mod Web { postdata: *mut core::ffi::c_void, headers: windows_core::PCWSTR, request: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment2_Impl::CreateWebResourceRequest( this, core::mem::transmute(&uri), @@ -27684,15 +28154,15 @@ pub mod Web { core::mem::transmute(&headers), ) { Ok(ok__) => { - core::ptr::write(request, core::mem::transmute(ok__)); + request.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment_Vtbl::new::(), - CreateWebResourceRequest: CreateWebResourceRequest::, + base__: ICoreWebView2Environment_Vtbl::new::(), + CreateWebResourceRequest: CreateWebResourceRequest::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27716,22 +28186,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment3 {} impl ICoreWebView2Environment3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment3_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment3_Vtbl + where + Identity: ICoreWebView2Environment3_Impl, + { unsafe extern "system" fn CreateCoreWebView2CompositionController< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, parentwindow: windows::Win32::Foundation::HWND, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment3_Impl::CreateCoreWebView2CompositionController( this, core::mem::transmute_copy(&parentwindow), @@ -27740,30 +28212,31 @@ pub mod Web { .into() } unsafe extern "system" fn CreateCoreWebView2PointerInfo< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerinfo: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment3_Impl::CreateCoreWebView2PointerInfo(this) { Ok(ok__) => { - core::ptr::write(pointerinfo, core::mem::transmute(ok__)); + pointerinfo.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment2_Vtbl::new::(), + base__: ICoreWebView2Environment2_Vtbl::new::(), CreateCoreWebView2CompositionController: - CreateCoreWebView2CompositionController::, + CreateCoreWebView2CompositionController::, CreateCoreWebView2PointerInfo: CreateCoreWebView2PointerInfo::< Identity, - Impl, OFFSET, >, } @@ -27784,38 +28257,39 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment4 {} impl ICoreWebView2Environment4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment4_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment4_Vtbl + where + Identity: ICoreWebView2Environment4_Impl, + { unsafe extern "system" fn GetAutomationProviderForWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hwnd: windows::Win32::Foundation::HWND, provider: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment4_Impl::GetAutomationProviderForWindow( this, core::mem::transmute_copy(&hwnd), ) { Ok(ok__) => { - core::ptr::write(provider, core::mem::transmute(ok__)); + provider.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment3_Vtbl::new::(), + base__: ICoreWebView2Environment3_Vtbl::new::(), GetAutomationProviderForWindow: GetAutomationProviderForWindow::< Identity, - Impl, OFFSET, >, } @@ -27842,22 +28316,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment5 {} impl ICoreWebView2Environment5_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment5_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment5_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment5_Vtbl + where + Identity: ICoreWebView2Environment5_Impl, + { unsafe extern "system" fn add_BrowserProcessExited< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment5_Impl::add_BrowserProcessExited( this, windows_core::from_raw_borrowed(&eventhandler), @@ -27866,15 +28342,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_BrowserProcessExited< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment5_Impl::remove_BrowserProcessExited( this, core::mem::transmute(&token), @@ -27882,13 +28360,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Environment4_Vtbl::new::(), - add_BrowserProcessExited: add_BrowserProcessExited::, - remove_BrowserProcessExited: remove_BrowserProcessExited::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Environment4_Vtbl::new::(), + add_BrowserProcessExited: add_BrowserProcessExited::, + remove_BrowserProcessExited: remove_BrowserProcessExited::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27906,32 +28380,34 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment6 {} impl ICoreWebView2Environment6_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment6_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment6_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment6_Vtbl + where + Identity: ICoreWebView2Environment6_Impl, + { unsafe extern "system" fn CreatePrintSettings< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, printsettings: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment6_Impl::CreatePrintSettings(this) { Ok(ok__) => { - core::ptr::write(printsettings, core::mem::transmute(ok__)); + printsettings.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment5_Vtbl::new::(), - CreatePrintSettings: CreatePrintSettings::, + base__: ICoreWebView2Environment5_Vtbl::new::(), + CreatePrintSettings: CreatePrintSettings::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -27953,21 +28429,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment7 {} impl ICoreWebView2Environment7_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment7_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment7_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment7_Vtbl + where + Identity: ICoreWebView2Environment7_Impl, + { unsafe extern "system" fn UserDataFolder< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment7_Impl::UserDataFolder( this, core::mem::transmute_copy(&value), @@ -27975,8 +28453,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Environment6_Vtbl::new::(), - UserDataFolder: UserDataFolder::, + base__: ICoreWebView2Environment6_Vtbl::new::(), + UserDataFolder: UserDataFolder::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28007,22 +28485,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment8 {} impl ICoreWebView2Environment8_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment8_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment8_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment8_Vtbl + where + Identity: ICoreWebView2Environment8_Impl, + { unsafe extern "system" fn add_ProcessInfosChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment8_Impl::add_ProcessInfosChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -28031,15 +28511,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ProcessInfosChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Environment8_Impl::remove_ProcessInfosChanged( this, core::mem::transmute(&token), @@ -28047,32 +28529,30 @@ pub mod Web { .into() } unsafe extern "system" fn GetProcessInfos< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment8_Impl::GetProcessInfos(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment7_Vtbl::new::(), - add_ProcessInfosChanged: add_ProcessInfosChanged::, - remove_ProcessInfosChanged: remove_ProcessInfosChanged::< - Identity, - Impl, - OFFSET, - >, - GetProcessInfos: GetProcessInfos::, + base__: ICoreWebView2Environment7_Vtbl::new::(), + add_ProcessInfosChanged: add_ProcessInfosChanged::, + remove_ProcessInfosChanged: remove_ProcessInfosChanged::, + GetProcessInfos: GetProcessInfos::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28098,14 +28578,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Environment9 {} impl ICoreWebView2Environment9_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment9_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Environment9_Vtbl { + pub const fn new( + ) -> ICoreWebView2Environment9_Vtbl + where + Identity: ICoreWebView2Environment9_Impl, + { unsafe extern "system" fn CreateContextMenuItem< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Environment9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -28113,9 +28592,12 @@ pub mod Web { iconstream: *mut core::ffi::c_void, kind: COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND, item: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Environment9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Environment9_Impl::CreateContextMenuItem( this, core::mem::transmute(&label), @@ -28123,15 +28605,15 @@ pub mod Web { core::mem::transmute_copy(&kind), ) { Ok(ok__) => { - core::ptr::write(item, core::mem::transmute(ok__)); + item.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Environment8_Vtbl::new::(), - CreateContextMenuItem: CreateContextMenuItem::, + base__: ICoreWebView2Environment8_Vtbl::new::(), + CreateContextMenuItem: CreateContextMenuItem::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28176,21 +28658,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions {} impl ICoreWebView2EnvironmentOptions_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { unsafe extern "system" fn AdditionalBrowserArguments< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl::AdditionalBrowserArguments( this, core::mem::transmute_copy(&value), @@ -28198,15 +28682,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAdditionalBrowserArguments< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl::SetAdditionalBrowserArguments( this, core::mem::transmute(&value), @@ -28214,15 +28700,17 @@ pub mod Web { .into() } unsafe extern "system" fn Language< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl::Language( this, core::mem::transmute_copy(&value), @@ -28230,15 +28718,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetLanguage< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl::SetLanguage( this, core::mem::transmute(&value), @@ -28246,15 +28736,17 @@ pub mod Web { .into() } unsafe extern "system" fn TargetCompatibleBrowserVersion< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl::TargetCompatibleBrowserVersion( this, core::mem::transmute_copy(&value), @@ -28262,15 +28754,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTargetCompatibleBrowserVersion< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl::SetTargetCompatibleBrowserVersion( this, core::mem::transmute(&value), @@ -28278,57 +28772,54 @@ pub mod Web { .into() } unsafe extern "system" fn AllowSingleSignOnUsingOSPrimaryAccount< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, allow: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl:: AllowSingleSignOnUsingOSPrimaryAccount ( this , core::mem::transmute_copy ( & allow ) , ) . into ( ) } unsafe extern "system" fn SetAllowSingleSignOnUsingOSPrimaryAccount< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, allow: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions_Impl:: SetAllowSingleSignOnUsingOSPrimaryAccount ( this , core::mem::transmute_copy ( & allow ) , ) . into ( ) } Self { base__: windows_core::IUnknown_Vtbl::new::(), - AdditionalBrowserArguments: AdditionalBrowserArguments::< - Identity, - Impl, - OFFSET, - >, + AdditionalBrowserArguments: AdditionalBrowserArguments::, SetAdditionalBrowserArguments: SetAdditionalBrowserArguments::< Identity, - Impl, OFFSET, >, - Language: Language::, - SetLanguage: SetLanguage::, + Language: Language::, + SetLanguage: SetLanguage::, TargetCompatibleBrowserVersion: TargetCompatibleBrowserVersion::< Identity, - Impl, OFFSET, >, SetTargetCompatibleBrowserVersion: SetTargetCompatibleBrowserVersion::< Identity, - Impl, OFFSET, >, AllowSingleSignOnUsingOSPrimaryAccount: - AllowSingleSignOnUsingOSPrimaryAccount::, + AllowSingleSignOnUsingOSPrimaryAccount::, SetAllowSingleSignOnUsingOSPrimaryAccount: - SetAllowSingleSignOnUsingOSPrimaryAccount::, + SetAllowSingleSignOnUsingOSPrimaryAccount::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28347,21 +28838,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions2 {} impl ICoreWebView2EnvironmentOptions2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions2_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions2_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions2_Impl, + { unsafe extern "system" fn ExclusiveUserDataFolderAccess< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions2_Impl::ExclusiveUserDataFolderAccess( this, core::mem::transmute_copy(&value), @@ -28369,15 +28862,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetExclusiveUserDataFolderAccess< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions2_Impl::SetExclusiveUserDataFolderAccess( this, core::mem::transmute_copy(&value), @@ -28388,12 +28883,10 @@ pub mod Web { base__: windows_core::IUnknown_Vtbl::new::(), ExclusiveUserDataFolderAccess: ExclusiveUserDataFolderAccess::< Identity, - Impl, OFFSET, >, SetExclusiveUserDataFolderAccess: SetExclusiveUserDataFolderAccess::< Identity, - Impl, OFFSET, >, } @@ -28414,21 +28907,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions3 {} impl ICoreWebView2EnvironmentOptions3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions3_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions3_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions3_Impl, + { unsafe extern "system" fn IsCustomCrashReportingEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions3_Impl::IsCustomCrashReportingEnabled( this, core::mem::transmute_copy(&value), @@ -28436,15 +28931,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsCustomCrashReportingEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions3_Impl::SetIsCustomCrashReportingEnabled( this, core::mem::transmute_copy(&value), @@ -28455,12 +28952,10 @@ pub mod Web { base__: windows_core::IUnknown_Vtbl::new::(), IsCustomCrashReportingEnabled: IsCustomCrashReportingEnabled::< Identity, - Impl, OFFSET, >, SetIsCustomCrashReportingEnabled: SetIsCustomCrashReportingEnabled::< Identity, - Impl, OFFSET, >, } @@ -28482,14 +28977,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions4 {} impl ICoreWebView2EnvironmentOptions4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions4_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions4_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions4_Impl, + { unsafe extern "system" fn GetCustomSchemeRegistrations< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -28497,9 +28991,12 @@ pub mod Web { schemeregistrations: *mut *mut Option< ICoreWebView2CustomSchemeRegistration, >, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions4_Impl::GetCustomSchemeRegistrations( this, core::mem::transmute_copy(&count), @@ -28508,22 +29005,24 @@ pub mod Web { .into() } unsafe extern "system" fn SetCustomSchemeRegistrations< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, count: u32, schemeregistrations: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2EnvironmentOptions4_Impl::SetCustomSchemeRegistrations( this, core::mem::transmute_copy(&count), ) { Ok(ok__) => { - core::ptr::write(schemeregistrations, core::mem::transmute(ok__)); + schemeregistrations.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -28533,12 +29032,10 @@ pub mod Web { base__: windows_core::IUnknown_Vtbl::new::(), GetCustomSchemeRegistrations: GetCustomSchemeRegistrations::< Identity, - Impl, OFFSET, >, SetCustomSchemeRegistrations: SetCustomSchemeRegistrations::< Identity, - Impl, OFFSET, >, } @@ -28559,21 +29056,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions5 {} impl ICoreWebView2EnvironmentOptions5_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions5_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions5_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions5_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions5_Impl, + { unsafe extern "system" fn EnableTrackingPrevention< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions5_Impl::EnableTrackingPrevention( this, core::mem::transmute_copy(&value), @@ -28581,15 +29080,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetEnableTrackingPrevention< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions5_Impl::SetEnableTrackingPrevention( this, core::mem::transmute_copy(&value), @@ -28598,12 +29099,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - EnableTrackingPrevention: EnableTrackingPrevention::, - SetEnableTrackingPrevention: SetEnableTrackingPrevention::< - Identity, - Impl, - OFFSET, - >, + EnableTrackingPrevention: EnableTrackingPrevention::, + SetEnableTrackingPrevention: SetEnableTrackingPrevention::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28622,21 +29119,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions6 {} impl ICoreWebView2EnvironmentOptions6_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions6_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions6_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions6_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions6_Impl, + { unsafe extern "system" fn AreBrowserExtensionsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions6_Impl::AreBrowserExtensionsEnabled( this, core::mem::transmute_copy(&value), @@ -28644,15 +29143,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAreBrowserExtensionsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions6_Impl::SetAreBrowserExtensionsEnabled( this, core::mem::transmute_copy(&value), @@ -28661,14 +29162,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - AreBrowserExtensionsEnabled: AreBrowserExtensionsEnabled::< - Identity, - Impl, - OFFSET, - >, + AreBrowserExtensionsEnabled: AreBrowserExtensionsEnabled::, SetAreBrowserExtensionsEnabled: SetAreBrowserExtensionsEnabled::< Identity, - Impl, OFFSET, >, } @@ -28697,21 +29193,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions7 {} impl ICoreWebView2EnvironmentOptions7_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions7_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions7_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions7_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions7_Impl, + { unsafe extern "system" fn ChannelSearchKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_CHANNEL_SEARCH_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions7_Impl::ChannelSearchKind( this, core::mem::transmute_copy(&value), @@ -28719,15 +29217,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetChannelSearchKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_CHANNEL_SEARCH_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions7_Impl::SetChannelSearchKind( this, core::mem::transmute_copy(&value), @@ -28735,15 +29235,17 @@ pub mod Web { .into() } unsafe extern "system" fn ReleaseChannels< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_RELEASE_CHANNELS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions7_Impl::ReleaseChannels( this, core::mem::transmute_copy(&value), @@ -28751,15 +29253,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetReleaseChannels< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_RELEASE_CHANNELS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions7_Impl::SetReleaseChannels( this, core::mem::transmute_copy(&value), @@ -28768,10 +29272,10 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ChannelSearchKind: ChannelSearchKind::, - SetChannelSearchKind: SetChannelSearchKind::, - ReleaseChannels: ReleaseChannels::, - SetReleaseChannels: SetReleaseChannels::, + ChannelSearchKind: ChannelSearchKind::, + SetChannelSearchKind: SetChannelSearchKind::, + ReleaseChannels: ReleaseChannels::, + SetReleaseChannels: SetReleaseChannels::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28790,21 +29294,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EnvironmentOptions8 {} impl ICoreWebView2EnvironmentOptions8_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions8_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EnvironmentOptions8_Vtbl { + pub const fn new( + ) -> ICoreWebView2EnvironmentOptions8_Vtbl + where + Identity: ICoreWebView2EnvironmentOptions8_Impl, + { unsafe extern "system" fn ScrollBarStyle< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_SCROLLBAR_STYLE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions8_Impl::ScrollBarStyle( this, core::mem::transmute_copy(&value), @@ -28812,15 +29318,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetScrollBarStyle< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EnvironmentOptions8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_SCROLLBAR_STYLE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EnvironmentOptions8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EnvironmentOptions8_Impl::SetScrollBarStyle( this, core::mem::transmute_copy(&value), @@ -28829,8 +29337,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ScrollBarStyle: ScrollBarStyle::, - SetScrollBarStyle: SetScrollBarStyle::, + ScrollBarStyle: ScrollBarStyle::, + SetScrollBarStyle: SetScrollBarStyle::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28846,22 +29354,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2EstimatedEndTimeChangedEventHandler {} impl ICoreWebView2EstimatedEndTimeChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EstimatedEndTimeChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2EstimatedEndTimeChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2EstimatedEndTimeChangedEventHandler_Vtbl + where + Identity: ICoreWebView2EstimatedEndTimeChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2EstimatedEndTimeChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2EstimatedEndTimeChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2EstimatedEndTimeChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -28871,7 +29381,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28887,22 +29397,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ExecuteScriptCompletedHandler {} impl ICoreWebView2ExecuteScriptCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ExecuteScriptCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ExecuteScriptCompletedHandler_Vtbl + where + Identity: ICoreWebView2ExecuteScriptCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, resultobjectasjson: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ExecuteScriptCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ExecuteScriptCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -28912,7 +29424,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -28937,21 +29449,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ExecuteScriptResult {} impl ICoreWebView2ExecuteScriptResult_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptResult_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ExecuteScriptResult_Vtbl { + pub const fn new( + ) -> ICoreWebView2ExecuteScriptResult_Vtbl + where + Identity: ICoreWebView2ExecuteScriptResult_Impl, + { unsafe extern "system" fn Succeeded< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptResult_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ExecuteScriptResult_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ExecuteScriptResult_Impl::Succeeded( this, core::mem::transmute_copy(&value), @@ -28959,15 +29473,17 @@ pub mod Web { .into() } unsafe extern "system" fn ResultAsJson< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptResult_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, jsonresult: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ExecuteScriptResult_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ExecuteScriptResult_Impl::ResultAsJson( this, core::mem::transmute_copy(&jsonresult), @@ -28975,16 +29491,18 @@ pub mod Web { .into() } unsafe extern "system" fn TryGetResultAsString< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptResult_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, stringresult: *mut windows_core::PWSTR, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ExecuteScriptResult_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ExecuteScriptResult_Impl::TryGetResultAsString( this, core::mem::transmute_copy(&stringresult), @@ -28993,18 +29511,20 @@ pub mod Web { .into() } unsafe extern "system" fn Exception< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptResult_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, exception: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ExecuteScriptResult_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ExecuteScriptResult_Impl::Exception(this) { Ok(ok__) => { - core::ptr::write(exception, core::mem::transmute(ok__)); + exception.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -29012,10 +29532,10 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Succeeded: Succeeded::, - ResultAsJson: ResultAsJson::, - TryGetResultAsString: TryGetResultAsString::, - Exception: Exception::, + Succeeded: Succeeded::, + ResultAsJson: ResultAsJson::, + TryGetResultAsString: TryGetResultAsString::, + Exception: Exception::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29031,22 +29551,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ExecuteScriptWithResultCompletedHandler {} impl ICoreWebView2ExecuteScriptWithResultCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptWithResultCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ExecuteScriptWithResultCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ExecuteScriptWithResultCompletedHandler_Vtbl + where + Identity: ICoreWebView2ExecuteScriptWithResultCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ExecuteScriptWithResultCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, result: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ExecuteScriptWithResultCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ExecuteScriptWithResultCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -29056,7 +29578,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29072,22 +29594,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FaviconChangedEventHandler {} impl ICoreWebView2FaviconChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FaviconChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FaviconChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FaviconChangedEventHandler_Vtbl + where + Identity: ICoreWebView2FaviconChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FaviconChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FaviconChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FaviconChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -29097,7 +29621,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29109,26 +29633,28 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2File {} impl ICoreWebView2File_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2File_Impl, - const OFFSET: isize, - >() -> ICoreWebView2File_Vtbl { + pub const fn new( + ) -> ICoreWebView2File_Vtbl + where + Identity: ICoreWebView2File_Impl, + { unsafe extern "system" fn Path< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2File_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, path: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2File_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2File_Impl::Path(this, core::mem::transmute_copy(&path)).into() } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Path: Path::, + Path: Path::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29144,22 +29670,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FocusChangedEventHandler {} impl ICoreWebView2FocusChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FocusChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FocusChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FocusChangedEventHandler_Vtbl + where + Identity: ICoreWebView2FocusChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FocusChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FocusChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FocusChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -29169,7 +29697,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29214,34 +29742,38 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Frame {} impl ICoreWebView2Frame_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Frame_Vtbl { + pub const fn new( + ) -> ICoreWebView2Frame_Vtbl + where + Identity: ICoreWebView2Frame_Impl, + { unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::Name(this, core::mem::transmute_copy(&name)).into() } unsafe extern "system" fn add_NameChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::add_NameChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -29250,15 +29782,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NameChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::remove_NameChanged( this, core::mem::transmute(&token), @@ -29266,8 +29800,7 @@ pub mod Web { .into() } unsafe extern "system" fn AddHostObjectToScriptWithOrigins< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -29275,9 +29808,12 @@ pub mod Web { object: *mut core::mem::MaybeUninit, originscount: u32, origins: *const windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::AddHostObjectToScriptWithOrigins( this, core::mem::transmute(&name), @@ -29288,15 +29824,17 @@ pub mod Web { .into() } unsafe extern "system" fn RemoveHostObjectFromScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::RemoveHostObjectFromScript( this, core::mem::transmute(&name), @@ -29304,16 +29842,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_Destroyed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::add_Destroyed( this, windows_core::from_raw_borrowed(&eventhandler), @@ -29322,15 +29862,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_Destroyed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::remove_Destroyed( this, core::mem::transmute(&token), @@ -29338,15 +29880,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsDestroyed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, destroyed: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame_Impl::IsDestroyed( this, core::mem::transmute_copy(&destroyed), @@ -29355,22 +29899,17 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Name: Name::, - add_NameChanged: add_NameChanged::, - remove_NameChanged: remove_NameChanged::, + Name: Name::, + add_NameChanged: add_NameChanged::, + remove_NameChanged: remove_NameChanged::, AddHostObjectToScriptWithOrigins: AddHostObjectToScriptWithOrigins::< Identity, - Impl, - OFFSET, - >, - RemoveHostObjectFromScript: RemoveHostObjectFromScript::< - Identity, - Impl, OFFSET, >, - add_Destroyed: add_Destroyed::, - remove_Destroyed: remove_Destroyed::, - IsDestroyed: IsDestroyed::, + RemoveHostObjectFromScript: RemoveHostObjectFromScript::, + add_Destroyed: add_Destroyed::, + remove_Destroyed: remove_Destroyed::, + IsDestroyed: IsDestroyed::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29439,22 +29978,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Frame2 {} impl ICoreWebView2Frame2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Frame2_Vtbl { + pub const fn new( + ) -> ICoreWebView2Frame2_Vtbl + where + Identity: ICoreWebView2Frame2_Impl, + { unsafe extern "system" fn add_NavigationStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::add_NavigationStarting( this, windows_core::from_raw_borrowed(&eventhandler), @@ -29463,15 +30004,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NavigationStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::remove_NavigationStarting( this, core::mem::transmute(&token), @@ -29479,16 +30022,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_ContentLoading< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::add_ContentLoading( this, windows_core::from_raw_borrowed(&eventhandler), @@ -29497,15 +30042,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ContentLoading< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::remove_ContentLoading( this, core::mem::transmute(&token), @@ -29513,16 +30060,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_NavigationCompleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::add_NavigationCompleted( this, windows_core::from_raw_borrowed(&eventhandler), @@ -29531,15 +30080,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_NavigationCompleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::remove_NavigationCompleted( this, core::mem::transmute(&token), @@ -29547,16 +30098,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_DOMContentLoaded< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::add_DOMContentLoaded( this, windows_core::from_raw_borrowed(&eventhandler), @@ -29565,15 +30118,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_DOMContentLoaded< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::remove_DOMContentLoaded( this, core::mem::transmute(&token), @@ -29581,16 +30136,18 @@ pub mod Web { .into() } unsafe extern "system" fn ExecuteScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, javascript: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::ExecuteScript( this, core::mem::transmute(&javascript), @@ -29599,15 +30156,17 @@ pub mod Web { .into() } unsafe extern "system" fn PostWebMessageAsJson< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, webmessageasjson: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::PostWebMessageAsJson( this, core::mem::transmute(&webmessageasjson), @@ -29615,15 +30174,17 @@ pub mod Web { .into() } unsafe extern "system" fn PostWebMessageAsString< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, webmessageasstring: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::PostWebMessageAsString( this, core::mem::transmute(&webmessageasstring), @@ -29631,16 +30192,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_WebMessageReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::add_WebMessageReceived( this, windows_core::from_raw_borrowed(&handler), @@ -29649,15 +30212,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_WebMessageReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame2_Impl::remove_WebMessageReceived( this, core::mem::transmute(&token), @@ -29665,32 +30230,20 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Frame_Vtbl::new::(), - add_NavigationStarting: add_NavigationStarting::, - remove_NavigationStarting: remove_NavigationStarting::< - Identity, - Impl, - OFFSET, - >, - add_ContentLoading: add_ContentLoading::, - remove_ContentLoading: remove_ContentLoading::, - add_NavigationCompleted: add_NavigationCompleted::, - remove_NavigationCompleted: remove_NavigationCompleted::< - Identity, - Impl, - OFFSET, - >, - add_DOMContentLoaded: add_DOMContentLoaded::, - remove_DOMContentLoaded: remove_DOMContentLoaded::, - ExecuteScript: ExecuteScript::, - PostWebMessageAsJson: PostWebMessageAsJson::, - PostWebMessageAsString: PostWebMessageAsString::, - add_WebMessageReceived: add_WebMessageReceived::, - remove_WebMessageReceived: remove_WebMessageReceived::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Frame_Vtbl::new::(), + add_NavigationStarting: add_NavigationStarting::, + remove_NavigationStarting: remove_NavigationStarting::, + add_ContentLoading: add_ContentLoading::, + remove_ContentLoading: remove_ContentLoading::, + add_NavigationCompleted: add_NavigationCompleted::, + remove_NavigationCompleted: remove_NavigationCompleted::, + add_DOMContentLoaded: add_DOMContentLoaded::, + remove_DOMContentLoaded: remove_DOMContentLoaded::, + ExecuteScript: ExecuteScript::, + PostWebMessageAsJson: PostWebMessageAsJson::, + PostWebMessageAsString: PostWebMessageAsString::, + add_WebMessageReceived: add_WebMessageReceived::, + remove_WebMessageReceived: remove_WebMessageReceived::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29711,22 +30264,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Frame3 {} impl ICoreWebView2Frame3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Frame3_Vtbl { + pub const fn new( + ) -> ICoreWebView2Frame3_Vtbl + where + Identity: ICoreWebView2Frame3_Impl, + { unsafe extern "system" fn add_PermissionRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame3_Impl::add_PermissionRequested( this, windows_core::from_raw_borrowed(&handler), @@ -29735,15 +30290,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_PermissionRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame3_Impl::remove_PermissionRequested( this, core::mem::transmute(&token), @@ -29751,13 +30308,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Frame2_Vtbl::new::(), - add_PermissionRequested: add_PermissionRequested::, - remove_PermissionRequested: remove_PermissionRequested::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Frame2_Vtbl::new::(), + add_PermissionRequested: add_PermissionRequested::, + remove_PermissionRequested: remove_PermissionRequested::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29776,23 +30329,25 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Frame4 {} impl ICoreWebView2Frame4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Frame4_Vtbl { + pub const fn new( + ) -> ICoreWebView2Frame4_Vtbl + where + Identity: ICoreWebView2Frame4_Impl, + { unsafe extern "system" fn PostSharedBufferToScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sharedbuffer: *mut core::ffi::c_void, access: COREWEBVIEW2_SHARED_BUFFER_ACCESS, additionaldataasjson: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame4_Impl::PostSharedBufferToScript( this, windows_core::from_raw_borrowed(&sharedbuffer), @@ -29802,8 +30357,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Frame3_Vtbl::new::(), - PostSharedBufferToScript: PostSharedBufferToScript::, + base__: ICoreWebView2Frame3_Vtbl::new::(), + PostSharedBufferToScript: PostSharedBufferToScript::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29818,27 +30373,29 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Frame5 {} impl ICoreWebView2Frame5_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame5_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Frame5_Vtbl { + pub const fn new( + ) -> ICoreWebView2Frame5_Vtbl + where + Identity: ICoreWebView2Frame5_Impl, + { unsafe extern "system" fn FrameId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Frame5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, id: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Frame5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Frame5_Impl::FrameId(this, core::mem::transmute_copy(&id)) .into() } Self { - base__: ICoreWebView2Frame4_Vtbl::new::(), - FrameId: FrameId::, + base__: ICoreWebView2Frame4_Vtbl::new::(), + FrameId: FrameId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29858,22 +30415,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameContentLoadingEventHandler {} impl ICoreWebView2FrameContentLoadingEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameContentLoadingEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameContentLoadingEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameContentLoadingEventHandler_Vtbl + where + Identity: ICoreWebView2FrameContentLoadingEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameContentLoadingEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameContentLoadingEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameContentLoadingEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -29883,7 +30442,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29895,24 +30454,26 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameCreatedEventArgs {} impl ICoreWebView2FrameCreatedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameCreatedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameCreatedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameCreatedEventArgs_Vtbl + where + Identity: ICoreWebView2FrameCreatedEventArgs_Impl, + { unsafe extern "system" fn Frame< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameCreatedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frame: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameCreatedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2FrameCreatedEventArgs_Impl::Frame(this) { Ok(ok__) => { - core::ptr::write(frame, core::mem::transmute(ok__)); + frame.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -29920,7 +30481,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Frame: Frame::, + Frame: Frame::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29936,22 +30497,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameCreatedEventHandler {} impl ICoreWebView2FrameCreatedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameCreatedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameCreatedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameCreatedEventHandler_Vtbl + where + Identity: ICoreWebView2FrameCreatedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameCreatedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameCreatedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameCreatedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -29961,7 +30524,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -29977,22 +30540,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameDOMContentLoadedEventHandler {} impl ICoreWebView2FrameDOMContentLoadedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameDOMContentLoadedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameDOMContentLoadedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameDOMContentLoadedEventHandler_Vtbl + where + Identity: ICoreWebView2FrameDOMContentLoadedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameDOMContentLoadedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameDOMContentLoadedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameDOMContentLoadedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30002,7 +30567,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30018,22 +30583,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameDestroyedEventHandler {} impl ICoreWebView2FrameDestroyedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameDestroyedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameDestroyedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameDestroyedEventHandler_Vtbl + where + Identity: ICoreWebView2FrameDestroyedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameDestroyedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameDestroyedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameDestroyedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30043,7 +30610,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30056,34 +30623,38 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameInfo {} impl ICoreWebView2FrameInfo_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameInfo_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameInfo_Vtbl + where + Identity: ICoreWebView2FrameInfo_Impl, + { unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameInfo_Impl::Name(this, core::mem::transmute_copy(&name)) .into() } unsafe extern "system" fn Source< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, source: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameInfo_Impl::Source( this, core::mem::transmute_copy(&source), @@ -30092,8 +30663,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Name: Name::, - Source: Source::, + Name: Name::, + Source: Source::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30108,52 +30679,58 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameInfo2 {} impl ICoreWebView2FrameInfo2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameInfo2_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameInfo2_Vtbl + where + Identity: ICoreWebView2FrameInfo2_Impl, + { unsafe extern "system" fn ParentFrameInfo< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frameinfo: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfo2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2FrameInfo2_Impl::ParentFrameInfo(this) { Ok(ok__) => { - core::ptr::write(frameinfo, core::mem::transmute(ok__)); + frameinfo.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn FrameId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, id: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfo2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameInfo2_Impl::FrameId(this, core::mem::transmute_copy(&id)) .into() } unsafe extern "system" fn FrameKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfo2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, kind: *mut COREWEBVIEW2_FRAME_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfo2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameInfo2_Impl::FrameKind( this, core::mem::transmute_copy(&kind), @@ -30161,10 +30738,10 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2FrameInfo_Vtbl::new::(), - ParentFrameInfo: ParentFrameInfo::, - FrameId: FrameId::, - FrameKind: FrameKind::, + base__: ICoreWebView2FrameInfo_Vtbl::new::(), + ParentFrameInfo: ParentFrameInfo::, + FrameId: FrameId::, + FrameKind: FrameKind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30179,24 +30756,26 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameInfoCollection {} impl ICoreWebView2FrameInfoCollection_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfoCollection_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameInfoCollection_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameInfoCollection_Vtbl + where + Identity: ICoreWebView2FrameInfoCollection_Impl, + { unsafe extern "system" fn GetIterator< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfoCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, iterator: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfoCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2FrameInfoCollection_Impl::GetIterator(this) { Ok(ok__) => { - core::ptr::write(iterator, core::mem::transmute(ok__)); + iterator.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -30204,7 +30783,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - GetIterator: GetIterator::, + GetIterator: GetIterator::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30224,21 +30803,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameInfoCollectionIterator {} impl ICoreWebView2FrameInfoCollectionIterator_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfoCollectionIterator_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameInfoCollectionIterator_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameInfoCollectionIterator_Vtbl + where + Identity: ICoreWebView2FrameInfoCollectionIterator_Impl, + { unsafe extern "system" fn HasCurrent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfoCollectionIterator_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hascurrent: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfoCollectionIterator_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameInfoCollectionIterator_Impl::HasCurrent( this, core::mem::transmute_copy(&hascurrent), @@ -30246,33 +30827,37 @@ pub mod Web { .into() } unsafe extern "system" fn GetCurrent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfoCollectionIterator_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frameinfo: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfoCollectionIterator_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2FrameInfoCollectionIterator_Impl::GetCurrent(this) { Ok(ok__) => { - core::ptr::write(frameinfo, core::mem::transmute(ok__)); + frameinfo.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn MoveNext< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameInfoCollectionIterator_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hasnext: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameInfoCollectionIterator_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameInfoCollectionIterator_Impl::MoveNext( this, core::mem::transmute_copy(&hasnext), @@ -30281,9 +30866,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - HasCurrent: HasCurrent::, - GetCurrent: GetCurrent::, - MoveNext: MoveNext::, + HasCurrent: HasCurrent::, + GetCurrent: GetCurrent::, + MoveNext: MoveNext::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30299,22 +30884,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameNameChangedEventHandler {} impl ICoreWebView2FrameNameChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameNameChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameNameChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameNameChangedEventHandler_Vtbl + where + Identity: ICoreWebView2FrameNameChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameNameChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameNameChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameNameChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30324,7 +30911,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30340,22 +30927,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameNavigationCompletedEventHandler {} impl ICoreWebView2FrameNavigationCompletedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameNavigationCompletedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameNavigationCompletedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameNavigationCompletedEventHandler_Vtbl + where + Identity: ICoreWebView2FrameNavigationCompletedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameNavigationCompletedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameNavigationCompletedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameNavigationCompletedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30365,7 +30954,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30381,22 +30970,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameNavigationStartingEventHandler {} impl ICoreWebView2FrameNavigationStartingEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameNavigationStartingEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameNavigationStartingEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameNavigationStartingEventHandler_Vtbl + where + Identity: ICoreWebView2FrameNavigationStartingEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameNavigationStartingEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameNavigationStartingEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameNavigationStartingEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30406,7 +30997,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30422,22 +31013,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FramePermissionRequestedEventHandler {} impl ICoreWebView2FramePermissionRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FramePermissionRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FramePermissionRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FramePermissionRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2FramePermissionRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FramePermissionRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FramePermissionRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FramePermissionRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30447,7 +31040,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30463,22 +31056,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2FrameWebMessageReceivedEventHandler {} impl ICoreWebView2FrameWebMessageReceivedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameWebMessageReceivedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2FrameWebMessageReceivedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2FrameWebMessageReceivedEventHandler_Vtbl + where + Identity: ICoreWebView2FrameWebMessageReceivedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2FrameWebMessageReceivedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2FrameWebMessageReceivedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2FrameWebMessageReceivedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30488,7 +31083,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30504,22 +31099,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2GetCookiesCompletedHandler {} impl ICoreWebView2GetCookiesCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetCookiesCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2GetCookiesCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2GetCookiesCompletedHandler_Vtbl + where + Identity: ICoreWebView2GetCookiesCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetCookiesCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, result: windows_core::HRESULT, cookielist: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2GetCookiesCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2GetCookiesCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&result), @@ -30529,7 +31126,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30545,22 +31142,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2GetFaviconCompletedHandler {} impl ICoreWebView2GetFaviconCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetFaviconCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2GetFaviconCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2GetFaviconCompletedHandler_Vtbl + where + Identity: ICoreWebView2GetFaviconCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetFaviconCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, faviconstream: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2GetFaviconCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2GetFaviconCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -30570,7 +31169,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30588,23 +31187,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler {} impl ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Vtbl + where + Identity: ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, collectionview: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2GetNonDefaultPermissionSettingsCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -30614,7 +31214,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30630,22 +31230,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2GetProcessExtendedInfosCompletedHandler {} impl ICoreWebView2GetProcessExtendedInfosCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetProcessExtendedInfosCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2GetProcessExtendedInfosCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2GetProcessExtendedInfosCompletedHandler_Vtbl + where + Identity: ICoreWebView2GetProcessExtendedInfosCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2GetProcessExtendedInfosCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, value: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2GetProcessExtendedInfosCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2GetProcessExtendedInfosCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -30655,7 +31257,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30671,22 +31273,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2HistoryChangedEventHandler {} impl ICoreWebView2HistoryChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HistoryChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2HistoryChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2HistoryChangedEventHandler_Vtbl + where + Identity: ICoreWebView2HistoryChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HistoryChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HistoryChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HistoryChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -30696,7 +31300,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30720,22 +31324,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2HttpHeadersCollectionIterator {} impl ICoreWebView2HttpHeadersCollectionIterator_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpHeadersCollectionIterator_Impl, - const OFFSET: isize, - >() -> ICoreWebView2HttpHeadersCollectionIterator_Vtbl { + pub const fn new( + ) -> ICoreWebView2HttpHeadersCollectionIterator_Vtbl + where + Identity: ICoreWebView2HttpHeadersCollectionIterator_Impl, + { unsafe extern "system" fn GetCurrentHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpHeadersCollectionIterator_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: *mut windows_core::PWSTR, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpHeadersCollectionIterator_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpHeadersCollectionIterator_Impl::GetCurrentHeader( this, core::mem::transmute_copy(&name), @@ -30744,15 +31350,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasCurrentHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpHeadersCollectionIterator_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hascurrent: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpHeadersCollectionIterator_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpHeadersCollectionIterator_Impl::HasCurrentHeader( this, core::mem::transmute_copy(&hascurrent), @@ -30760,15 +31368,17 @@ pub mod Web { .into() } unsafe extern "system" fn MoveNext< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpHeadersCollectionIterator_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hasnext: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpHeadersCollectionIterator_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpHeadersCollectionIterator_Impl::MoveNext( this, core::mem::transmute_copy(&hasnext), @@ -30777,9 +31387,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - GetCurrentHeader: GetCurrentHeader::, - HasCurrentHeader: HasCurrentHeader::, - MoveNext: MoveNext::, + GetCurrentHeader: GetCurrentHeader::, + HasCurrentHeader: HasCurrentHeader::, + MoveNext: MoveNext::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30813,22 +31423,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2HttpRequestHeaders {} impl ICoreWebView2HttpRequestHeaders_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, - const OFFSET: isize, - >() -> ICoreWebView2HttpRequestHeaders_Vtbl { + pub const fn new( + ) -> ICoreWebView2HttpRequestHeaders_Vtbl + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { unsafe extern "system" fn GetHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpRequestHeaders_Impl::GetHeader( this, core::mem::transmute(&name), @@ -30837,38 +31449,42 @@ pub mod Web { .into() } unsafe extern "system" fn GetHeaders< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, iterator: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2HttpRequestHeaders_Impl::GetHeaders( this, core::mem::transmute(&name), ) { Ok(ok__) => { - core::ptr::write(iterator, core::mem::transmute(ok__)); + iterator.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Contains< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, contains: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpRequestHeaders_Impl::Contains( this, core::mem::transmute(&name), @@ -30877,16 +31493,18 @@ pub mod Web { .into() } unsafe extern "system" fn SetHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpRequestHeaders_Impl::SetHeader( this, core::mem::transmute(&name), @@ -30895,15 +31513,17 @@ pub mod Web { .into() } unsafe extern "system" fn RemoveHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpRequestHeaders_Impl::RemoveHeader( this, core::mem::transmute(&name), @@ -30911,18 +31531,20 @@ pub mod Web { .into() } unsafe extern "system" fn GetIterator< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpRequestHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, iterator: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpRequestHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2HttpRequestHeaders_Impl::GetIterator(this) { Ok(ok__) => { - core::ptr::write(iterator, core::mem::transmute(ok__)); + iterator.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -30930,12 +31552,12 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - GetHeader: GetHeader::, - GetHeaders: GetHeaders::, - Contains: Contains::, - SetHeader: SetHeader::, - RemoveHeader: RemoveHeader::, - GetIterator: GetIterator::, + GetHeader: GetHeader::, + GetHeaders: GetHeaders::, + Contains: Contains::, + SetHeader: SetHeader::, + RemoveHeader: RemoveHeader::, + GetIterator: GetIterator::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -30968,22 +31590,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2HttpResponseHeaders {} impl ICoreWebView2HttpResponseHeaders_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpResponseHeaders_Impl, - const OFFSET: isize, - >() -> ICoreWebView2HttpResponseHeaders_Vtbl { + pub const fn new( + ) -> ICoreWebView2HttpResponseHeaders_Vtbl + where + Identity: ICoreWebView2HttpResponseHeaders_Impl, + { unsafe extern "system" fn AppendHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpResponseHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpResponseHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpResponseHeaders_Impl::AppendHeader( this, core::mem::transmute(&name), @@ -30992,16 +31616,18 @@ pub mod Web { .into() } unsafe extern "system" fn Contains< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpResponseHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, contains: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpResponseHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpResponseHeaders_Impl::Contains( this, core::mem::transmute(&name), @@ -31010,16 +31636,18 @@ pub mod Web { .into() } unsafe extern "system" fn GetHeader< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpResponseHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpResponseHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2HttpResponseHeaders_Impl::GetHeader( this, core::mem::transmute(&name), @@ -31028,40 +31656,44 @@ pub mod Web { .into() } unsafe extern "system" fn GetHeaders< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpResponseHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, name: windows_core::PCWSTR, iterator: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpResponseHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2HttpResponseHeaders_Impl::GetHeaders( this, core::mem::transmute(&name), ) { Ok(ok__) => { - core::ptr::write(iterator, core::mem::transmute(ok__)); + iterator.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn GetIterator< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2HttpResponseHeaders_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, iterator: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2HttpResponseHeaders_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2HttpResponseHeaders_Impl::GetIterator(this) { Ok(ok__) => { - core::ptr::write(iterator, core::mem::transmute(ok__)); + iterator.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -31069,11 +31701,11 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - AppendHeader: AppendHeader::, - Contains: Contains::, - GetHeader: GetHeader::, - GetHeaders: GetHeaders::, - GetIterator: GetIterator::, + AppendHeader: AppendHeader::, + Contains: Contains::, + GetHeader: GetHeader::, + GetHeaders: GetHeaders::, + GetIterator: GetIterator::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31091,23 +31723,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler {} impl ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Vtbl + where + Identity: ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2IsDefaultDownloadDialogOpenChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31117,7 +31750,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31133,22 +31766,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2IsDocumentPlayingAudioChangedEventHandler {} impl ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Vtbl + where + Identity: ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2IsDocumentPlayingAudioChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31158,7 +31793,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31174,22 +31809,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2IsMutedChangedEventHandler {} impl ICoreWebView2IsMutedChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2IsMutedChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2IsMutedChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2IsMutedChangedEventHandler_Vtbl + where + Identity: ICoreWebView2IsMutedChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2IsMutedChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2IsMutedChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2IsMutedChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31199,7 +31836,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31228,21 +31865,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2LaunchingExternalUriSchemeEventArgs {} impl ICoreWebView2LaunchingExternalUriSchemeEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2LaunchingExternalUriSchemeEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2LaunchingExternalUriSchemeEventArgs_Vtbl + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl::Uri( this, core::mem::transmute_copy(&value), @@ -31250,15 +31889,17 @@ pub mod Web { .into() } unsafe extern "system" fn InitiatingOrigin< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl::InitiatingOrigin( this, core::mem::transmute_copy(&value), @@ -31266,15 +31907,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsUserInitiated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl::IsUserInitiated( this, core::mem::transmute_copy(&value), @@ -31282,15 +31925,17 @@ pub mod Web { .into() } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl::Cancel( this, core::mem::transmute_copy(&value), @@ -31298,15 +31943,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl::SetCancel( this, core::mem::transmute_copy(&value), @@ -31314,20 +31961,22 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2LaunchingExternalUriSchemeEventArgs_Impl::GetDeferral( this, ) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -31335,12 +31984,12 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - InitiatingOrigin: InitiatingOrigin::, - IsUserInitiated: IsUserInitiated::, - Cancel: Cancel::, - SetCancel: SetCancel::, - GetDeferral: GetDeferral::, + Uri: Uri::, + InitiatingOrigin: InitiatingOrigin::, + IsUserInitiated: IsUserInitiated::, + Cancel: Cancel::, + SetCancel: SetCancel::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31356,22 +32005,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2LaunchingExternalUriSchemeEventHandler {} impl ICoreWebView2LaunchingExternalUriSchemeEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2LaunchingExternalUriSchemeEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2LaunchingExternalUriSchemeEventHandler_Vtbl + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2LaunchingExternalUriSchemeEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2LaunchingExternalUriSchemeEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2LaunchingExternalUriSchemeEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31381,7 +32032,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31404,21 +32055,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2MoveFocusRequestedEventArgs {} impl ICoreWebView2MoveFocusRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2MoveFocusRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2MoveFocusRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2MoveFocusRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + { unsafe extern "system" fn Reason< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, reason: *mut COREWEBVIEW2_MOVE_FOCUS_REASON, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2MoveFocusRequestedEventArgs_Impl::Reason( this, core::mem::transmute_copy(&reason), @@ -31426,15 +32079,17 @@ pub mod Web { .into() } unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2MoveFocusRequestedEventArgs_Impl::Handled( this, core::mem::transmute_copy(&value), @@ -31442,15 +32097,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2MoveFocusRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2MoveFocusRequestedEventArgs_Impl::SetHandled( this, core::mem::transmute_copy(&value), @@ -31459,9 +32116,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Reason: Reason::, - Handled: Handled::, - SetHandled: SetHandled::, + Reason: Reason::, + Handled: Handled::, + SetHandled: SetHandled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31477,22 +32134,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2MoveFocusRequestedEventHandler {} impl ICoreWebView2MoveFocusRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2MoveFocusRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2MoveFocusRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2MoveFocusRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2MoveFocusRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2MoveFocusRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2MoveFocusRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2MoveFocusRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31502,7 +32161,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31522,21 +32181,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationCompletedEventArgs {} impl ICoreWebView2NavigationCompletedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationCompletedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationCompletedEventArgs_Vtbl + where + Identity: ICoreWebView2NavigationCompletedEventArgs_Impl, + { unsafe extern "system" fn IsSuccess< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, issuccess: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationCompletedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationCompletedEventArgs_Impl::IsSuccess( this, core::mem::transmute_copy(&issuccess), @@ -31544,15 +32205,17 @@ pub mod Web { .into() } unsafe extern "system" fn WebErrorStatus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, weberrorstatus: *mut COREWEBVIEW2_WEB_ERROR_STATUS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationCompletedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationCompletedEventArgs_Impl::WebErrorStatus( this, core::mem::transmute_copy(&weberrorstatus), @@ -31560,15 +32223,17 @@ pub mod Web { .into() } unsafe extern "system" fn NavigationId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, navigationid: *mut u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationCompletedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationCompletedEventArgs_Impl::NavigationId( this, core::mem::transmute_copy(&navigationid), @@ -31577,9 +32242,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - IsSuccess: IsSuccess::, - WebErrorStatus: WebErrorStatus::, - NavigationId: NavigationId::, + IsSuccess: IsSuccess::, + WebErrorStatus: WebErrorStatus::, + NavigationId: NavigationId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31593,21 +32258,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationCompletedEventArgs2 {} impl ICoreWebView2NavigationCompletedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationCompletedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationCompletedEventArgs2_Vtbl + where + Identity: ICoreWebView2NavigationCompletedEventArgs2_Impl, + { unsafe extern "system" fn HttpStatusCode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, http_status_code: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationCompletedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationCompletedEventArgs2_Impl::HttpStatusCode( this, core::mem::transmute_copy(&http_status_code), @@ -31617,10 +32284,9 @@ pub mod Web { Self { base__: ICoreWebView2NavigationCompletedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), - HttpStatusCode: HttpStatusCode::, + HttpStatusCode: HttpStatusCode::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31636,22 +32302,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationCompletedEventHandler {} impl ICoreWebView2NavigationCompletedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationCompletedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationCompletedEventHandler_Vtbl + where + Identity: ICoreWebView2NavigationCompletedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationCompletedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationCompletedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationCompletedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31661,7 +32329,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31691,21 +32359,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationStartingEventArgs {} impl ICoreWebView2NavigationStartingEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationStartingEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationStartingEventArgs_Vtbl + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs_Impl::Uri( this, core::mem::transmute_copy(&uri), @@ -31713,15 +32383,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsUserInitiated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isuserinitiated: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs_Impl::IsUserInitiated( this, core::mem::transmute_copy(&isuserinitiated), @@ -31729,15 +32401,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsRedirected< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isredirected: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs_Impl::IsRedirected( this, core::mem::transmute_copy(&isredirected), @@ -31745,33 +32419,37 @@ pub mod Web { .into() } unsafe extern "system" fn RequestHeaders< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, requestheaders: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2NavigationStartingEventArgs_Impl::RequestHeaders(this) { Ok(ok__) => { - core::ptr::write(requestheaders, core::mem::transmute(ok__)); + requestheaders.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Cancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cancel: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs_Impl::Cancel( this, core::mem::transmute_copy(&cancel), @@ -31779,15 +32457,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCancel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cancel: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs_Impl::SetCancel( this, core::mem::transmute_copy(&cancel), @@ -31795,15 +32475,17 @@ pub mod Web { .into() } unsafe extern "system" fn NavigationId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, navigationid: *mut u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs_Impl::NavigationId( this, core::mem::transmute_copy(&navigationid), @@ -31812,13 +32494,13 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - IsUserInitiated: IsUserInitiated::, - IsRedirected: IsRedirected::, - RequestHeaders: RequestHeaders::, - Cancel: Cancel::, - SetCancel: SetCancel::, - NavigationId: NavigationId::, + Uri: Uri::, + IsUserInitiated: IsUserInitiated::, + IsRedirected: IsRedirected::, + RequestHeaders: RequestHeaders::, + Cancel: Cancel::, + SetCancel: SetCancel::, + NavigationId: NavigationId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31839,49 +32521,50 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationStartingEventArgs2 {} impl ICoreWebView2NavigationStartingEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationStartingEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationStartingEventArgs2_Vtbl + where + Identity: ICoreWebView2NavigationStartingEventArgs2_Impl, + { unsafe extern "system" fn AdditionalAllowedFrameAncestors< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs2_Impl:: AdditionalAllowedFrameAncestors ( this , core::mem::transmute_copy ( & value ) , ) . into ( ) } unsafe extern "system" fn SetAdditionalAllowedFrameAncestors< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs2_Impl:: SetAdditionalAllowedFrameAncestors ( this , core::mem::transmute ( & value ) , ) . into ( ) } Self { base__: ICoreWebView2NavigationStartingEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), AdditionalAllowedFrameAncestors: AdditionalAllowedFrameAncestors::< Identity, - Impl, OFFSET, >, SetAdditionalAllowedFrameAncestors: SetAdditionalAllowedFrameAncestors::< Identity, - Impl, OFFSET, >, } @@ -31900,21 +32583,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationStartingEventArgs3 {} impl ICoreWebView2NavigationStartingEventArgs3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationStartingEventArgs3_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationStartingEventArgs3_Vtbl + where + Identity: ICoreWebView2NavigationStartingEventArgs3_Impl, + { unsafe extern "system" fn NavigationKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventArgs3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, navigation_kind: *mut COREWEBVIEW2_NAVIGATION_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventArgs3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventArgs3_Impl::NavigationKind( this, core::mem::transmute_copy(&navigation_kind), @@ -31924,10 +32609,9 @@ pub mod Web { Self { base__: ICoreWebView2NavigationStartingEventArgs2_Vtbl::new::< Identity, - Impl, OFFSET, >(), - NavigationKind: NavigationKind::, + NavigationKind: NavigationKind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31943,22 +32627,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NavigationStartingEventHandler {} impl ICoreWebView2NavigationStartingEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NavigationStartingEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2NavigationStartingEventHandler_Vtbl + where + Identity: ICoreWebView2NavigationStartingEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NavigationStartingEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NavigationStartingEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NavigationStartingEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -31968,7 +32654,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -31984,22 +32670,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NewBrowserVersionAvailableEventHandler {} impl ICoreWebView2NewBrowserVersionAvailableEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewBrowserVersionAvailableEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NewBrowserVersionAvailableEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2NewBrowserVersionAvailableEventHandler_Vtbl + where + Identity: ICoreWebView2NewBrowserVersionAvailableEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewBrowserVersionAvailableEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewBrowserVersionAvailableEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewBrowserVersionAvailableEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -32009,7 +32697,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32040,21 +32728,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NewWindowRequestedEventArgs {} impl ICoreWebView2NewWindowRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NewWindowRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2NewWindowRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventArgs_Impl::Uri( this, core::mem::transmute_copy(&uri), @@ -32062,15 +32752,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetNewWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, newwindow: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventArgs_Impl::SetNewWindow( this, windows_core::from_raw_borrowed(&newwindow), @@ -32078,33 +32770,37 @@ pub mod Web { .into() } unsafe extern "system" fn NewWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, newwindow: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2NewWindowRequestedEventArgs_Impl::NewWindow(this) { Ok(ok__) => { - core::ptr::write(newwindow, core::mem::transmute(ok__)); + newwindow.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventArgs_Impl::SetHandled( this, core::mem::transmute_copy(&handled), @@ -32112,15 +32808,17 @@ pub mod Web { .into() } unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventArgs_Impl::Handled( this, core::mem::transmute_copy(&handled), @@ -32128,15 +32826,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsUserInitiated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isuserinitiated: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventArgs_Impl::IsUserInitiated( this, core::mem::transmute_copy(&isuserinitiated), @@ -32144,36 +32844,40 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2NewWindowRequestedEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn WindowFeatures< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2NewWindowRequestedEventArgs_Impl::WindowFeatures(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -32181,14 +32885,14 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - SetNewWindow: SetNewWindow::, - NewWindow: NewWindow::, - SetHandled: SetHandled::, - Handled: Handled::, - IsUserInitiated: IsUserInitiated::, - GetDeferral: GetDeferral::, - WindowFeatures: WindowFeatures::, + Uri: Uri::, + SetNewWindow: SetNewWindow::, + NewWindow: NewWindow::, + SetHandled: SetHandled::, + Handled: Handled::, + IsUserInitiated: IsUserInitiated::, + GetDeferral: GetDeferral::, + WindowFeatures: WindowFeatures::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32202,21 +32906,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NewWindowRequestedEventArgs2 {} impl ICoreWebView2NewWindowRequestedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NewWindowRequestedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2NewWindowRequestedEventArgs2_Vtbl + where + Identity: ICoreWebView2NewWindowRequestedEventArgs2_Impl, + { unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventArgs2_Impl::Name( this, core::mem::transmute_copy(&value), @@ -32226,10 +32932,9 @@ pub mod Web { Self { base__: ICoreWebView2NewWindowRequestedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), - Name: Name::, + Name: Name::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32243,30 +32948,31 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NewWindowRequestedEventArgs3 {} impl ICoreWebView2NewWindowRequestedEventArgs3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NewWindowRequestedEventArgs3_Vtbl { + pub const fn new( + ) -> ICoreWebView2NewWindowRequestedEventArgs3_Vtbl + where + Identity: ICoreWebView2NewWindowRequestedEventArgs3_Impl, + { unsafe extern "system" fn OriginalSourceFrameInfo< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventArgs3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frameinfo: *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 ICoreWebView2NewWindowRequestedEventArgs3_Impl:: OriginalSourceFrameInfo ( this , ) { Ok ( ok__ ) => { core::ptr::write ( frameinfo , core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventArgs3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match ICoreWebView2NewWindowRequestedEventArgs3_Impl:: OriginalSourceFrameInfo ( this , ) { Ok ( ok__ ) => { frameinfo . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } } Self { base__: ICoreWebView2NewWindowRequestedEventArgs2_Vtbl::new::< Identity, - Impl, OFFSET, >(), - OriginalSourceFrameInfo: OriginalSourceFrameInfo::, + OriginalSourceFrameInfo: OriginalSourceFrameInfo::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32282,22 +32988,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NewWindowRequestedEventHandler {} impl ICoreWebView2NewWindowRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NewWindowRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2NewWindowRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2NewWindowRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NewWindowRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NewWindowRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NewWindowRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -32307,7 +33015,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32322,21 +33030,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NonClientRegionChangedEventArgs {} impl ICoreWebView2NonClientRegionChangedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NonClientRegionChangedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NonClientRegionChangedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2NonClientRegionChangedEventArgs_Vtbl + where + Identity: ICoreWebView2NonClientRegionChangedEventArgs_Impl, + { unsafe extern "system" fn RegionKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NonClientRegionChangedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_NON_CLIENT_REGION_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NonClientRegionChangedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NonClientRegionChangedEventArgs_Impl::RegionKind( this, core::mem::transmute_copy(&value), @@ -32345,7 +33055,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - RegionKind: RegionKind::, + RegionKind: RegionKind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32361,22 +33071,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2NonClientRegionChangedEventHandler {} impl ICoreWebView2NonClientRegionChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NonClientRegionChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2NonClientRegionChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2NonClientRegionChangedEventHandler_Vtbl + where + Identity: ICoreWebView2NonClientRegionChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2NonClientRegionChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2NonClientRegionChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2NonClientRegionChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -32386,7 +33098,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32402,21 +33114,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ObjectCollectionView {} impl ICoreWebView2ObjectCollectionView_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ObjectCollectionView_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ObjectCollectionView_Vtbl { + pub const fn new( + ) -> ICoreWebView2ObjectCollectionView_Vtbl + where + Identity: ICoreWebView2ObjectCollectionView_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ObjectCollectionView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ObjectCollectionView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ObjectCollectionView_Impl::Count( this, core::mem::transmute_copy(&value), @@ -32424,22 +33138,24 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ObjectCollectionView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ObjectCollectionView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ObjectCollectionView_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -32447,8 +33163,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32477,21 +33193,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PermissionRequestedEventArgs {} impl ICoreWebView2PermissionRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PermissionRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2PermissionRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs_Impl::Uri( this, core::mem::transmute_copy(&uri), @@ -32499,15 +33217,17 @@ pub mod Web { .into() } unsafe extern "system" fn PermissionKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, permissionkind: *mut COREWEBVIEW2_PERMISSION_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs_Impl::PermissionKind( this, core::mem::transmute_copy(&permissionkind), @@ -32515,15 +33235,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsUserInitiated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isuserinitiated: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs_Impl::IsUserInitiated( this, core::mem::transmute_copy(&isuserinitiated), @@ -32531,15 +33253,17 @@ pub mod Web { .into() } unsafe extern "system" fn State< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, state: *mut COREWEBVIEW2_PERMISSION_STATE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs_Impl::State( this, core::mem::transmute_copy(&state), @@ -32547,15 +33271,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetState< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, state: COREWEBVIEW2_PERMISSION_STATE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs_Impl::SetState( this, core::mem::transmute_copy(&state), @@ -32563,18 +33289,20 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2PermissionRequestedEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -32582,12 +33310,12 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - PermissionKind: PermissionKind::, - IsUserInitiated: IsUserInitiated::, - State: State::, - SetState: SetState::, - GetDeferral: GetDeferral::, + Uri: Uri::, + PermissionKind: PermissionKind::, + IsUserInitiated: IsUserInitiated::, + State: State::, + SetState: SetState::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32608,21 +33336,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PermissionRequestedEventArgs2 {} impl ICoreWebView2PermissionRequestedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PermissionRequestedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2PermissionRequestedEventArgs2_Vtbl + where + Identity: ICoreWebView2PermissionRequestedEventArgs2_Impl, + { unsafe extern "system" fn Handled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs2_Impl::Handled( this, core::mem::transmute_copy(&handled), @@ -32630,15 +33360,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHandled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs2_Impl::SetHandled( this, core::mem::transmute_copy(&handled), @@ -32648,11 +33380,10 @@ pub mod Web { Self { base__: ICoreWebView2PermissionRequestedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), - Handled: Handled::, - SetHandled: SetHandled::, + Handled: Handled::, + SetHandled: SetHandled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32673,21 +33404,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PermissionRequestedEventArgs3 {} impl ICoreWebView2PermissionRequestedEventArgs3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PermissionRequestedEventArgs3_Vtbl { + pub const fn new( + ) -> ICoreWebView2PermissionRequestedEventArgs3_Vtbl + where + Identity: ICoreWebView2PermissionRequestedEventArgs3_Impl, + { unsafe extern "system" fn SavesInProfile< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs3_Impl::SavesInProfile( this, core::mem::transmute_copy(&value), @@ -32695,15 +33428,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetSavesInProfile< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventArgs3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventArgs3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventArgs3_Impl::SetSavesInProfile( this, core::mem::transmute_copy(&value), @@ -32713,11 +33448,10 @@ pub mod Web { Self { base__: ICoreWebView2PermissionRequestedEventArgs2_Vtbl::new::< Identity, - Impl, OFFSET, >(), - SavesInProfile: SavesInProfile::, - SetSavesInProfile: SetSavesInProfile::, + SavesInProfile: SavesInProfile::, + SetSavesInProfile: SetSavesInProfile::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32733,22 +33467,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PermissionRequestedEventHandler {} impl ICoreWebView2PermissionRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PermissionRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2PermissionRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2PermissionRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -32758,7 +33494,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32781,21 +33517,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PermissionSetting {} impl ICoreWebView2PermissionSetting_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSetting_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PermissionSetting_Vtbl { + pub const fn new( + ) -> ICoreWebView2PermissionSetting_Vtbl + where + Identity: ICoreWebView2PermissionSetting_Impl, + { unsafe extern "system" fn PermissionKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSetting_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PERMISSION_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionSetting_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionSetting_Impl::PermissionKind( this, core::mem::transmute_copy(&value), @@ -32803,15 +33541,17 @@ pub mod Web { .into() } unsafe extern "system" fn PermissionOrigin< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSetting_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionSetting_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionSetting_Impl::PermissionOrigin( this, core::mem::transmute_copy(&value), @@ -32819,15 +33559,17 @@ pub mod Web { .into() } unsafe extern "system" fn PermissionState< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSetting_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PERMISSION_STATE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionSetting_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionSetting_Impl::PermissionState( this, core::mem::transmute_copy(&value), @@ -32836,9 +33578,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - PermissionKind: PermissionKind::, - PermissionOrigin: PermissionOrigin::, - PermissionState: PermissionState::, + PermissionKind: PermissionKind::, + PermissionOrigin: PermissionOrigin::, + PermissionState: PermissionState::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -32854,43 +33596,47 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PermissionSettingCollectionView {} impl ICoreWebView2PermissionSettingCollectionView_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSettingCollectionView_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PermissionSettingCollectionView_Vtbl { + pub const fn new( + ) -> ICoreWebView2PermissionSettingCollectionView_Vtbl + where + Identity: ICoreWebView2PermissionSettingCollectionView_Impl, + { unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSettingCollectionView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, permissionsetting: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionSettingCollectionView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2PermissionSettingCollectionView_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(permissionsetting, core::mem::transmute(ok__)); + permissionsetting.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PermissionSettingCollectionView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PermissionSettingCollectionView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PermissionSettingCollectionView_Impl::Count( this, core::mem::transmute_copy(&value), @@ -32899,8 +33645,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - GetValueAtIndex: GetValueAtIndex::, - Count: Count::, + GetValueAtIndex: GetValueAtIndex::, + Count: Count::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -33015,21 +33761,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PointerInfo {} impl ICoreWebView2PointerInfo_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PointerInfo_Vtbl { + pub const fn new( + ) -> ICoreWebView2PointerInfo_Vtbl + where + Identity: ICoreWebView2PointerInfo_Impl, + { unsafe extern "system" fn PointerKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerkind: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PointerKind( this, core::mem::transmute_copy(&pointerkind), @@ -33037,15 +33785,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPointerKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerkind: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPointerKind( this, core::mem::transmute_copy(&pointerkind), @@ -33053,15 +33803,17 @@ pub mod Web { .into() } unsafe extern "system" fn PointerId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerid: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PointerId( this, core::mem::transmute_copy(&pointerid), @@ -33069,15 +33821,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPointerId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerid: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPointerId( this, core::mem::transmute_copy(&pointerid), @@ -33085,15 +33839,17 @@ pub mod Web { .into() } unsafe extern "system" fn FrameId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frameid: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::FrameId( this, core::mem::transmute_copy(&frameid), @@ -33101,15 +33857,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetFrameId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frameid: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetFrameId( this, core::mem::transmute_copy(&frameid), @@ -33117,15 +33875,17 @@ pub mod Web { .into() } unsafe extern "system" fn PointerFlags< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerflags: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PointerFlags( this, core::mem::transmute_copy(&pointerflags), @@ -33133,15 +33893,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPointerFlags< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerflags: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPointerFlags( this, core::mem::transmute_copy(&pointerflags), @@ -33149,15 +33911,17 @@ pub mod Web { .into() } unsafe extern "system" fn PointerDeviceRect< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerdevicerect: *mut windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PointerDeviceRect( this, core::mem::transmute_copy(&pointerdevicerect), @@ -33165,15 +33929,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPointerDeviceRect< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pointerdevicerect: windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPointerDeviceRect( this, core::mem::transmute(&pointerdevicerect), @@ -33181,15 +33947,17 @@ pub mod Web { .into() } unsafe extern "system" fn DisplayRect< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, displayrect: *mut windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::DisplayRect( this, core::mem::transmute_copy(&displayrect), @@ -33197,15 +33965,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetDisplayRect< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, displayrect: windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetDisplayRect( this, core::mem::transmute(&displayrect), @@ -33213,15 +33983,17 @@ pub mod Web { .into() } unsafe extern "system" fn PixelLocation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pixellocation: *mut windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PixelLocation( this, core::mem::transmute_copy(&pixellocation), @@ -33229,15 +34001,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPixelLocation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pixellocation: windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPixelLocation( this, core::mem::transmute(&pixellocation), @@ -33245,15 +34019,17 @@ pub mod Web { .into() } unsafe extern "system" fn HimetricLocation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, himetriclocation: *mut windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::HimetricLocation( this, core::mem::transmute_copy(&himetriclocation), @@ -33261,15 +34037,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHimetricLocation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, himetriclocation: windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetHimetricLocation( this, core::mem::transmute(&himetriclocation), @@ -33277,15 +34055,17 @@ pub mod Web { .into() } unsafe extern "system" fn PixelLocationRaw< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pixellocationraw: *mut windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PixelLocationRaw( this, core::mem::transmute_copy(&pixellocationraw), @@ -33293,15 +34073,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPixelLocationRaw< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pixellocationraw: windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPixelLocationRaw( this, core::mem::transmute(&pixellocationraw), @@ -33309,15 +34091,17 @@ pub mod Web { .into() } unsafe extern "system" fn HimetricLocationRaw< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, himetriclocationraw: *mut windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::HimetricLocationRaw( this, core::mem::transmute_copy(&himetriclocationraw), @@ -33325,15 +34109,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHimetricLocationRaw< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, himetriclocationraw: windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetHimetricLocationRaw( this, core::mem::transmute(&himetriclocationraw), @@ -33341,28 +34127,32 @@ pub mod Web { .into() } unsafe extern "system" fn Time< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, time: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::Time(this, core::mem::transmute_copy(&time)) .into() } unsafe extern "system" fn SetTime< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, time: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTime( this, core::mem::transmute_copy(&time), @@ -33370,15 +34160,17 @@ pub mod Web { .into() } unsafe extern "system" fn HistoryCount< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, historycount: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::HistoryCount( this, core::mem::transmute_copy(&historycount), @@ -33386,15 +34178,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHistoryCount< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, historycount: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetHistoryCount( this, core::mem::transmute_copy(&historycount), @@ -33402,15 +34196,17 @@ pub mod Web { .into() } unsafe extern "system" fn InputData< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, inputdata: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::InputData( this, core::mem::transmute_copy(&inputdata), @@ -33418,15 +34214,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetInputData< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, inputdata: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetInputData( this, core::mem::transmute_copy(&inputdata), @@ -33434,15 +34232,17 @@ pub mod Web { .into() } unsafe extern "system" fn KeyStates< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, keystates: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::KeyStates( this, core::mem::transmute_copy(&keystates), @@ -33450,15 +34250,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetKeyStates< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, keystates: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetKeyStates( this, core::mem::transmute_copy(&keystates), @@ -33466,15 +34268,17 @@ pub mod Web { .into() } unsafe extern "system" fn PerformanceCount< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, performancecount: *mut u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PerformanceCount( this, core::mem::transmute_copy(&performancecount), @@ -33482,15 +34286,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPerformanceCount< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, performancecount: u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPerformanceCount( this, core::mem::transmute_copy(&performancecount), @@ -33498,15 +34304,17 @@ pub mod Web { .into() } unsafe extern "system" fn ButtonChangeKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, buttonchangekind: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::ButtonChangeKind( this, core::mem::transmute_copy(&buttonchangekind), @@ -33514,15 +34322,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetButtonChangeKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, buttonchangekind: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetButtonChangeKind( this, core::mem::transmute_copy(&buttonchangekind), @@ -33530,15 +34340,17 @@ pub mod Web { .into() } unsafe extern "system" fn PenFlags< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penflags: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PenFlags( this, core::mem::transmute_copy(&penflags), @@ -33546,15 +34358,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPenFlags< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penflags: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPenFlags( this, core::mem::transmute_copy(&penflags), @@ -33562,15 +34376,17 @@ pub mod Web { .into() } unsafe extern "system" fn PenMask< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penmask: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PenMask( this, core::mem::transmute_copy(&penmask), @@ -33578,15 +34394,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPenMask< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penmask: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPenMask( this, core::mem::transmute_copy(&penmask), @@ -33594,15 +34412,17 @@ pub mod Web { .into() } unsafe extern "system" fn PenPressure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penpressure: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PenPressure( this, core::mem::transmute_copy(&penpressure), @@ -33610,15 +34430,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPenPressure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penpressure: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPenPressure( this, core::mem::transmute_copy(&penpressure), @@ -33626,15 +34448,17 @@ pub mod Web { .into() } unsafe extern "system" fn PenRotation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penrotation: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PenRotation( this, core::mem::transmute_copy(&penrotation), @@ -33642,15 +34466,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPenRotation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, penrotation: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPenRotation( this, core::mem::transmute_copy(&penrotation), @@ -33658,15 +34484,17 @@ pub mod Web { .into() } unsafe extern "system" fn PenTiltX< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pentiltx: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PenTiltX( this, core::mem::transmute_copy(&pentiltx), @@ -33674,15 +34502,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPenTiltX< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pentiltx: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPenTiltX( this, core::mem::transmute_copy(&pentiltx), @@ -33690,15 +34520,17 @@ pub mod Web { .into() } unsafe extern "system" fn PenTiltY< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pentilty: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::PenTiltY( this, core::mem::transmute_copy(&pentilty), @@ -33706,15 +34538,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPenTiltY< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pentilty: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetPenTiltY( this, core::mem::transmute_copy(&pentilty), @@ -33722,15 +34556,17 @@ pub mod Web { .into() } unsafe extern "system" fn TouchFlags< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchflags: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::TouchFlags( this, core::mem::transmute_copy(&touchflags), @@ -33738,15 +34574,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTouchFlags< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchflags: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTouchFlags( this, core::mem::transmute_copy(&touchflags), @@ -33754,15 +34592,17 @@ pub mod Web { .into() } unsafe extern "system" fn TouchMask< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchmask: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::TouchMask( this, core::mem::transmute_copy(&touchmask), @@ -33770,15 +34610,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTouchMask< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchmask: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTouchMask( this, core::mem::transmute_copy(&touchmask), @@ -33786,15 +34628,17 @@ pub mod Web { .into() } unsafe extern "system" fn TouchContact< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchcontact: *mut windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::TouchContact( this, core::mem::transmute_copy(&touchcontact), @@ -33802,15 +34646,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTouchContact< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchcontact: windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTouchContact( this, core::mem::transmute(&touchcontact), @@ -33818,15 +34664,17 @@ pub mod Web { .into() } unsafe extern "system" fn TouchContactRaw< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchcontactraw: *mut windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::TouchContactRaw( this, core::mem::transmute_copy(&touchcontactraw), @@ -33834,15 +34682,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTouchContactRaw< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchcontactraw: windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTouchContactRaw( this, core::mem::transmute(&touchcontactraw), @@ -33850,15 +34700,17 @@ pub mod Web { .into() } unsafe extern "system" fn TouchOrientation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchorientation: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::TouchOrientation( this, core::mem::transmute_copy(&touchorientation), @@ -33866,15 +34718,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTouchOrientation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchorientation: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTouchOrientation( this, core::mem::transmute_copy(&touchorientation), @@ -33882,15 +34736,17 @@ pub mod Web { .into() } unsafe extern "system" fn TouchPressure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchpressure: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::TouchPressure( this, core::mem::transmute_copy(&touchpressure), @@ -33898,15 +34754,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetTouchPressure< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PointerInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, touchpressure: u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PointerInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PointerInfo_Impl::SetTouchPressure( this, core::mem::transmute_copy(&touchpressure), @@ -33915,62 +34773,62 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - PointerKind: PointerKind::, - SetPointerKind: SetPointerKind::, - PointerId: PointerId::, - SetPointerId: SetPointerId::, - FrameId: FrameId::, - SetFrameId: SetFrameId::, - PointerFlags: PointerFlags::, - SetPointerFlags: SetPointerFlags::, - PointerDeviceRect: PointerDeviceRect::, - SetPointerDeviceRect: SetPointerDeviceRect::, - DisplayRect: DisplayRect::, - SetDisplayRect: SetDisplayRect::, - PixelLocation: PixelLocation::, - SetPixelLocation: SetPixelLocation::, - HimetricLocation: HimetricLocation::, - SetHimetricLocation: SetHimetricLocation::, - PixelLocationRaw: PixelLocationRaw::, - SetPixelLocationRaw: SetPixelLocationRaw::, - HimetricLocationRaw: HimetricLocationRaw::, - SetHimetricLocationRaw: SetHimetricLocationRaw::, - Time: Time::, - SetTime: SetTime::, - HistoryCount: HistoryCount::, - SetHistoryCount: SetHistoryCount::, - InputData: InputData::, - SetInputData: SetInputData::, - KeyStates: KeyStates::, - SetKeyStates: SetKeyStates::, - PerformanceCount: PerformanceCount::, - SetPerformanceCount: SetPerformanceCount::, - ButtonChangeKind: ButtonChangeKind::, - SetButtonChangeKind: SetButtonChangeKind::, - PenFlags: PenFlags::, - SetPenFlags: SetPenFlags::, - PenMask: PenMask::, - SetPenMask: SetPenMask::, - PenPressure: PenPressure::, - SetPenPressure: SetPenPressure::, - PenRotation: PenRotation::, - SetPenRotation: SetPenRotation::, - PenTiltX: PenTiltX::, - SetPenTiltX: SetPenTiltX::, - PenTiltY: PenTiltY::, - SetPenTiltY: SetPenTiltY::, - TouchFlags: TouchFlags::, - SetTouchFlags: SetTouchFlags::, - TouchMask: TouchMask::, - SetTouchMask: SetTouchMask::, - TouchContact: TouchContact::, - SetTouchContact: SetTouchContact::, - TouchContactRaw: TouchContactRaw::, - SetTouchContactRaw: SetTouchContactRaw::, - TouchOrientation: TouchOrientation::, - SetTouchOrientation: SetTouchOrientation::, - TouchPressure: TouchPressure::, - SetTouchPressure: SetTouchPressure::, + PointerKind: PointerKind::, + SetPointerKind: SetPointerKind::, + PointerId: PointerId::, + SetPointerId: SetPointerId::, + FrameId: FrameId::, + SetFrameId: SetFrameId::, + PointerFlags: PointerFlags::, + SetPointerFlags: SetPointerFlags::, + PointerDeviceRect: PointerDeviceRect::, + SetPointerDeviceRect: SetPointerDeviceRect::, + DisplayRect: DisplayRect::, + SetDisplayRect: SetDisplayRect::, + PixelLocation: PixelLocation::, + SetPixelLocation: SetPixelLocation::, + HimetricLocation: HimetricLocation::, + SetHimetricLocation: SetHimetricLocation::, + PixelLocationRaw: PixelLocationRaw::, + SetPixelLocationRaw: SetPixelLocationRaw::, + HimetricLocationRaw: HimetricLocationRaw::, + SetHimetricLocationRaw: SetHimetricLocationRaw::, + Time: Time::, + SetTime: SetTime::, + HistoryCount: HistoryCount::, + SetHistoryCount: SetHistoryCount::, + InputData: InputData::, + SetInputData: SetInputData::, + KeyStates: KeyStates::, + SetKeyStates: SetKeyStates::, + PerformanceCount: PerformanceCount::, + SetPerformanceCount: SetPerformanceCount::, + ButtonChangeKind: ButtonChangeKind::, + SetButtonChangeKind: SetButtonChangeKind::, + PenFlags: PenFlags::, + SetPenFlags: SetPenFlags::, + PenMask: PenMask::, + SetPenMask: SetPenMask::, + PenPressure: PenPressure::, + SetPenPressure: SetPenPressure::, + PenRotation: PenRotation::, + SetPenRotation: SetPenRotation::, + PenTiltX: PenTiltX::, + SetPenTiltX: SetPenTiltX::, + PenTiltY: PenTiltY::, + SetPenTiltY: SetPenTiltY::, + TouchFlags: TouchFlags::, + SetTouchFlags: SetTouchFlags::, + TouchMask: TouchMask::, + SetTouchMask: SetTouchMask::, + TouchContact: TouchContact::, + SetTouchContact: SetTouchContact::, + TouchContactRaw: TouchContactRaw::, + SetTouchContactRaw: SetTouchContactRaw::, + TouchOrientation: TouchOrientation::, + SetTouchOrientation: SetTouchOrientation::, + TouchPressure: TouchPressure::, + SetTouchPressure: SetTouchPressure::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -33986,22 +34844,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PrintCompletedHandler {} impl ICoreWebView2PrintCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PrintCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2PrintCompletedHandler_Vtbl + where + Identity: ICoreWebView2PrintCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, printstatus: COREWEBVIEW2_PRINT_STATUS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -34011,7 +34871,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -34084,21 +34944,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PrintSettings {} impl ICoreWebView2PrintSettings_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PrintSettings_Vtbl { + pub const fn new( + ) -> ICoreWebView2PrintSettings_Vtbl + where + Identity: ICoreWebView2PrintSettings_Impl, + { unsafe extern "system" fn Orientation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, orientation: *mut COREWEBVIEW2_PRINT_ORIENTATION, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::Orientation( this, core::mem::transmute_copy(&orientation), @@ -34106,15 +34968,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetOrientation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, orientation: COREWEBVIEW2_PRINT_ORIENTATION, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetOrientation( this, core::mem::transmute_copy(&orientation), @@ -34122,15 +34986,17 @@ pub mod Web { .into() } unsafe extern "system" fn ScaleFactor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, scalefactor: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::ScaleFactor( this, core::mem::transmute_copy(&scalefactor), @@ -34138,15 +35004,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetScaleFactor< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, scalefactor: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetScaleFactor( this, core::mem::transmute_copy(&scalefactor), @@ -34154,15 +35022,17 @@ pub mod Web { .into() } unsafe extern "system" fn PageWidth< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pagewidth: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::PageWidth( this, core::mem::transmute_copy(&pagewidth), @@ -34170,15 +35040,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPageWidth< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pagewidth: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetPageWidth( this, core::mem::transmute_copy(&pagewidth), @@ -34186,15 +35058,17 @@ pub mod Web { .into() } unsafe extern "system" fn PageHeight< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pageheight: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::PageHeight( this, core::mem::transmute_copy(&pageheight), @@ -34202,15 +35076,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPageHeight< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, pageheight: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetPageHeight( this, core::mem::transmute_copy(&pageheight), @@ -34218,15 +35094,17 @@ pub mod Web { .into() } unsafe extern "system" fn MarginTop< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, margintop: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::MarginTop( this, core::mem::transmute_copy(&margintop), @@ -34234,15 +35112,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMarginTop< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, margintop: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetMarginTop( this, core::mem::transmute_copy(&margintop), @@ -34250,15 +35130,17 @@ pub mod Web { .into() } unsafe extern "system" fn MarginBottom< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, marginbottom: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::MarginBottom( this, core::mem::transmute_copy(&marginbottom), @@ -34266,15 +35148,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMarginBottom< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, marginbottom: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetMarginBottom( this, core::mem::transmute_copy(&marginbottom), @@ -34282,15 +35166,17 @@ pub mod Web { .into() } unsafe extern "system" fn MarginLeft< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, marginleft: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::MarginLeft( this, core::mem::transmute_copy(&marginleft), @@ -34298,15 +35184,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMarginLeft< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, marginleft: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetMarginLeft( this, core::mem::transmute_copy(&marginleft), @@ -34314,15 +35202,17 @@ pub mod Web { .into() } unsafe extern "system" fn MarginRight< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, marginright: *mut f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::MarginRight( this, core::mem::transmute_copy(&marginright), @@ -34330,15 +35220,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMarginRight< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, marginright: f64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetMarginRight( this, core::mem::transmute_copy(&marginright), @@ -34346,15 +35238,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldPrintBackgrounds< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, shouldprintbackgrounds: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::ShouldPrintBackgrounds( this, core::mem::transmute_copy(&shouldprintbackgrounds), @@ -34362,15 +35256,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetShouldPrintBackgrounds< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, shouldprintbackgrounds: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetShouldPrintBackgrounds( this, core::mem::transmute_copy(&shouldprintbackgrounds), @@ -34378,15 +35274,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldPrintSelectionOnly< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, shouldprintselectiononly: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::ShouldPrintSelectionOnly( this, core::mem::transmute_copy(&shouldprintselectiononly), @@ -34394,15 +35292,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetShouldPrintSelectionOnly< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, shouldprintselectiononly: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetShouldPrintSelectionOnly( this, core::mem::transmute_copy(&shouldprintselectiononly), @@ -34410,15 +35310,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldPrintHeaderAndFooter< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, shouldprintheaderandfooter: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::ShouldPrintHeaderAndFooter( this, core::mem::transmute_copy(&shouldprintheaderandfooter), @@ -34426,15 +35328,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetShouldPrintHeaderAndFooter< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, shouldprintheaderandfooter: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetShouldPrintHeaderAndFooter( this, core::mem::transmute_copy(&shouldprintheaderandfooter), @@ -34442,15 +35346,17 @@ pub mod Web { .into() } unsafe extern "system" fn HeaderTitle< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, headertitle: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::HeaderTitle( this, core::mem::transmute_copy(&headertitle), @@ -34458,15 +35364,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHeaderTitle< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, headertitle: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetHeaderTitle( this, core::mem::transmute(&headertitle), @@ -34474,15 +35382,17 @@ pub mod Web { .into() } unsafe extern "system" fn FooterUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, footeruri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::FooterUri( this, core::mem::transmute_copy(&footeruri), @@ -34490,15 +35400,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetFooterUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, footeruri: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings_Impl::SetFooterUri( this, core::mem::transmute(&footeruri), @@ -34507,48 +35419,35 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Orientation: Orientation::, - SetOrientation: SetOrientation::, - ScaleFactor: ScaleFactor::, - SetScaleFactor: SetScaleFactor::, - PageWidth: PageWidth::, - SetPageWidth: SetPageWidth::, - PageHeight: PageHeight::, - SetPageHeight: SetPageHeight::, - MarginTop: MarginTop::, - SetMarginTop: SetMarginTop::, - MarginBottom: MarginBottom::, - SetMarginBottom: SetMarginBottom::, - MarginLeft: MarginLeft::, - SetMarginLeft: SetMarginLeft::, - MarginRight: MarginRight::, - SetMarginRight: SetMarginRight::, - ShouldPrintBackgrounds: ShouldPrintBackgrounds::, - SetShouldPrintBackgrounds: SetShouldPrintBackgrounds::< - Identity, - Impl, - OFFSET, - >, - ShouldPrintSelectionOnly: ShouldPrintSelectionOnly::, - SetShouldPrintSelectionOnly: SetShouldPrintSelectionOnly::< - Identity, - Impl, - OFFSET, - >, - ShouldPrintHeaderAndFooter: ShouldPrintHeaderAndFooter::< - Identity, - Impl, - OFFSET, - >, + Orientation: Orientation::, + SetOrientation: SetOrientation::, + ScaleFactor: ScaleFactor::, + SetScaleFactor: SetScaleFactor::, + PageWidth: PageWidth::, + SetPageWidth: SetPageWidth::, + PageHeight: PageHeight::, + SetPageHeight: SetPageHeight::, + MarginTop: MarginTop::, + SetMarginTop: SetMarginTop::, + MarginBottom: MarginBottom::, + SetMarginBottom: SetMarginBottom::, + MarginLeft: MarginLeft::, + SetMarginLeft: SetMarginLeft::, + MarginRight: MarginRight::, + SetMarginRight: SetMarginRight::, + ShouldPrintBackgrounds: ShouldPrintBackgrounds::, + SetShouldPrintBackgrounds: SetShouldPrintBackgrounds::, + ShouldPrintSelectionOnly: ShouldPrintSelectionOnly::, + SetShouldPrintSelectionOnly: SetShouldPrintSelectionOnly::, + ShouldPrintHeaderAndFooter: ShouldPrintHeaderAndFooter::, SetShouldPrintHeaderAndFooter: SetShouldPrintHeaderAndFooter::< Identity, - Impl, OFFSET, >, - HeaderTitle: HeaderTitle::, - SetHeaderTitle: SetHeaderTitle::, - FooterUri: FooterUri::, - SetFooterUri: SetFooterUri::, + HeaderTitle: HeaderTitle::, + SetHeaderTitle: SetHeaderTitle::, + FooterUri: FooterUri::, + SetFooterUri: SetFooterUri::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -34596,21 +35495,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PrintSettings2 {} impl ICoreWebView2PrintSettings2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PrintSettings2_Vtbl { + pub const fn new( + ) -> ICoreWebView2PrintSettings2_Vtbl + where + Identity: ICoreWebView2PrintSettings2_Impl, + { unsafe extern "system" fn PageRanges< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::PageRanges( this, core::mem::transmute_copy(&value), @@ -34618,15 +35519,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPageRanges< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetPageRanges( this, core::mem::transmute(&value), @@ -34634,15 +35537,17 @@ pub mod Web { .into() } unsafe extern "system" fn PagesPerSide< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::PagesPerSide( this, core::mem::transmute_copy(&value), @@ -34650,15 +35555,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPagesPerSide< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetPagesPerSide( this, core::mem::transmute_copy(&value), @@ -34666,15 +35573,17 @@ pub mod Web { .into() } unsafe extern "system" fn Copies< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::Copies( this, core::mem::transmute_copy(&value), @@ -34682,15 +35591,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCopies< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetCopies( this, core::mem::transmute_copy(&value), @@ -34698,15 +35609,17 @@ pub mod Web { .into() } unsafe extern "system" fn Collation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PRINT_COLLATION, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::Collation( this, core::mem::transmute_copy(&value), @@ -34714,15 +35627,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetCollation< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_PRINT_COLLATION, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetCollation( this, core::mem::transmute_copy(&value), @@ -34730,15 +35645,17 @@ pub mod Web { .into() } unsafe extern "system" fn ColorMode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PRINT_COLOR_MODE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::ColorMode( this, core::mem::transmute_copy(&value), @@ -34746,15 +35663,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetColorMode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_PRINT_COLOR_MODE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetColorMode( this, core::mem::transmute_copy(&value), @@ -34762,15 +35681,17 @@ pub mod Web { .into() } unsafe extern "system" fn Duplex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PRINT_DUPLEX, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::Duplex( this, core::mem::transmute_copy(&value), @@ -34778,15 +35699,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetDuplex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_PRINT_DUPLEX, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetDuplex( this, core::mem::transmute_copy(&value), @@ -34794,15 +35717,17 @@ pub mod Web { .into() } unsafe extern "system" fn MediaSize< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PRINT_MEDIA_SIZE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::MediaSize( this, core::mem::transmute_copy(&value), @@ -34810,15 +35735,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMediaSize< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_PRINT_MEDIA_SIZE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetMediaSize( this, core::mem::transmute_copy(&value), @@ -34826,15 +35753,17 @@ pub mod Web { .into() } unsafe extern "system" fn PrinterName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::PrinterName( this, core::mem::transmute_copy(&value), @@ -34842,15 +35771,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPrinterName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintSettings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintSettings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintSettings2_Impl::SetPrinterName( this, core::mem::transmute(&value), @@ -34858,23 +35789,23 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2PrintSettings_Vtbl::new::(), - PageRanges: PageRanges::, - SetPageRanges: SetPageRanges::, - PagesPerSide: PagesPerSide::, - SetPagesPerSide: SetPagesPerSide::, - Copies: Copies::, - SetCopies: SetCopies::, - Collation: Collation::, - SetCollation: SetCollation::, - ColorMode: ColorMode::, - SetColorMode: SetColorMode::, - Duplex: Duplex::, - SetDuplex: SetDuplex::, - MediaSize: MediaSize::, - SetMediaSize: SetMediaSize::, - PrinterName: PrinterName::, - SetPrinterName: SetPrinterName::, + base__: ICoreWebView2PrintSettings_Vtbl::new::(), + PageRanges: PageRanges::, + SetPageRanges: SetPageRanges::, + PagesPerSide: PagesPerSide::, + SetPagesPerSide: SetPagesPerSide::, + Copies: Copies::, + SetCopies: SetCopies::, + Collation: Collation::, + SetCollation: SetCollation::, + ColorMode: ColorMode::, + SetColorMode: SetColorMode::, + Duplex: Duplex::, + SetDuplex: SetDuplex::, + MediaSize: MediaSize::, + SetMediaSize: SetMediaSize::, + PrinterName: PrinterName::, + SetPrinterName: SetPrinterName::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -34891,22 +35822,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PrintToPdfCompletedHandler {} impl ICoreWebView2PrintToPdfCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintToPdfCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PrintToPdfCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2PrintToPdfCompletedHandler_Vtbl + where + Identity: ICoreWebView2PrintToPdfCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintToPdfCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, issuccessful: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintToPdfCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintToPdfCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -34916,7 +35849,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -34932,22 +35865,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2PrintToPdfStreamCompletedHandler {} impl ICoreWebView2PrintToPdfStreamCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintToPdfStreamCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2PrintToPdfStreamCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2PrintToPdfStreamCompletedHandler_Vtbl + where + Identity: ICoreWebView2PrintToPdfStreamCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2PrintToPdfStreamCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, pdfstream: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2PrintToPdfStreamCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2PrintToPdfStreamCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -34957,7 +35892,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -34972,42 +35907,46 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessExtendedInfo {} impl ICoreWebView2ProcessExtendedInfo_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessExtendedInfo_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessExtendedInfo_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessExtendedInfo_Vtbl + where + Identity: ICoreWebView2ProcessExtendedInfo_Impl, + { unsafe extern "system" fn ProcessInfo< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessExtendedInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, processinfo: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessExtendedInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ProcessExtendedInfo_Impl::ProcessInfo(this) { Ok(ok__) => { - core::ptr::write(processinfo, core::mem::transmute(ok__)); + processinfo.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn AssociatedFrameInfos< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessExtendedInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frames: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessExtendedInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ProcessExtendedInfo_Impl::AssociatedFrameInfos(this) { Ok(ok__) => { - core::ptr::write(frames, core::mem::transmute(ok__)); + frames.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -35015,8 +35954,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ProcessInfo: ProcessInfo::, - AssociatedFrameInfos: AssociatedFrameInfos::, + ProcessInfo: ProcessInfo::, + AssociatedFrameInfos: AssociatedFrameInfos::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35032,21 +35971,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessExtendedInfoCollection {} impl ICoreWebView2ProcessExtendedInfoCollection_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessExtendedInfoCollection_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessExtendedInfoCollection_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessExtendedInfoCollection_Vtbl + where + Identity: ICoreWebView2ProcessExtendedInfoCollection_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessExtendedInfoCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, count: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessExtendedInfoCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessExtendedInfoCollection_Impl::Count( this, core::mem::transmute_copy(&count), @@ -35054,22 +35995,24 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessExtendedInfoCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, processinfo: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessExtendedInfoCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ProcessExtendedInfoCollection_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(processinfo, core::mem::transmute(ok__)); + processinfo.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -35077,8 +36020,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35093,21 +36036,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessFailedEventArgs {} impl ICoreWebView2ProcessFailedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessFailedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessFailedEventArgs_Vtbl + where + Identity: ICoreWebView2ProcessFailedEventArgs_Impl, + { unsafe extern "system" fn ProcessFailedKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, processfailedkind: *mut COREWEBVIEW2_PROCESS_FAILED_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessFailedEventArgs_Impl::ProcessFailedKind( this, core::mem::transmute_copy(&processfailedkind), @@ -35116,7 +36061,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ProcessFailedKind: ProcessFailedKind::, + ProcessFailedKind: ProcessFailedKind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35141,21 +36086,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessFailedEventArgs2 {} impl ICoreWebView2ProcessFailedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessFailedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessFailedEventArgs2_Vtbl + where + Identity: ICoreWebView2ProcessFailedEventArgs2_Impl, + { unsafe extern "system" fn Reason< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, reason: *mut COREWEBVIEW2_PROCESS_FAILED_REASON, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessFailedEventArgs2_Impl::Reason( this, core::mem::transmute_copy(&reason), @@ -35163,15 +36110,17 @@ pub mod Web { .into() } unsafe extern "system" fn ExitCode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, exitcode: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessFailedEventArgs2_Impl::ExitCode( this, core::mem::transmute_copy(&exitcode), @@ -35179,15 +36128,17 @@ pub mod Web { .into() } unsafe extern "system" fn ProcessDescription< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, processdescription: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessFailedEventArgs2_Impl::ProcessDescription( this, core::mem::transmute_copy(&processdescription), @@ -35195,39 +36146,33 @@ pub mod Web { .into() } unsafe extern "system" fn FrameInfosForFailedProcess< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, frames: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ProcessFailedEventArgs2_Impl::FrameInfosForFailedProcess( this, ) { Ok(ok__) => { - core::ptr::write(frames, core::mem::transmute(ok__)); + frames.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2ProcessFailedEventArgs_Vtbl::new::< - Identity, - Impl, - OFFSET, - >(), - Reason: Reason::, - ExitCode: ExitCode::, - ProcessDescription: ProcessDescription::, - FrameInfosForFailedProcess: FrameInfosForFailedProcess::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2ProcessFailedEventArgs_Vtbl::new::(), + Reason: Reason::, + ExitCode: ExitCode::, + ProcessDescription: ProcessDescription::, + FrameInfosForFailedProcess: FrameInfosForFailedProcess::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35244,21 +36189,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessFailedEventArgs3 {} impl ICoreWebView2ProcessFailedEventArgs3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessFailedEventArgs3_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessFailedEventArgs3_Vtbl + where + Identity: ICoreWebView2ProcessFailedEventArgs3_Impl, + { unsafe extern "system" fn FailureSourceModulePath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventArgs3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventArgs3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessFailedEventArgs3_Impl::FailureSourceModulePath( this, core::mem::transmute_copy(&value), @@ -35266,12 +36213,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2ProcessFailedEventArgs2_Vtbl::new::< - Identity, - Impl, - OFFSET, - >(), - FailureSourceModulePath: FailureSourceModulePath::, + base__: ICoreWebView2ProcessFailedEventArgs2_Vtbl::new::( + ), + FailureSourceModulePath: FailureSourceModulePath::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35287,22 +36231,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessFailedEventHandler {} impl ICoreWebView2ProcessFailedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessFailedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessFailedEventHandler_Vtbl + where + Identity: ICoreWebView2ProcessFailedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessFailedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessFailedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessFailedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -35312,7 +36258,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35325,21 +36271,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessInfo {} impl ICoreWebView2ProcessInfo_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfo_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessInfo_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessInfo_Vtbl + where + Identity: ICoreWebView2ProcessInfo_Impl, + { unsafe extern "system" fn ProcessId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessInfo_Impl::ProcessId( this, core::mem::transmute_copy(&value), @@ -35347,22 +36295,24 @@ pub mod Web { .into() } unsafe extern "system" fn Kind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfo_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, kind: *mut COREWEBVIEW2_PROCESS_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessInfo_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessInfo_Impl::Kind(this, core::mem::transmute_copy(&kind)) .into() } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ProcessId: ProcessId::, - Kind: Kind::, + ProcessId: ProcessId::, + Kind: Kind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35378,21 +36328,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessInfoCollection {} impl ICoreWebView2ProcessInfoCollection_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfoCollection_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessInfoCollection_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessInfoCollection_Vtbl + where + Identity: ICoreWebView2ProcessInfoCollection_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfoCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, count: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessInfoCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessInfoCollection_Impl::Count( this, core::mem::transmute_copy(&count), @@ -35400,22 +36352,24 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfoCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, processinfo: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessInfoCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ProcessInfoCollection_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), ) { Ok(ok__) => { - core::ptr::write(processinfo, core::mem::transmute(ok__)); + processinfo.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -35423,8 +36377,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35440,22 +36394,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProcessInfosChangedEventHandler {} impl ICoreWebView2ProcessInfosChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfosChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProcessInfosChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProcessInfosChangedEventHandler_Vtbl + where + Identity: ICoreWebView2ProcessInfosChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProcessInfosChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProcessInfosChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProcessInfosChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -35465,7 +36421,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35498,21 +36454,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile {} impl ICoreWebView2Profile_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile_Vtbl + where + Identity: ICoreWebView2Profile_Impl, + { unsafe extern "system" fn ProfileName< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::ProfileName( this, core::mem::transmute_copy(&value), @@ -35520,15 +36478,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsInPrivateModeEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::IsInPrivateModeEnabled( this, core::mem::transmute_copy(&value), @@ -35536,15 +36496,17 @@ pub mod Web { .into() } unsafe extern "system" fn ProfilePath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::ProfilePath( this, core::mem::transmute_copy(&value), @@ -35552,15 +36514,17 @@ pub mod Web { .into() } unsafe extern "system" fn DefaultDownloadFolderPath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::DefaultDownloadFolderPath( this, core::mem::transmute_copy(&value), @@ -35568,15 +36532,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetDefaultDownloadFolderPath< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::SetDefaultDownloadFolderPath( this, core::mem::transmute(&value), @@ -35584,15 +36550,17 @@ pub mod Web { .into() } unsafe extern "system" fn PreferredColorScheme< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_PREFERRED_COLOR_SCHEME, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::PreferredColorScheme( this, core::mem::transmute_copy(&value), @@ -35600,15 +36568,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPreferredColorScheme< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_PREFERRED_COLOR_SCHEME, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile_Impl::SetPreferredColorScheme( this, core::mem::transmute_copy(&value), @@ -35617,21 +36587,16 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ProfileName: ProfileName::, - IsInPrivateModeEnabled: IsInPrivateModeEnabled::, - ProfilePath: ProfilePath::, - DefaultDownloadFolderPath: DefaultDownloadFolderPath::< - Identity, - Impl, - OFFSET, - >, + ProfileName: ProfileName::, + IsInPrivateModeEnabled: IsInPrivateModeEnabled::, + ProfilePath: ProfilePath::, + DefaultDownloadFolderPath: DefaultDownloadFolderPath::, SetDefaultDownloadFolderPath: SetDefaultDownloadFolderPath::< Identity, - Impl, OFFSET, >, - PreferredColorScheme: PreferredColorScheme::, - SetPreferredColorScheme: SetPreferredColorScheme::, + PreferredColorScheme: PreferredColorScheme::, + SetPreferredColorScheme: SetPreferredColorScheme::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35658,22 +36623,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile2 {} impl ICoreWebView2Profile2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile2_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile2_Vtbl + where + Identity: ICoreWebView2Profile2_Impl, + { unsafe extern "system" fn ClearBrowsingData< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, datakinds: COREWEBVIEW2_BROWSING_DATA_KINDS, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile2_Impl::ClearBrowsingData( this, core::mem::transmute_copy(&datakinds), @@ -35682,8 +36649,7 @@ pub mod Web { .into() } unsafe extern "system" fn ClearBrowsingDataInTimeRange< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -35691,9 +36657,12 @@ pub mod Web { starttime: f64, endtime: f64, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile2_Impl::ClearBrowsingDataInTimeRange( this, core::mem::transmute_copy(&datakinds), @@ -35704,15 +36673,17 @@ pub mod Web { .into() } unsafe extern "system" fn ClearBrowsingDataAll< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile2_Impl::ClearBrowsingDataAll( this, windows_core::from_raw_borrowed(&handler), @@ -35720,14 +36691,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Profile_Vtbl::new::(), - ClearBrowsingData: ClearBrowsingData::, + base__: ICoreWebView2Profile_Vtbl::new::(), + ClearBrowsingData: ClearBrowsingData::, ClearBrowsingDataInTimeRange: ClearBrowsingDataInTimeRange::< Identity, - Impl, OFFSET, >, - ClearBrowsingDataAll: ClearBrowsingDataAll::, + ClearBrowsingDataAll: ClearBrowsingDataAll::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35747,21 +36717,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile3 {} impl ICoreWebView2Profile3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile3_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile3_Vtbl + where + Identity: ICoreWebView2Profile3_Impl, + { unsafe extern "system" fn PreferredTrackingPreventionLevel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_TRACKING_PREVENTION_LEVEL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile3_Impl::PreferredTrackingPreventionLevel( this, core::mem::transmute_copy(&value), @@ -35769,15 +36741,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetPreferredTrackingPreventionLevel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_TRACKING_PREVENTION_LEVEL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile3_Impl::SetPreferredTrackingPreventionLevel( this, core::mem::transmute_copy(&value), @@ -35785,15 +36759,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Profile2_Vtbl::new::(), + base__: ICoreWebView2Profile2_Vtbl::new::(), PreferredTrackingPreventionLevel: PreferredTrackingPreventionLevel::< Identity, - Impl, OFFSET, >, SetPreferredTrackingPreventionLevel: SetPreferredTrackingPreventionLevel::< Identity, - Impl, OFFSET, >, } @@ -35821,14 +36793,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile4 {} impl ICoreWebView2Profile4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile4_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile4_Vtbl + where + Identity: ICoreWebView2Profile4_Impl, + { unsafe extern "system" fn SetPermissionState< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -35836,9 +36807,12 @@ pub mod Web { origin: windows_core::PCWSTR, state: COREWEBVIEW2_PERMISSION_STATE, completedhandler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile4_Impl::SetPermissionState( this, core::mem::transmute_copy(&permissionkind), @@ -35849,15 +36823,17 @@ pub mod Web { .into() } unsafe extern "system" fn GetNonDefaultPermissionSettings< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, completedhandler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile4_Impl::GetNonDefaultPermissionSettings( this, windows_core::from_raw_borrowed(&completedhandler), @@ -35865,11 +36841,10 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Profile3_Vtbl::new::(), - SetPermissionState: SetPermissionState::, + base__: ICoreWebView2Profile3_Vtbl::new::(), + SetPermissionState: SetPermissionState::, GetNonDefaultPermissionSettings: GetNonDefaultPermissionSettings::< Identity, - Impl, OFFSET, >, } @@ -35886,32 +36861,34 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile5 {} impl ICoreWebView2Profile5_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile5_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile5_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile5_Vtbl + where + Identity: ICoreWebView2Profile5_Impl, + { unsafe extern "system" fn CookieManager< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cookiemanager: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2Profile5_Impl::CookieManager(this) { Ok(ok__) => { - core::ptr::write(cookiemanager, core::mem::transmute(ok__)); + cookiemanager.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2Profile4_Vtbl::new::(), - CookieManager: CookieManager::, + base__: ICoreWebView2Profile4_Vtbl::new::(), + CookieManager: CookieManager::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -35942,21 +36919,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile6 {} impl ICoreWebView2Profile6_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile6_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile6_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile6_Vtbl + where + Identity: ICoreWebView2Profile6_Impl, + { unsafe extern "system" fn IsPasswordAutosaveEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile6_Impl::IsPasswordAutosaveEnabled( this, core::mem::transmute_copy(&value), @@ -35964,15 +36943,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsPasswordAutosaveEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile6_Impl::SetIsPasswordAutosaveEnabled( this, core::mem::transmute_copy(&value), @@ -35980,15 +36961,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsGeneralAutofillEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile6_Impl::IsGeneralAutofillEnabled( this, core::mem::transmute_copy(&value), @@ -35996,15 +36979,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsGeneralAutofillEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile6_Impl::SetIsGeneralAutofillEnabled( this, core::mem::transmute_copy(&value), @@ -36012,23 +36997,14 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Profile5_Vtbl::new::(), - IsPasswordAutosaveEnabled: IsPasswordAutosaveEnabled::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Profile5_Vtbl::new::(), + IsPasswordAutosaveEnabled: IsPasswordAutosaveEnabled::, SetIsPasswordAutosaveEnabled: SetIsPasswordAutosaveEnabled::< Identity, - Impl, - OFFSET, - >, - IsGeneralAutofillEnabled: IsGeneralAutofillEnabled::, - SetIsGeneralAutofillEnabled: SetIsGeneralAutofillEnabled::< - Identity, - Impl, OFFSET, >, + IsGeneralAutofillEnabled: IsGeneralAutofillEnabled::, + SetIsGeneralAutofillEnabled: SetIsGeneralAutofillEnabled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36053,22 +37029,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile7 {} impl ICoreWebView2Profile7_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile7_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile7_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile7_Vtbl + where + Identity: ICoreWebView2Profile7_Impl, + { unsafe extern "system" fn AddBrowserExtension< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, extensionfolderpath: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile7_Impl::AddBrowserExtension( this, core::mem::transmute(&extensionfolderpath), @@ -36077,15 +37055,17 @@ pub mod Web { .into() } unsafe extern "system" fn GetBrowserExtensions< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile7_Impl::GetBrowserExtensions( this, windows_core::from_raw_borrowed(&handler), @@ -36093,9 +37073,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Profile6_Vtbl::new::(), - AddBrowserExtension: AddBrowserExtension::, - GetBrowserExtensions: GetBrowserExtensions::, + base__: ICoreWebView2Profile6_Vtbl::new::(), + AddBrowserExtension: AddBrowserExtension::, + GetBrowserExtensions: GetBrowserExtensions::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36122,33 +37102,37 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Profile8 {} impl ICoreWebView2Profile8_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile8_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Profile8_Vtbl { + pub const fn new( + ) -> ICoreWebView2Profile8_Vtbl + where + Identity: ICoreWebView2Profile8_Impl, + { unsafe extern "system" fn Delete< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile8_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile8_Impl::Delete(this).into() } unsafe extern "system" fn add_Deleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile8_Impl::add_Deleted( this, windows_core::from_raw_borrowed(&eventhandler), @@ -36157,15 +37141,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_Deleted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Profile8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Profile8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Profile8_Impl::remove_Deleted( this, core::mem::transmute(&token), @@ -36173,10 +37159,10 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Profile7_Vtbl::new::(), - Delete: Delete::, - add_Deleted: add_Deleted::, - remove_Deleted: remove_Deleted::, + base__: ICoreWebView2Profile7_Vtbl::new::(), + Delete: Delete::, + add_Deleted: add_Deleted::, + remove_Deleted: remove_Deleted::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36199,23 +37185,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProfileAddBrowserExtensionCompletedHandler {} impl ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Vtbl + where + Identity: ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, extension: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProfileAddBrowserExtensionCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -36225,7 +37212,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36241,22 +37228,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProfileDeletedEventHandler {} impl ICoreWebView2ProfileDeletedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProfileDeletedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProfileDeletedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ProfileDeletedEventHandler_Vtbl + where + Identity: ICoreWebView2ProfileDeletedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProfileDeletedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProfileDeletedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProfileDeletedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -36266,7 +37255,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36282,23 +37271,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler {} impl ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Vtbl + where + Identity: ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, extensionlist: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ProfileGetBrowserExtensionsCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -36308,7 +37298,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36324,22 +37314,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2RasterizationScaleChangedEventHandler {} impl ICoreWebView2RasterizationScaleChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2RasterizationScaleChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2RasterizationScaleChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2RasterizationScaleChangedEventHandler_Vtbl + where + Identity: ICoreWebView2RasterizationScaleChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2RasterizationScaleChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2RasterizationScaleChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2RasterizationScaleChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -36349,7 +37341,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36366,21 +37358,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2RegionRectCollectionView {} impl ICoreWebView2RegionRectCollectionView_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2RegionRectCollectionView_Impl, - const OFFSET: isize, - >() -> ICoreWebView2RegionRectCollectionView_Vtbl { + pub const fn new( + ) -> ICoreWebView2RegionRectCollectionView_Vtbl + where + Identity: ICoreWebView2RegionRectCollectionView_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2RegionRectCollectionView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2RegionRectCollectionView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2RegionRectCollectionView_Impl::Count( this, core::mem::transmute_copy(&value), @@ -36388,16 +37382,18 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2RegionRectCollectionView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, value: *mut windows::Win32::Foundation::RECT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2RegionRectCollectionView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2RegionRectCollectionView_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), @@ -36407,8 +37403,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36439,21 +37435,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ScriptDialogOpeningEventArgs {} impl ICoreWebView2ScriptDialogOpeningEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ScriptDialogOpeningEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2ScriptDialogOpeningEventArgs_Vtbl + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::Uri( this, core::mem::transmute_copy(&uri), @@ -36461,15 +37459,17 @@ pub mod Web { .into() } unsafe extern "system" fn Kind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, kind: *mut COREWEBVIEW2_SCRIPT_DIALOG_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::Kind( this, core::mem::transmute_copy(&kind), @@ -36477,15 +37477,17 @@ pub mod Web { .into() } unsafe extern "system" fn Message< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, message: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::Message( this, core::mem::transmute_copy(&message), @@ -36493,26 +37495,30 @@ pub mod Web { .into() } unsafe extern "system" fn Accept< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::Accept(this).into() } unsafe extern "system" fn DefaultText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, defaulttext: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::DefaultText( this, core::mem::transmute_copy(&defaulttext), @@ -36520,15 +37526,17 @@ pub mod Web { .into() } unsafe extern "system" fn ResultText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, resulttext: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::ResultText( this, core::mem::transmute_copy(&resulttext), @@ -36536,15 +37544,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetResultText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, resulttext: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventArgs_Impl::SetResultText( this, core::mem::transmute(&resulttext), @@ -36552,18 +37562,20 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ScriptDialogOpeningEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -36571,14 +37583,14 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - Kind: Kind::, - Message: Message::, - Accept: Accept::, - DefaultText: DefaultText::, - ResultText: ResultText::, - SetResultText: SetResultText::, - GetDeferral: GetDeferral::, + Uri: Uri::, + Kind: Kind::, + Message: Message::, + Accept: Accept::, + DefaultText: DefaultText::, + ResultText: ResultText::, + SetResultText: SetResultText::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36594,22 +37606,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ScriptDialogOpeningEventHandler {} impl ICoreWebView2ScriptDialogOpeningEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ScriptDialogOpeningEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ScriptDialogOpeningEventHandler_Vtbl + where + Identity: ICoreWebView2ScriptDialogOpeningEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptDialogOpeningEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptDialogOpeningEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptDialogOpeningEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -36619,7 +37633,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36635,21 +37649,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ScriptException {} impl ICoreWebView2ScriptException_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptException_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ScriptException_Vtbl { + pub const fn new( + ) -> ICoreWebView2ScriptException_Vtbl + where + Identity: ICoreWebView2ScriptException_Impl, + { unsafe extern "system" fn LineNumber< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptException_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptException_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptException_Impl::LineNumber( this, core::mem::transmute_copy(&value), @@ -36657,15 +37673,17 @@ pub mod Web { .into() } unsafe extern "system" fn ColumnNumber< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptException_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptException_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptException_Impl::ColumnNumber( this, core::mem::transmute_copy(&value), @@ -36673,15 +37691,17 @@ pub mod Web { .into() } unsafe extern "system" fn Name< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptException_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptException_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptException_Impl::Name( this, core::mem::transmute_copy(&value), @@ -36689,15 +37709,17 @@ pub mod Web { .into() } unsafe extern "system" fn Message< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptException_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptException_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptException_Impl::Message( this, core::mem::transmute_copy(&value), @@ -36705,15 +37727,17 @@ pub mod Web { .into() } unsafe extern "system" fn ToJson< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ScriptException_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ScriptException_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ScriptException_Impl::ToJson( this, core::mem::transmute_copy(&value), @@ -36722,11 +37746,11 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - LineNumber: LineNumber::, - ColumnNumber: ColumnNumber::, - Name: Name::, - Message: Message::, - ToJson: ToJson::, + LineNumber: LineNumber::, + ColumnNumber: ColumnNumber::, + Name: Name::, + Message: Message::, + ToJson: ToJson::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36752,21 +37776,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ServerCertificateErrorDetectedEventArgs {} impl ICoreWebView2ServerCertificateErrorDetectedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ServerCertificateErrorDetectedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2ServerCertificateErrorDetectedEventArgs_Vtbl + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { unsafe extern "system" fn ErrorStatus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_WEB_ERROR_STATUS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl::ErrorStatus( this, core::mem::transmute_copy(&value), @@ -36774,15 +37800,17 @@ pub mod Web { .into() } unsafe extern "system" fn RequestUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl::RequestUri( this, core::mem::transmute_copy(&value), @@ -36790,27 +37818,31 @@ pub mod Web { .into() } unsafe extern "system" fn ServerCertificate< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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 ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl:: ServerCertificate ( this , ) { Ok ( ok__ ) => { core::ptr::write ( value , core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); + match ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl:: ServerCertificate ( this , ) { Ok ( ok__ ) => { value . write ( core::mem::transmute ( ok__ ) ) ; windows_core::HRESULT ( 0 ) } Err ( err ) => err . into ( ) } } unsafe extern "system" fn Action< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl::Action( this, core::mem::transmute_copy(&value), @@ -36818,15 +37850,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAction< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_SERVER_CERTIFICATE_ERROR_ACTION, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl::SetAction( this, core::mem::transmute_copy(&value), @@ -36834,20 +37868,22 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2ServerCertificateErrorDetectedEventArgs_Impl::GetDeferral( this, ) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -36855,12 +37891,12 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - ErrorStatus: ErrorStatus::, - RequestUri: RequestUri::, - ServerCertificate: ServerCertificate::, - Action: Action::, - SetAction: SetAction::, - GetDeferral: GetDeferral::, + ErrorStatus: ErrorStatus::, + RequestUri: RequestUri::, + ServerCertificate: ServerCertificate::, + Action: Action::, + SetAction: SetAction::, + GetDeferral: GetDeferral::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36876,23 +37912,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ServerCertificateErrorDetectedEventHandler {} impl ICoreWebView2ServerCertificateErrorDetectedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ServerCertificateErrorDetectedEventHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2ServerCertificateErrorDetectedEventHandler_Vtbl + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ServerCertificateErrorDetectedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ServerCertificateErrorDetectedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ServerCertificateErrorDetectedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -36902,7 +37939,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -36914,21 +37951,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2SetPermissionStateCompletedHandler {} impl ICoreWebView2SetPermissionStateCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SetPermissionStateCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2SetPermissionStateCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2SetPermissionStateCompletedHandler_Vtbl + where + Identity: ICoreWebView2SetPermissionStateCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SetPermissionStateCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SetPermissionStateCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SetPermissionStateCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -36937,7 +37976,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -37020,21 +38059,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings {} impl ICoreWebView2Settings_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings_Vtbl + where + Identity: ICoreWebView2Settings_Impl, + { unsafe extern "system" fn IsScriptEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isscriptenabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::IsScriptEnabled( this, core::mem::transmute_copy(&isscriptenabled), @@ -37042,15 +38083,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsScriptEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isscriptenabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetIsScriptEnabled( this, core::mem::transmute_copy(&isscriptenabled), @@ -37058,15 +38101,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsWebMessageEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, iswebmessageenabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::IsWebMessageEnabled( this, core::mem::transmute_copy(&iswebmessageenabled), @@ -37074,15 +38119,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsWebMessageEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, iswebmessageenabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetIsWebMessageEnabled( this, core::mem::transmute_copy(&iswebmessageenabled), @@ -37090,15 +38137,17 @@ pub mod Web { .into() } unsafe extern "system" fn AreDefaultScriptDialogsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, aredefaultscriptdialogsenabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::AreDefaultScriptDialogsEnabled( this, core::mem::transmute_copy(&aredefaultscriptdialogsenabled), @@ -37106,15 +38155,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAreDefaultScriptDialogsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, aredefaultscriptdialogsenabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetAreDefaultScriptDialogsEnabled( this, core::mem::transmute_copy(&aredefaultscriptdialogsenabled), @@ -37122,15 +38173,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsStatusBarEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isstatusbarenabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::IsStatusBarEnabled( this, core::mem::transmute_copy(&isstatusbarenabled), @@ -37138,15 +38191,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsStatusBarEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isstatusbarenabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetIsStatusBarEnabled( this, core::mem::transmute_copy(&isstatusbarenabled), @@ -37154,15 +38209,17 @@ pub mod Web { .into() } unsafe extern "system" fn AreDevToolsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, aredevtoolsenabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::AreDevToolsEnabled( this, core::mem::transmute_copy(&aredevtoolsenabled), @@ -37170,15 +38227,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAreDevToolsEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, aredevtoolsenabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetAreDevToolsEnabled( this, core::mem::transmute_copy(&aredevtoolsenabled), @@ -37186,15 +38245,17 @@ pub mod Web { .into() } unsafe extern "system" fn AreDefaultContextMenusEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::AreDefaultContextMenusEnabled( this, core::mem::transmute_copy(&enabled), @@ -37202,15 +38263,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAreDefaultContextMenusEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetAreDefaultContextMenusEnabled( this, core::mem::transmute_copy(&enabled), @@ -37218,15 +38281,17 @@ pub mod Web { .into() } unsafe extern "system" fn AreHostObjectsAllowed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, allowed: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::AreHostObjectsAllowed( this, core::mem::transmute_copy(&allowed), @@ -37234,15 +38299,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAreHostObjectsAllowed< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, allowed: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetAreHostObjectsAllowed( this, core::mem::transmute_copy(&allowed), @@ -37250,15 +38317,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsZoomControlEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::IsZoomControlEnabled( this, core::mem::transmute_copy(&enabled), @@ -37266,15 +38335,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsZoomControlEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetIsZoomControlEnabled( this, core::mem::transmute_copy(&enabled), @@ -37282,15 +38353,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsBuiltInErrorPageEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::IsBuiltInErrorPageEnabled( this, core::mem::transmute_copy(&enabled), @@ -37298,15 +38371,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsBuiltInErrorPageEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings_Impl::SetIsBuiltInErrorPageEnabled( this, core::mem::transmute_copy(&enabled), @@ -37315,46 +38390,37 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - IsScriptEnabled: IsScriptEnabled::, - SetIsScriptEnabled: SetIsScriptEnabled::, - IsWebMessageEnabled: IsWebMessageEnabled::, - SetIsWebMessageEnabled: SetIsWebMessageEnabled::, + IsScriptEnabled: IsScriptEnabled::, + SetIsScriptEnabled: SetIsScriptEnabled::, + IsWebMessageEnabled: IsWebMessageEnabled::, + SetIsWebMessageEnabled: SetIsWebMessageEnabled::, AreDefaultScriptDialogsEnabled: AreDefaultScriptDialogsEnabled::< Identity, - Impl, OFFSET, >, SetAreDefaultScriptDialogsEnabled: SetAreDefaultScriptDialogsEnabled::< Identity, - Impl, OFFSET, >, - IsStatusBarEnabled: IsStatusBarEnabled::, - SetIsStatusBarEnabled: SetIsStatusBarEnabled::, - AreDevToolsEnabled: AreDevToolsEnabled::, - SetAreDevToolsEnabled: SetAreDevToolsEnabled::, + IsStatusBarEnabled: IsStatusBarEnabled::, + SetIsStatusBarEnabled: SetIsStatusBarEnabled::, + AreDevToolsEnabled: AreDevToolsEnabled::, + SetAreDevToolsEnabled: SetAreDevToolsEnabled::, AreDefaultContextMenusEnabled: AreDefaultContextMenusEnabled::< Identity, - Impl, OFFSET, >, SetAreDefaultContextMenusEnabled: SetAreDefaultContextMenusEnabled::< Identity, - Impl, - OFFSET, - >, - AreHostObjectsAllowed: AreHostObjectsAllowed::, - SetAreHostObjectsAllowed: SetAreHostObjectsAllowed::, - IsZoomControlEnabled: IsZoomControlEnabled::, - SetIsZoomControlEnabled: SetIsZoomControlEnabled::, - IsBuiltInErrorPageEnabled: IsBuiltInErrorPageEnabled::< - Identity, - Impl, OFFSET, >, + AreHostObjectsAllowed: AreHostObjectsAllowed::, + SetAreHostObjectsAllowed: SetAreHostObjectsAllowed::, + IsZoomControlEnabled: IsZoomControlEnabled::, + SetIsZoomControlEnabled: SetIsZoomControlEnabled::, + IsBuiltInErrorPageEnabled: IsBuiltInErrorPageEnabled::, SetIsBuiltInErrorPageEnabled: SetIsBuiltInErrorPageEnabled::< Identity, - Impl, OFFSET, >, } @@ -37375,21 +38441,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings2 {} impl ICoreWebView2Settings2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings2_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings2_Vtbl + where + Identity: ICoreWebView2Settings2_Impl, + { unsafe extern "system" fn UserAgent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, useragent: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings2_Impl::UserAgent( this, core::mem::transmute_copy(&useragent), @@ -37397,15 +38465,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetUserAgent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, useragent: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings2_Impl::SetUserAgent( this, core::mem::transmute(&useragent), @@ -37413,9 +38483,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings_Vtbl::new::(), - UserAgent: UserAgent::, - SetUserAgent: SetUserAgent::, + base__: ICoreWebView2Settings_Vtbl::new::(), + UserAgent: UserAgent::, + SetUserAgent: SetUserAgent::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -37435,21 +38505,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings3 {} impl ICoreWebView2Settings3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings3_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings3_Vtbl + where + Identity: ICoreWebView2Settings3_Impl, + { unsafe extern "system" fn AreBrowserAcceleratorKeysEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, arebrowseracceleratorkeysenabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings3_Impl::AreBrowserAcceleratorKeysEnabled( this, core::mem::transmute_copy(&arebrowseracceleratorkeysenabled), @@ -37457,15 +38529,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetAreBrowserAcceleratorKeysEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, arebrowseracceleratorkeysenabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings3_Impl::SetAreBrowserAcceleratorKeysEnabled( this, core::mem::transmute_copy(&arebrowseracceleratorkeysenabled), @@ -37473,15 +38547,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings2_Vtbl::new::(), + base__: ICoreWebView2Settings2_Vtbl::new::(), AreBrowserAcceleratorKeysEnabled: AreBrowserAcceleratorKeysEnabled::< Identity, - Impl, OFFSET, >, SetAreBrowserAcceleratorKeysEnabled: SetAreBrowserAcceleratorKeysEnabled::< Identity, - Impl, OFFSET, >, } @@ -37512,21 +38584,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings4 {} impl ICoreWebView2Settings4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings4_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings4_Vtbl + where + Identity: ICoreWebView2Settings4_Impl, + { unsafe extern "system" fn IsPasswordAutosaveEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings4_Impl::IsPasswordAutosaveEnabled( this, core::mem::transmute_copy(&value), @@ -37534,15 +38608,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsPasswordAutosaveEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings4_Impl::SetIsPasswordAutosaveEnabled( this, core::mem::transmute_copy(&value), @@ -37550,15 +38626,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsGeneralAutofillEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings4_Impl::IsGeneralAutofillEnabled( this, core::mem::transmute_copy(&value), @@ -37566,15 +38644,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsGeneralAutofillEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings4_Impl::SetIsGeneralAutofillEnabled( this, core::mem::transmute_copy(&value), @@ -37582,23 +38662,14 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings3_Vtbl::new::(), - IsPasswordAutosaveEnabled: IsPasswordAutosaveEnabled::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Settings3_Vtbl::new::(), + IsPasswordAutosaveEnabled: IsPasswordAutosaveEnabled::, SetIsPasswordAutosaveEnabled: SetIsPasswordAutosaveEnabled::< Identity, - Impl, - OFFSET, - >, - IsGeneralAutofillEnabled: IsGeneralAutofillEnabled::, - SetIsGeneralAutofillEnabled: SetIsGeneralAutofillEnabled::< - Identity, - Impl, OFFSET, >, + IsGeneralAutofillEnabled: IsGeneralAutofillEnabled::, + SetIsGeneralAutofillEnabled: SetIsGeneralAutofillEnabled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -37620,21 +38691,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings5 {} impl ICoreWebView2Settings5_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings5_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings5_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings5_Vtbl + where + Identity: ICoreWebView2Settings5_Impl, + { unsafe extern "system" fn IsPinchZoomEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings5_Impl::IsPinchZoomEnabled( this, core::mem::transmute_copy(&enabled), @@ -37642,15 +38715,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsPinchZoomEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings5_Impl::SetIsPinchZoomEnabled( this, core::mem::transmute_copy(&enabled), @@ -37658,9 +38733,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings4_Vtbl::new::(), - IsPinchZoomEnabled: IsPinchZoomEnabled::, - SetIsPinchZoomEnabled: SetIsPinchZoomEnabled::, + base__: ICoreWebView2Settings4_Vtbl::new::(), + IsPinchZoomEnabled: IsPinchZoomEnabled::, + SetIsPinchZoomEnabled: SetIsPinchZoomEnabled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -37683,21 +38758,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings6 {} impl ICoreWebView2Settings6_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings6_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings6_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings6_Vtbl + where + Identity: ICoreWebView2Settings6_Impl, + { unsafe extern "system" fn IsSwipeNavigationEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings6_Impl::IsSwipeNavigationEnabled( this, core::mem::transmute_copy(&enabled), @@ -37705,15 +38782,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsSwipeNavigationEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings6_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings6_Impl::SetIsSwipeNavigationEnabled( this, core::mem::transmute_copy(&enabled), @@ -37721,13 +38800,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings5_Vtbl::new::(), - IsSwipeNavigationEnabled: IsSwipeNavigationEnabled::, - SetIsSwipeNavigationEnabled: SetIsSwipeNavigationEnabled::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2Settings5_Vtbl::new::(), + IsSwipeNavigationEnabled: IsSwipeNavigationEnabled::, + SetIsSwipeNavigationEnabled: SetIsSwipeNavigationEnabled::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -37751,21 +38826,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings7 {} impl ICoreWebView2Settings7_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings7_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings7_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings7_Vtbl + where + Identity: ICoreWebView2Settings7_Impl, + { unsafe extern "system" fn HiddenPdfToolbarItems< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hidden_pdf_toolbar_items: *mut COREWEBVIEW2_PDF_TOOLBAR_ITEMS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings7_Impl::HiddenPdfToolbarItems( this, core::mem::transmute_copy(&hidden_pdf_toolbar_items), @@ -37773,15 +38850,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetHiddenPdfToolbarItems< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hidden_pdf_toolbar_items: COREWEBVIEW2_PDF_TOOLBAR_ITEMS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings7_Impl::SetHiddenPdfToolbarItems( this, core::mem::transmute_copy(&hidden_pdf_toolbar_items), @@ -37789,9 +38868,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings6_Vtbl::new::(), - HiddenPdfToolbarItems: HiddenPdfToolbarItems::, - SetHiddenPdfToolbarItems: SetHiddenPdfToolbarItems::, + base__: ICoreWebView2Settings6_Vtbl::new::(), + HiddenPdfToolbarItems: HiddenPdfToolbarItems::, + SetHiddenPdfToolbarItems: SetHiddenPdfToolbarItems::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -37816,21 +38895,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings8 {} impl ICoreWebView2Settings8_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings8_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings8_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings8_Vtbl + where + Identity: ICoreWebView2Settings8_Impl, + { unsafe extern "system" fn IsReputationCheckingRequired< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings8_Impl::IsReputationCheckingRequired( this, core::mem::transmute_copy(&value), @@ -37838,15 +38919,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsReputationCheckingRequired< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings8_Impl::SetIsReputationCheckingRequired( this, core::mem::transmute_copy(&value), @@ -37854,15 +38937,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings7_Vtbl::new::(), + base__: ICoreWebView2Settings7_Vtbl::new::(), IsReputationCheckingRequired: IsReputationCheckingRequired::< Identity, - Impl, OFFSET, >, SetIsReputationCheckingRequired: SetIsReputationCheckingRequired::< Identity, - Impl, OFFSET, >, } @@ -37890,21 +38971,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2Settings9 {} impl ICoreWebView2Settings9_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings9_Impl, - const OFFSET: isize, - >() -> ICoreWebView2Settings9_Vtbl { + pub const fn new( + ) -> ICoreWebView2Settings9_Vtbl + where + Identity: ICoreWebView2Settings9_Impl, + { unsafe extern "system" fn IsNonClientRegionSupportEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings9_Impl::IsNonClientRegionSupportEnabled( this, core::mem::transmute_copy(&enabled), @@ -37912,15 +38995,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetIsNonClientRegionSupportEnabled< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2Settings9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, enabled: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2Settings9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2Settings9_Impl::SetIsNonClientRegionSupportEnabled( this, core::mem::transmute_copy(&enabled), @@ -37928,15 +39013,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2Settings8_Vtbl::new::(), + base__: ICoreWebView2Settings8_Vtbl::new::(), IsNonClientRegionSupportEnabled: IsNonClientRegionSupportEnabled::< Identity, - Impl, OFFSET, >, SetIsNonClientRegionSupportEnabled: SetIsNonClientRegionSupportEnabled::< Identity, - Impl, OFFSET, >, } @@ -37965,21 +39048,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2SharedBuffer {} impl ICoreWebView2SharedBuffer_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SharedBuffer_Impl, - const OFFSET: isize, - >() -> ICoreWebView2SharedBuffer_Vtbl { + pub const fn new( + ) -> ICoreWebView2SharedBuffer_Vtbl + where + Identity: ICoreWebView2SharedBuffer_Impl, + { unsafe extern "system" fn Size< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SharedBuffer_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u64, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SharedBuffer_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SharedBuffer_Impl::Size( this, core::mem::transmute_copy(&value), @@ -37987,15 +39072,17 @@ pub mod Web { .into() } unsafe extern "system" fn Buffer< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SharedBuffer_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut *mut u8, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SharedBuffer_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SharedBuffer_Impl::Buffer( this, core::mem::transmute_copy(&value), @@ -38003,33 +39090,37 @@ pub mod Web { .into() } unsafe extern "system" fn OpenStream< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SharedBuffer_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SharedBuffer_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2SharedBuffer_Impl::OpenStream(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn FileMappingHandle< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SharedBuffer_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::HANDLE, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SharedBuffer_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SharedBuffer_Impl::FileMappingHandle( this, core::mem::transmute_copy(&value), @@ -38037,23 +39128,25 @@ pub mod Web { .into() } unsafe extern "system" fn Close< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SharedBuffer_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SharedBuffer_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SharedBuffer_Impl::Close(this).into() } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Size: Size::, - Buffer: Buffer::, - OpenStream: OpenStream::, - FileMappingHandle: FileMappingHandle::, - Close: Close::, + Size: Size::, + Buffer: Buffer::, + OpenStream: OpenStream::, + FileMappingHandle: FileMappingHandle::, + Close: Close::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38068,21 +39161,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2SourceChangedEventArgs {} impl ICoreWebView2SourceChangedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SourceChangedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2SourceChangedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2SourceChangedEventArgs_Vtbl + where + Identity: ICoreWebView2SourceChangedEventArgs_Impl, + { unsafe extern "system" fn IsNewDocument< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SourceChangedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, isnewdocument: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SourceChangedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SourceChangedEventArgs_Impl::IsNewDocument( this, core::mem::transmute_copy(&isnewdocument), @@ -38091,7 +39186,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - IsNewDocument: IsNewDocument::, + IsNewDocument: IsNewDocument::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38107,22 +39202,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2SourceChangedEventHandler {} impl ICoreWebView2SourceChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SourceChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2SourceChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2SourceChangedEventHandler_Vtbl + where + Identity: ICoreWebView2SourceChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2SourceChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2SourceChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2SourceChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -38132,7 +39229,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38148,22 +39245,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2StateChangedEventHandler {} impl ICoreWebView2StateChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StateChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2StateChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2StateChangedEventHandler_Vtbl + where + Identity: ICoreWebView2StateChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StateChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2StateChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2StateChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -38173,7 +39272,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38189,22 +39288,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2StatusBarTextChangedEventHandler {} impl ICoreWebView2StatusBarTextChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StatusBarTextChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2StatusBarTextChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2StatusBarTextChangedEventHandler_Vtbl + where + Identity: ICoreWebView2StatusBarTextChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StatusBarTextChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2StatusBarTextChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2StatusBarTextChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -38214,7 +39315,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38231,21 +39332,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2StringCollection {} impl ICoreWebView2StringCollection_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StringCollection_Impl, - const OFFSET: isize, - >() -> ICoreWebView2StringCollection_Vtbl { + pub const fn new( + ) -> ICoreWebView2StringCollection_Vtbl + where + Identity: ICoreWebView2StringCollection_Impl, + { unsafe extern "system" fn Count< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StringCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2StringCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2StringCollection_Impl::Count( this, core::mem::transmute_copy(&value), @@ -38253,16 +39356,18 @@ pub mod Web { .into() } unsafe extern "system" fn GetValueAtIndex< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2StringCollection_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, index: u32, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2StringCollection_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2StringCollection_Impl::GetValueAtIndex( this, core::mem::transmute_copy(&index), @@ -38272,8 +39377,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Count: Count::, - GetValueAtIndex: GetValueAtIndex::, + Count: Count::, + GetValueAtIndex: GetValueAtIndex::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38289,22 +39394,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2TrySuspendCompletedHandler {} impl ICoreWebView2TrySuspendCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2TrySuspendCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2TrySuspendCompletedHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2TrySuspendCompletedHandler_Vtbl + where + Identity: ICoreWebView2TrySuspendCompletedHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2TrySuspendCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, issuccessful: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2TrySuspendCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2TrySuspendCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -38314,7 +39421,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38334,21 +39441,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebMessageReceivedEventArgs {} impl ICoreWebView2WebMessageReceivedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebMessageReceivedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebMessageReceivedEventArgs_Vtbl + where + Identity: ICoreWebView2WebMessageReceivedEventArgs_Impl, + { unsafe extern "system" fn Source< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, source: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebMessageReceivedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebMessageReceivedEventArgs_Impl::Source( this, core::mem::transmute_copy(&source), @@ -38356,15 +39465,17 @@ pub mod Web { .into() } unsafe extern "system" fn WebMessageAsJson< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, webmessageasjson: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebMessageReceivedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebMessageReceivedEventArgs_Impl::WebMessageAsJson( this, core::mem::transmute_copy(&webmessageasjson), @@ -38372,15 +39483,17 @@ pub mod Web { .into() } unsafe extern "system" fn TryGetWebMessageAsString< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, webmessageasstring: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebMessageReceivedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebMessageReceivedEventArgs_Impl::TryGetWebMessageAsString( this, core::mem::transmute_copy(&webmessageasstring), @@ -38389,9 +39502,9 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Source: Source::, - WebMessageAsJson: WebMessageAsJson::, - TryGetWebMessageAsString: TryGetWebMessageAsString::, + Source: Source::, + WebMessageAsJson: WebMessageAsJson::, + TryGetWebMessageAsString: TryGetWebMessageAsString::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38407,26 +39520,28 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebMessageReceivedEventArgs2 {} impl ICoreWebView2WebMessageReceivedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebMessageReceivedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebMessageReceivedEventArgs2_Vtbl + where + Identity: ICoreWebView2WebMessageReceivedEventArgs2_Impl, + { unsafe extern "system" fn AdditionalObjects< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebMessageReceivedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebMessageReceivedEventArgs2_Impl::AdditionalObjects( this, ) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -38435,10 +39550,9 @@ pub mod Web { Self { base__: ICoreWebView2WebMessageReceivedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), - AdditionalObjects: AdditionalObjects::, + AdditionalObjects: AdditionalObjects::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38454,22 +39568,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebMessageReceivedEventHandler {} impl ICoreWebView2WebMessageReceivedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebMessageReceivedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebMessageReceivedEventHandler_Vtbl + where + Identity: ICoreWebView2WebMessageReceivedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebMessageReceivedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebMessageReceivedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebMessageReceivedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -38479,7 +39595,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38500,21 +39616,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceRequest {} impl ICoreWebView2WebResourceRequest_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceRequest_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceRequest_Vtbl + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { unsafe extern "system" fn Uri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequest_Impl::Uri( this, core::mem::transmute_copy(&uri), @@ -38522,15 +39640,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequest_Impl::SetUri( this, core::mem::transmute(&uri), @@ -38538,15 +39658,17 @@ pub mod Web { .into() } unsafe extern "system" fn Method< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, method: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequest_Impl::Method( this, core::mem::transmute_copy(&method), @@ -38554,15 +39676,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMethod< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, method: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequest_Impl::SetMethod( this, core::mem::transmute(&method), @@ -38570,33 +39694,37 @@ pub mod Web { .into() } unsafe extern "system" fn Content< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, content: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceRequest_Impl::Content(this) { Ok(ok__) => { - core::ptr::write(content, core::mem::transmute(ok__)); + content.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn SetContent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, content: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequest_Impl::SetContent( this, windows_core::from_raw_borrowed(&content), @@ -38604,18 +39732,20 @@ pub mod Web { .into() } unsafe extern "system" fn Headers< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequest_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, headers: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequest_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceRequest_Impl::Headers(this) { Ok(ok__) => { - core::ptr::write(headers, core::mem::transmute(ok__)); + headers.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -38623,13 +39753,13 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Uri: Uri::, - SetUri: SetUri::, - Method: Method::, - SetMethod: SetMethod::, - Content: Content::, - SetContent: SetContent::, - Headers: Headers::, + Uri: Uri::, + SetUri: SetUri::, + Method: Method::, + SetMethod: SetMethod::, + Content: Content::, + SetContent: SetContent::, + Headers: Headers::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38651,57 +39781,63 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceRequestedEventArgs {} impl ICoreWebView2WebResourceRequestedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceRequestedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceRequestedEventArgs_Vtbl + where + Identity: ICoreWebView2WebResourceRequestedEventArgs_Impl, + { unsafe extern "system" fn Request< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, request: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceRequestedEventArgs_Impl::Request(this) { Ok(ok__) => { - core::ptr::write(request, core::mem::transmute(ok__)); + request.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Response< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, response: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceRequestedEventArgs_Impl::Response(this) { Ok(ok__) => { - core::ptr::write(response, core::mem::transmute(ok__)); + response.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn SetResponse< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, response: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequestedEventArgs_Impl::SetResponse( this, windows_core::from_raw_borrowed(&response), @@ -38709,33 +39845,37 @@ pub mod Web { .into() } unsafe extern "system" fn GetDeferral< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, deferral: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceRequestedEventArgs_Impl::GetDeferral(this) { Ok(ok__) => { - core::ptr::write(deferral, core::mem::transmute(ok__)); + deferral.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn ResourceContext< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, context: *mut COREWEBVIEW2_WEB_RESOURCE_CONTEXT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequestedEventArgs_Impl::ResourceContext( this, core::mem::transmute_copy(&context), @@ -38744,11 +39884,11 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Request: Request::, - Response: Response::, - SetResponse: SetResponse::, - GetDeferral: GetDeferral::, - ResourceContext: ResourceContext::, + Request: Request::, + Response: Response::, + SetResponse: SetResponse::, + GetDeferral: GetDeferral::, + ResourceContext: ResourceContext::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38765,21 +39905,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceRequestedEventArgs2 {} impl ICoreWebView2WebResourceRequestedEventArgs2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceRequestedEventArgs2_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceRequestedEventArgs2_Vtbl + where + Identity: ICoreWebView2WebResourceRequestedEventArgs2_Impl, + { unsafe extern "system" fn RequestedSourceKind< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventArgs2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, requestedsourcekind: *mut COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventArgs2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequestedEventArgs2_Impl::RequestedSourceKind( this, core::mem::transmute_copy(&requestedsourcekind), @@ -38789,10 +39931,9 @@ pub mod Web { Self { base__: ICoreWebView2WebResourceRequestedEventArgs_Vtbl::new::< Identity, - Impl, OFFSET, >(), - RequestedSourceKind: RequestedSourceKind::, + RequestedSourceKind: RequestedSourceKind::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38808,22 +39949,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceRequestedEventHandler {} impl ICoreWebView2WebResourceRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2WebResourceRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -38833,7 +39976,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -38860,39 +40003,43 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceResponse {} impl ICoreWebView2WebResourceResponse_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceResponse_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceResponse_Vtbl + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { unsafe extern "system" fn Content< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, content: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceResponse_Impl::Content(this) { Ok(ok__) => { - core::ptr::write(content, core::mem::transmute(ok__)); + content.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn SetContent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, content: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponse_Impl::SetContent( this, windows_core::from_raw_borrowed(&content), @@ -38900,33 +40047,37 @@ pub mod Web { .into() } unsafe extern "system" fn Headers< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, headers: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceResponse_Impl::Headers(this) { Ok(ok__) => { - core::ptr::write(headers, core::mem::transmute(ok__)); + headers.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn StatusCode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, statuscode: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponse_Impl::StatusCode( this, core::mem::transmute_copy(&statuscode), @@ -38934,15 +40085,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetStatusCode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, statuscode: i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponse_Impl::SetStatusCode( this, core::mem::transmute_copy(&statuscode), @@ -38950,15 +40103,17 @@ pub mod Web { .into() } unsafe extern "system" fn ReasonPhrase< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, reasonphrase: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponse_Impl::ReasonPhrase( this, core::mem::transmute_copy(&reasonphrase), @@ -38966,15 +40121,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetReasonPhrase< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponse_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, reasonphrase: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponse_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponse_Impl::SetReasonPhrase( this, core::mem::transmute(&reasonphrase), @@ -38983,13 +40140,13 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Content: Content::, - SetContent: SetContent::, - Headers: Headers::, - StatusCode: StatusCode::, - SetStatusCode: SetStatusCode::, - ReasonPhrase: ReasonPhrase::, - SetReasonPhrase: SetReasonPhrase::, + Content: Content::, + SetContent: SetContent::, + Headers: Headers::, + StatusCode: StatusCode::, + SetStatusCode: SetStatusCode::, + ReasonPhrase: ReasonPhrase::, + SetReasonPhrase: SetReasonPhrase::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39002,44 +40159,48 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceResponseReceivedEventArgs {} impl ICoreWebView2WebResourceResponseReceivedEventArgs_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseReceivedEventArgs_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceResponseReceivedEventArgs_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceResponseReceivedEventArgs_Vtbl + where + Identity: ICoreWebView2WebResourceResponseReceivedEventArgs_Impl, + { unsafe extern "system" fn Request< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseReceivedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, request: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseReceivedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceResponseReceivedEventArgs_Impl::Request(this) { Ok(ok__) => { - core::ptr::write(request, core::mem::transmute(ok__)); + request.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Response< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseReceivedEventArgs_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, response: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseReceivedEventArgs_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceResponseReceivedEventArgs_Impl::Response(this) { Ok(ok__) => { - core::ptr::write(response, core::mem::transmute(ok__)); + response.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), @@ -39047,8 +40208,8 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Request: Request::, - Response: Response::, + Request: Request::, + Response: Response::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39064,22 +40225,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceResponseReceivedEventHandler {} impl ICoreWebView2WebResourceResponseReceivedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseReceivedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceResponseReceivedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceResponseReceivedEventHandler_Vtbl + where + Identity: ICoreWebView2WebResourceResponseReceivedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseReceivedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseReceivedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponseReceivedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -39089,7 +40252,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39112,39 +40275,43 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceResponseView {} impl ICoreWebView2WebResourceResponseView_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseView_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceResponseView_Vtbl { + pub const fn new( + ) -> ICoreWebView2WebResourceResponseView_Vtbl + where + Identity: ICoreWebView2WebResourceResponseView_Impl, + { unsafe extern "system" fn Headers< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, headers: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2WebResourceResponseView_Impl::Headers(this) { Ok(ok__) => { - core::ptr::write(headers, core::mem::transmute(ok__)); + headers.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn StatusCode< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, statuscode: *mut i32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponseView_Impl::StatusCode( this, core::mem::transmute_copy(&statuscode), @@ -39152,15 +40319,17 @@ pub mod Web { .into() } unsafe extern "system" fn ReasonPhrase< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, reasonphrase: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponseView_Impl::ReasonPhrase( this, core::mem::transmute_copy(&reasonphrase), @@ -39168,15 +40337,17 @@ pub mod Web { .into() } unsafe extern "system" fn GetContent< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseView_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WebResourceResponseView_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponseView_Impl::GetContent( this, windows_core::from_raw_borrowed(&handler), @@ -39185,10 +40356,10 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Headers: Headers::, - StatusCode: StatusCode::, - ReasonPhrase: ReasonPhrase::, - GetContent: GetContent::, + Headers: Headers::, + StatusCode: StatusCode::, + ReasonPhrase: ReasonPhrase::, + GetContent: GetContent::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39206,23 +40377,25 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WebResourceResponseViewGetContentCompletedHandler {} impl ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Vtbl + pub const fn new( + ) -> ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Vtbl + where + Identity: ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Impl, { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, errorcode: windows_core::HRESULT, content: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: + ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WebResourceResponseViewGetContentCompletedHandler_Impl::Invoke( this, core::mem::transmute_copy(&errorcode), @@ -39232,7 +40405,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39248,22 +40421,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WindowCloseRequestedEventHandler {} impl ICoreWebView2WindowCloseRequestedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowCloseRequestedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WindowCloseRequestedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2WindowCloseRequestedEventHandler_Vtbl + where + Identity: ICoreWebView2WindowCloseRequestedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowCloseRequestedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowCloseRequestedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowCloseRequestedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -39273,7 +40448,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39312,21 +40487,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2WindowFeatures {} impl ICoreWebView2WindowFeatures_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, - const OFFSET: isize, - >() -> ICoreWebView2WindowFeatures_Vtbl { + pub const fn new( + ) -> ICoreWebView2WindowFeatures_Vtbl + where + Identity: ICoreWebView2WindowFeatures_Impl, + { unsafe extern "system" fn HasPosition< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::HasPosition( this, core::mem::transmute_copy(&value), @@ -39334,15 +40511,17 @@ pub mod Web { .into() } unsafe extern "system" fn HasSize< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::HasSize( this, core::mem::transmute_copy(&value), @@ -39350,15 +40529,17 @@ pub mod Web { .into() } unsafe extern "system" fn Left< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::Left( this, core::mem::transmute_copy(&value), @@ -39366,15 +40547,17 @@ pub mod Web { .into() } unsafe extern "system" fn Top< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::Top( this, core::mem::transmute_copy(&value), @@ -39382,15 +40565,17 @@ pub mod Web { .into() } unsafe extern "system" fn Height< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::Height( this, core::mem::transmute_copy(&value), @@ -39398,15 +40583,17 @@ pub mod Web { .into() } unsafe extern "system" fn Width< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::Width( this, core::mem::transmute_copy(&value), @@ -39414,15 +40601,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldDisplayMenuBar< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::ShouldDisplayMenuBar( this, core::mem::transmute_copy(&value), @@ -39430,15 +40619,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldDisplayStatus< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::ShouldDisplayStatus( this, core::mem::transmute_copy(&value), @@ -39446,15 +40637,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldDisplayToolbar< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::ShouldDisplayToolbar( this, core::mem::transmute_copy(&value), @@ -39462,15 +40655,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShouldDisplayScrollBars< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2WindowFeatures_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2WindowFeatures_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2WindowFeatures_Impl::ShouldDisplayScrollBars( this, core::mem::transmute_copy(&value), @@ -39479,16 +40674,16 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - HasPosition: HasPosition::, - HasSize: HasSize::, - Left: Left::, - Top: Top::, - Height: Height::, - Width: Width::, - ShouldDisplayMenuBar: ShouldDisplayMenuBar::, - ShouldDisplayStatus: ShouldDisplayStatus::, - ShouldDisplayToolbar: ShouldDisplayToolbar::, - ShouldDisplayScrollBars: ShouldDisplayScrollBars::, + HasPosition: HasPosition::, + HasSize: HasSize::, + Left: Left::, + Top: Top::, + Height: Height::, + Width: Width::, + ShouldDisplayMenuBar: ShouldDisplayMenuBar::, + ShouldDisplayStatus: ShouldDisplayStatus::, + ShouldDisplayToolbar: ShouldDisplayToolbar::, + ShouldDisplayScrollBars: ShouldDisplayScrollBars::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39504,22 +40699,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2ZoomFactorChangedEventHandler {} impl ICoreWebView2ZoomFactorChangedEventHandler_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ZoomFactorChangedEventHandler_Impl, - const OFFSET: isize, - >() -> ICoreWebView2ZoomFactorChangedEventHandler_Vtbl { + pub const fn new( + ) -> ICoreWebView2ZoomFactorChangedEventHandler_Vtbl + where + Identity: ICoreWebView2ZoomFactorChangedEventHandler_Impl, + { unsafe extern "system" fn Invoke< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2ZoomFactorChangedEventHandler_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sender: *mut core::ffi::c_void, args: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2ZoomFactorChangedEventHandler_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2ZoomFactorChangedEventHandler_Impl::Invoke( this, windows_core::from_raw_borrowed(&sender), @@ -39529,7 +40726,7 @@ pub mod Web { } Self { base__: windows_core::IUnknown_Vtbl::new::(), - Invoke: Invoke::, + Invoke: Invoke::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39549,22 +40746,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_10 {} impl ICoreWebView2_10_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_10_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_10_Vtbl { + pub const fn new( + ) -> ICoreWebView2_10_Vtbl + where + Identity: ICoreWebView2_10_Impl, + { unsafe extern "system" fn add_BasicAuthenticationRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_10_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_10_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_10_Impl::add_BasicAuthenticationRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -39573,15 +40772,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_BasicAuthenticationRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_10_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_10_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_10_Impl::remove_BasicAuthenticationRequested( this, core::mem::transmute(&token), @@ -39589,15 +40790,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_9_Vtbl::new::(), + base__: ICoreWebView2_9_Vtbl::new::(), add_BasicAuthenticationRequested: add_BasicAuthenticationRequested::< Identity, - Impl, OFFSET, >, remove_BasicAuthenticationRequested: remove_BasicAuthenticationRequested::< Identity, - Impl, OFFSET, >, } @@ -39635,14 +40834,13 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_11 {} impl ICoreWebView2_11_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_11_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_11_Vtbl { + pub const fn new( + ) -> ICoreWebView2_11_Vtbl + where + Identity: ICoreWebView2_11_Impl, + { unsafe extern "system" fn CallDevToolsProtocolMethodForSession< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_11_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, @@ -39650,9 +40848,12 @@ pub mod Web { methodname: windows_core::PCWSTR, parametersasjson: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_11_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_11_Impl::CallDevToolsProtocolMethodForSession( this, core::mem::transmute(&sessionid), @@ -39663,16 +40864,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_ContextMenuRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_11_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_11_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_11_Impl::add_ContextMenuRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -39681,15 +40884,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ContextMenuRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_11_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_11_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_11_Impl::remove_ContextMenuRequested( this, core::mem::transmute(&token), @@ -39697,18 +40902,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_10_Vtbl::new::(), + base__: ICoreWebView2_10_Vtbl::new::(), CallDevToolsProtocolMethodForSession: CallDevToolsProtocolMethodForSession::< Identity, - Impl, - OFFSET, - >, - add_ContextMenuRequested: add_ContextMenuRequested::, - remove_ContextMenuRequested: remove_ContextMenuRequested::< - Identity, - Impl, OFFSET, >, + add_ContextMenuRequested: add_ContextMenuRequested::, + remove_ContextMenuRequested: remove_ContextMenuRequested::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39742,22 +40942,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_12 {} impl ICoreWebView2_12_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_12_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_12_Vtbl { + pub const fn new( + ) -> ICoreWebView2_12_Vtbl + where + Identity: ICoreWebView2_12_Impl, + { unsafe extern "system" fn add_StatusBarTextChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_12_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_12_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_12_Impl::add_StatusBarTextChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -39766,15 +40968,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_StatusBarTextChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_12_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_12_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_12_Impl::remove_StatusBarTextChanged( this, core::mem::transmute(&token), @@ -39782,15 +40986,17 @@ pub mod Web { .into() } unsafe extern "system" fn StatusBarText< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_12_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_12_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_12_Impl::StatusBarText( this, core::mem::transmute_copy(&value), @@ -39798,14 +41004,10 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_11_Vtbl::new::(), - add_StatusBarTextChanged: add_StatusBarTextChanged::, - remove_StatusBarTextChanged: remove_StatusBarTextChanged::< - Identity, - Impl, - OFFSET, - >, - StatusBarText: StatusBarText::, + base__: ICoreWebView2_11_Vtbl::new::(), + add_StatusBarTextChanged: add_StatusBarTextChanged::, + remove_StatusBarTextChanged: remove_StatusBarTextChanged::, + StatusBarText: StatusBarText::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39828,32 +41030,34 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_13 {} impl ICoreWebView2_13_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_13_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_13_Vtbl { + pub const fn new( + ) -> ICoreWebView2_13_Vtbl + where + Identity: ICoreWebView2_13_Impl, + { unsafe extern "system" fn Profile< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_13_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_13_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2_13_Impl::Profile(this) { Ok(ok__) => { - core::ptr::write(value, core::mem::transmute(ok__)); + value.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2_12_Vtbl::new::(), - Profile: Profile::, + base__: ICoreWebView2_12_Vtbl::new::(), + Profile: Profile::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -39891,22 +41095,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_14 {} impl ICoreWebView2_14_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_14_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_14_Vtbl { + pub const fn new( + ) -> ICoreWebView2_14_Vtbl + where + Identity: ICoreWebView2_14_Impl, + { unsafe extern "system" fn add_ServerCertificateErrorDetected< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_14_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_14_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_14_Impl::add_ServerCertificateErrorDetected( this, windows_core::from_raw_borrowed(&eventhandler), @@ -39915,15 +41121,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ServerCertificateErrorDetected< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_14_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_14_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_14_Impl::remove_ServerCertificateErrorDetected( this, core::mem::transmute(&token), @@ -39931,15 +41139,17 @@ pub mod Web { .into() } unsafe extern "system" fn ClearServerCertificateErrorActions< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_14_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_14_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_14_Impl::ClearServerCertificateErrorActions( this, windows_core::from_raw_borrowed(&handler), @@ -39947,17 +41157,15 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_13_Vtbl::new::(), + base__: ICoreWebView2_13_Vtbl::new::(), add_ServerCertificateErrorDetected: add_ServerCertificateErrorDetected::< Identity, - Impl, OFFSET, >, remove_ServerCertificateErrorDetected: - remove_ServerCertificateErrorDetected::, + remove_ServerCertificateErrorDetected::, ClearServerCertificateErrorActions: ClearServerCertificateErrorActions::< Identity, - Impl, OFFSET, >, } @@ -39998,22 +41206,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_15 {} impl ICoreWebView2_15_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_15_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_15_Vtbl { + pub const fn new( + ) -> ICoreWebView2_15_Vtbl + where + Identity: ICoreWebView2_15_Impl, + { unsafe extern "system" fn add_FaviconChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_15_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_15_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_15_Impl::add_FaviconChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -40022,15 +41232,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_FaviconChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_15_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_15_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_15_Impl::remove_FaviconChanged( this, core::mem::transmute(&token), @@ -40038,29 +41250,33 @@ pub mod Web { .into() } unsafe extern "system" fn FaviconUri< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_15_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows_core::PWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_15_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_15_Impl::FaviconUri(this, core::mem::transmute_copy(&value)) .into() } unsafe extern "system" fn GetFavicon< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_15_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, format: COREWEBVIEW2_FAVICON_IMAGE_FORMAT, completedhandler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_15_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_15_Impl::GetFavicon( this, core::mem::transmute_copy(&format), @@ -40069,11 +41285,11 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_14_Vtbl::new::(), - add_FaviconChanged: add_FaviconChanged::, - remove_FaviconChanged: remove_FaviconChanged::, - FaviconUri: FaviconUri::, - GetFavicon: GetFavicon::, + base__: ICoreWebView2_14_Vtbl::new::(), + add_FaviconChanged: add_FaviconChanged::, + remove_FaviconChanged: remove_FaviconChanged::, + FaviconUri: FaviconUri::, + GetFavicon: GetFavicon::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40112,22 +41328,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_16 {} impl ICoreWebView2_16_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_16_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_16_Vtbl { + pub const fn new( + ) -> ICoreWebView2_16_Vtbl + where + Identity: ICoreWebView2_16_Impl, + { unsafe extern "system" fn Print< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_16_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, printsettings: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_16_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_16_Impl::Print( this, windows_core::from_raw_borrowed(&printsettings), @@ -40136,15 +41354,17 @@ pub mod Web { .into() } unsafe extern "system" fn ShowPrintUI< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_16_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, printdialogkind: COREWEBVIEW2_PRINT_DIALOG_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_16_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_16_Impl::ShowPrintUI( this, core::mem::transmute_copy(&printdialogkind), @@ -40152,16 +41372,18 @@ pub mod Web { .into() } unsafe extern "system" fn PrintToPdfStream< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_16_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, printsettings: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_16_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_16_Impl::PrintToPdfStream( this, windows_core::from_raw_borrowed(&printsettings), @@ -40170,10 +41392,10 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_15_Vtbl::new::(), - Print: Print::, - ShowPrintUI: ShowPrintUI::, - PrintToPdfStream: PrintToPdfStream::, + base__: ICoreWebView2_15_Vtbl::new::(), + Print: Print::, + ShowPrintUI: ShowPrintUI::, + PrintToPdfStream: PrintToPdfStream::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40205,23 +41427,25 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_17 {} impl ICoreWebView2_17_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_17_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_17_Vtbl { + pub const fn new( + ) -> ICoreWebView2_17_Vtbl + where + Identity: ICoreWebView2_17_Impl, + { unsafe extern "system" fn PostSharedBufferToScript< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_17_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, sharedbuffer: *mut core::ffi::c_void, access: COREWEBVIEW2_SHARED_BUFFER_ACCESS, additionaldataasjson: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_17_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_17_Impl::PostSharedBufferToScript( this, windows_core::from_raw_borrowed(&sharedbuffer), @@ -40231,8 +41455,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_16_Vtbl::new::(), - PostSharedBufferToScript: PostSharedBufferToScript::, + base__: ICoreWebView2_16_Vtbl::new::(), + PostSharedBufferToScript: PostSharedBufferToScript::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40268,22 +41492,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_18 {} impl ICoreWebView2_18_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_18_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_18_Vtbl { + pub const fn new( + ) -> ICoreWebView2_18_Vtbl + where + Identity: ICoreWebView2_18_Impl, + { unsafe extern "system" fn add_LaunchingExternalUriScheme< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_18_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_18_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_18_Impl::add_LaunchingExternalUriScheme( this, windows_core::from_raw_borrowed(&eventhandler), @@ -40292,15 +41518,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_LaunchingExternalUriScheme< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_18_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_18_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_18_Impl::remove_LaunchingExternalUriScheme( this, core::mem::transmute(&token), @@ -40308,15 +41536,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_17_Vtbl::new::(), + base__: ICoreWebView2_17_Vtbl::new::(), add_LaunchingExternalUriScheme: add_LaunchingExternalUriScheme::< Identity, - Impl, OFFSET, >, remove_LaunchingExternalUriScheme: remove_LaunchingExternalUriScheme::< Identity, - Impl, OFFSET, >, } @@ -40354,21 +41580,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_19 {} impl ICoreWebView2_19_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_19_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_19_Vtbl { + pub const fn new( + ) -> ICoreWebView2_19_Vtbl + where + Identity: ICoreWebView2_19_Impl, + { unsafe extern "system" fn MemoryUsageTargetLevel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_19_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, level: *mut COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_19_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_19_Impl::MemoryUsageTargetLevel( this, core::mem::transmute_copy(&level), @@ -40376,15 +41604,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetMemoryUsageTargetLevel< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_19_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, level: COREWEBVIEW2_MEMORY_USAGE_TARGET_LEVEL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_19_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_19_Impl::SetMemoryUsageTargetLevel( this, core::mem::transmute_copy(&level), @@ -40392,13 +41622,9 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_18_Vtbl::new::(), - MemoryUsageTargetLevel: MemoryUsageTargetLevel::, - SetMemoryUsageTargetLevel: SetMemoryUsageTargetLevel::< - Identity, - Impl, - OFFSET, - >, + base__: ICoreWebView2_18_Vtbl::new::(), + MemoryUsageTargetLevel: MemoryUsageTargetLevel::, + SetMemoryUsageTargetLevel: SetMemoryUsageTargetLevel::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40451,22 +41677,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_2 {} impl ICoreWebView2_2_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_2_Vtbl { + pub const fn new( + ) -> ICoreWebView2_2_Vtbl + where + Identity: ICoreWebView2_2_Impl, + { unsafe extern "system" fn add_WebResourceResponseReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_2_Impl::add_WebResourceResponseReceived( this, windows_core::from_raw_borrowed(&eventhandler), @@ -40475,15 +41703,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_WebResourceResponseReceived< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_2_Impl::remove_WebResourceResponseReceived( this, core::mem::transmute(&token), @@ -40491,15 +41721,17 @@ pub mod Web { .into() } unsafe extern "system" fn NavigateWithWebResourceRequest< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, request: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_2_Impl::NavigateWithWebResourceRequest( this, windows_core::from_raw_borrowed(&request), @@ -40507,16 +41739,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_DOMContentLoaded< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_2_Impl::add_DOMContentLoaded( this, windows_core::from_raw_borrowed(&eventhandler), @@ -40525,15 +41759,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_DOMContentLoaded< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_2_Impl::remove_DOMContentLoaded( this, core::mem::transmute(&token), @@ -40541,62 +41777,63 @@ pub mod Web { .into() } unsafe extern "system" fn CookieManager< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, cookiemanager: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2_2_Impl::CookieManager(this) { Ok(ok__) => { - core::ptr::write(cookiemanager, core::mem::transmute(ok__)); + cookiemanager.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } unsafe extern "system" fn Environment< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_2_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, environment: *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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_2_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); match ICoreWebView2_2_Impl::Environment(this) { Ok(ok__) => { - core::ptr::write(environment, core::mem::transmute(ok__)); + environment.write(core::mem::transmute(ok__)); windows_core::HRESULT(0) } Err(err) => err.into(), } } Self { - base__: ICoreWebView2_Vtbl::new::(), + base__: ICoreWebView2_Vtbl::new::(), add_WebResourceResponseReceived: add_WebResourceResponseReceived::< Identity, - Impl, OFFSET, >, remove_WebResourceResponseReceived: remove_WebResourceResponseReceived::< Identity, - Impl, OFFSET, >, NavigateWithWebResourceRequest: NavigateWithWebResourceRequest::< Identity, - Impl, OFFSET, >, - add_DOMContentLoaded: add_DOMContentLoaded::, - remove_DOMContentLoaded: remove_DOMContentLoaded::, - CookieManager: CookieManager::, - Environment: Environment::, + add_DOMContentLoaded: add_DOMContentLoaded::, + remove_DOMContentLoaded: remove_DOMContentLoaded::, + CookieManager: CookieManager::, + Environment: Environment::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40609,26 +41846,28 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_20 {} impl ICoreWebView2_20_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_20_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_20_Vtbl { + pub const fn new( + ) -> ICoreWebView2_20_Vtbl + where + Identity: ICoreWebView2_20_Impl, + { unsafe extern "system" fn FrameId< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_20_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, id: *mut u32, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_20_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_20_Impl::FrameId(this, core::mem::transmute_copy(&id)).into() } Self { - base__: ICoreWebView2_19_Vtbl::new::(), - FrameId: FrameId::, + base__: ICoreWebView2_19_Vtbl::new::(), + FrameId: FrameId::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40663,22 +41902,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_21 {} impl ICoreWebView2_21_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_21_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_21_Vtbl { + pub const fn new( + ) -> ICoreWebView2_21_Vtbl + where + Identity: ICoreWebView2_21_Impl, + { unsafe extern "system" fn ExecuteScriptWithResult< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_21_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, javascript: windows_core::PCWSTR, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_21_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_21_Impl::ExecuteScriptWithResult( this, core::mem::transmute(&javascript), @@ -40687,8 +41928,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_20_Vtbl::new::(), - ExecuteScriptWithResult: ExecuteScriptWithResult::, + base__: ICoreWebView2_20_Vtbl::new::(), + ExecuteScriptWithResult: ExecuteScriptWithResult::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40731,23 +41972,25 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_22 {} impl ICoreWebView2_22_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_22_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_22_Vtbl { + pub const fn new( + ) -> ICoreWebView2_22_Vtbl + where + Identity: ICoreWebView2_22_Impl, + { unsafe extern "system" fn AddWebResourceRequestedFilterWithRequestSourceKinds< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_22_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT, requestsourcekinds: COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_22_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_22_Impl::AddWebResourceRequestedFilterWithRequestSourceKinds( this, core::mem::transmute(&uri), @@ -40757,33 +42000,27 @@ pub mod Web { .into() } unsafe extern "system" fn RemoveWebResourceRequestedFilterWithRequestSourceKinds< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_22_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, uri: windows_core::PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT, requestsourcekinds: COREWEBVIEW2_WEB_RESOURCE_REQUEST_SOURCE_KINDS, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_22_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_22_Impl:: RemoveWebResourceRequestedFilterWithRequestSourceKinds ( this , core::mem::transmute ( & uri ) , core::mem::transmute_copy ( & resourcecontext ) , core::mem::transmute_copy ( & requestsourcekinds ) , ) . into ( ) } Self { - base__: ICoreWebView2_21_Vtbl::new::(), + base__: ICoreWebView2_21_Vtbl::new::(), AddWebResourceRequestedFilterWithRequestSourceKinds: - AddWebResourceRequestedFilterWithRequestSourceKinds::< - Identity, - Impl, - OFFSET, - >, + AddWebResourceRequestedFilterWithRequestSourceKinds::, RemoveWebResourceRequestedFilterWithRequestSourceKinds: - RemoveWebResourceRequestedFilterWithRequestSourceKinds::< - Identity, - Impl, - OFFSET, - >, + RemoveWebResourceRequestedFilterWithRequestSourceKinds::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -40834,21 +42071,23 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_3 {} impl ICoreWebView2_3_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_3_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_3_Vtbl { + pub const fn new( + ) -> ICoreWebView2_3_Vtbl + where + Identity: ICoreWebView2_3_Impl, + { unsafe extern "system" fn TrySuspend< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_3_Impl::TrySuspend( this, windows_core::from_raw_borrowed(&handler), @@ -40856,26 +42095,30 @@ pub mod Web { .into() } unsafe extern "system" fn Resume< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_3_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_3_Impl::Resume(this).into() } unsafe extern "system" fn IsSuspended< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, issuspended: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_3_Impl::IsSuspended( this, core::mem::transmute_copy(&issuspended), @@ -40883,17 +42126,19 @@ pub mod Web { .into() } unsafe extern "system" fn SetVirtualHostNameToFolderMapping< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hostname: windows_core::PCWSTR, folderpath: windows_core::PCWSTR, accesskind: COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_3_Impl::SetVirtualHostNameToFolderMapping( this, core::mem::transmute(&hostname), @@ -40903,15 +42148,17 @@ pub mod Web { .into() } unsafe extern "system" fn ClearVirtualHostNameToFolderMapping< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_3_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, hostname: windows_core::PCWSTR, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_3_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_3_Impl::ClearVirtualHostNameToFolderMapping( this, core::mem::transmute(&hostname), @@ -40919,18 +42166,16 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_2_Vtbl::new::(), - TrySuspend: TrySuspend::, - Resume: Resume::, - IsSuspended: IsSuspended::, + base__: ICoreWebView2_2_Vtbl::new::(), + TrySuspend: TrySuspend::, + Resume: Resume::, + IsSuspended: IsSuspended::, SetVirtualHostNameToFolderMapping: SetVirtualHostNameToFolderMapping::< Identity, - Impl, OFFSET, >, ClearVirtualHostNameToFolderMapping: ClearVirtualHostNameToFolderMapping::< Identity, - Impl, OFFSET, >, } @@ -40963,22 +42208,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_4 {} impl ICoreWebView2_4_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_4_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_4_Vtbl { + pub const fn new( + ) -> ICoreWebView2_4_Vtbl + where + Identity: ICoreWebView2_4_Impl, + { unsafe extern "system" fn add_FrameCreated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_4_Impl::add_FrameCreated( this, windows_core::from_raw_borrowed(&eventhandler), @@ -40987,15 +42234,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_FrameCreated< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_4_Impl::remove_FrameCreated( this, core::mem::transmute(&token), @@ -41003,16 +42252,18 @@ pub mod Web { .into() } unsafe extern "system" fn add_DownloadStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_4_Impl::add_DownloadStarting( this, windows_core::from_raw_borrowed(&eventhandler), @@ -41021,15 +42272,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_DownloadStarting< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_4_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_4_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_4_Impl::remove_DownloadStarting( this, core::mem::transmute(&token), @@ -41037,11 +42290,11 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_3_Vtbl::new::(), - add_FrameCreated: add_FrameCreated::, - remove_FrameCreated: remove_FrameCreated::, - add_DownloadStarting: add_DownloadStarting::, - remove_DownloadStarting: remove_DownloadStarting::, + base__: ICoreWebView2_3_Vtbl::new::(), + add_FrameCreated: add_FrameCreated::, + remove_FrameCreated: remove_FrameCreated::, + add_DownloadStarting: add_DownloadStarting::, + remove_DownloadStarting: remove_DownloadStarting::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -41064,22 +42317,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_5 {} impl ICoreWebView2_5_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_5_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_5_Vtbl { + pub const fn new( + ) -> ICoreWebView2_5_Vtbl + where + Identity: ICoreWebView2_5_Impl, + { unsafe extern "system" fn add_ClientCertificateRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_5_Impl::add_ClientCertificateRequested( this, windows_core::from_raw_borrowed(&eventhandler), @@ -41088,15 +42343,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_ClientCertificateRequested< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_5_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_5_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_5_Impl::remove_ClientCertificateRequested( this, core::mem::transmute(&token), @@ -41104,15 +42361,13 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_4_Vtbl::new::(), + base__: ICoreWebView2_4_Vtbl::new::(), add_ClientCertificateRequested: add_ClientCertificateRequested::< Identity, - Impl, OFFSET, >, remove_ClientCertificateRequested: remove_ClientCertificateRequested::< Identity, - Impl, OFFSET, >, } @@ -41130,25 +42385,27 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_6 {} impl ICoreWebView2_6_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_6_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_6_Vtbl { + pub const fn new( + ) -> ICoreWebView2_6_Vtbl + where + Identity: ICoreWebView2_6_Impl, + { unsafe extern "system" fn OpenTaskManagerWindow< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_6_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_6_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_6_Impl::OpenTaskManagerWindow(this).into() } Self { - base__: ICoreWebView2_5_Vtbl::new::(), - OpenTaskManagerWindow: OpenTaskManagerWindow::, + base__: ICoreWebView2_5_Vtbl::new::(), + OpenTaskManagerWindow: OpenTaskManagerWindow::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -41170,23 +42427,25 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_7 {} impl ICoreWebView2_7_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_7_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_7_Vtbl { + pub const fn new( + ) -> ICoreWebView2_7_Vtbl + where + Identity: ICoreWebView2_7_Impl, + { unsafe extern "system" fn PrintToPdf< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_7_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, resultfilepath: windows_core::PCWSTR, printsettings: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_7_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_7_Impl::PrintToPdf( this, core::mem::transmute(&resultfilepath), @@ -41196,8 +42455,8 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_6_Vtbl::new::(), - PrintToPdf: PrintToPdf::, + base__: ICoreWebView2_6_Vtbl::new::(), + PrintToPdf: PrintToPdf::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -41244,22 +42503,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_8 {} impl ICoreWebView2_8_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_8_Vtbl { + pub const fn new( + ) -> ICoreWebView2_8_Vtbl + where + Identity: ICoreWebView2_8_Impl, + { unsafe extern "system" fn add_IsMutedChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::add_IsMutedChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -41268,15 +42529,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_IsMutedChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::remove_IsMutedChanged( this, core::mem::transmute(&token), @@ -41284,42 +42547,48 @@ pub mod Web { .into() } unsafe extern "system" fn IsMuted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::IsMuted(this, core::mem::transmute_copy(&value)) .into() } unsafe extern "system" fn SetIsMuted< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::SetIsMuted(this, core::mem::transmute_copy(&value)) .into() } unsafe extern "system" fn add_IsDocumentPlayingAudioChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, eventhandler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::add_IsDocumentPlayingAudioChanged( this, windows_core::from_raw_borrowed(&eventhandler), @@ -41328,15 +42597,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_IsDocumentPlayingAudioChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::remove_IsDocumentPlayingAudioChanged( this, core::mem::transmute(&token), @@ -41344,15 +42615,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsDocumentPlayingAudio< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_8_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_8_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_8_Impl::IsDocumentPlayingAudio( this, core::mem::transmute_copy(&value), @@ -41360,22 +42633,20 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_7_Vtbl::new::(), - add_IsMutedChanged: add_IsMutedChanged::, - remove_IsMutedChanged: remove_IsMutedChanged::, - IsMuted: IsMuted::, - SetIsMuted: SetIsMuted::, + base__: ICoreWebView2_7_Vtbl::new::(), + add_IsMutedChanged: add_IsMutedChanged::, + remove_IsMutedChanged: remove_IsMutedChanged::, + IsMuted: IsMuted::, + SetIsMuted: SetIsMuted::, add_IsDocumentPlayingAudioChanged: add_IsDocumentPlayingAudioChanged::< Identity, - Impl, OFFSET, >, remove_IsDocumentPlayingAudioChanged: remove_IsDocumentPlayingAudioChanged::< Identity, - Impl, OFFSET, >, - IsDocumentPlayingAudio: IsDocumentPlayingAudio::, + IsDocumentPlayingAudio: IsDocumentPlayingAudio::, } } pub fn matches(iid: &windows_core::GUID) -> bool { @@ -41424,22 +42695,24 @@ pub mod Web { } impl windows_core::RuntimeName for ICoreWebView2_9 {} impl ICoreWebView2_9_Vtbl { - pub const fn new< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, - const OFFSET: isize, - >() -> ICoreWebView2_9_Vtbl { + pub const fn new( + ) -> ICoreWebView2_9_Vtbl + where + Identity: ICoreWebView2_9_Impl, + { unsafe extern "system" fn add_IsDefaultDownloadDialogOpenChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, handler: *mut core::ffi::c_void, token: *mut windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::add_IsDefaultDownloadDialogOpenChanged( this, windows_core::from_raw_borrowed(&handler), @@ -41448,15 +42721,17 @@ pub mod Web { .into() } unsafe extern "system" fn remove_IsDefaultDownloadDialogOpenChanged< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, token: windows::Win32::System::WinRT::EventRegistrationToken, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::remove_IsDefaultDownloadDialogOpenChanged( this, core::mem::transmute(&token), @@ -41464,15 +42739,17 @@ pub mod Web { .into() } unsafe extern "system" fn IsDefaultDownloadDialogOpen< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::BOOL, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::IsDefaultDownloadDialogOpen( this, core::mem::transmute_copy(&value), @@ -41480,37 +42757,43 @@ pub mod Web { .into() } unsafe extern "system" fn OpenDefaultDownloadDialog< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::OpenDefaultDownloadDialog(this).into() } unsafe extern "system" fn CloseDefaultDownloadDialog< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, 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(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::CloseDefaultDownloadDialog(this).into() } unsafe extern "system" fn DefaultDownloadDialogCornerAlignment< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::DefaultDownloadDialogCornerAlignment( this, core::mem::transmute_copy(&value), @@ -41518,15 +42801,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetDefaultDownloadDialogCornerAlignment< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: COREWEBVIEW2_DEFAULT_DOWNLOAD_DIALOG_CORNER_ALIGNMENT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::SetDefaultDownloadDialogCornerAlignment( this, core::mem::transmute_copy(&value), @@ -41534,15 +42819,17 @@ pub mod Web { .into() } unsafe extern "system" fn DefaultDownloadDialogMargin< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: *mut windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::DefaultDownloadDialogMargin( this, core::mem::transmute_copy(&value), @@ -41550,15 +42837,17 @@ pub mod Web { .into() } unsafe extern "system" fn SetDefaultDownloadDialogMargin< - Identity: windows_core::IUnknownImpl, - Impl: ICoreWebView2_9_Impl, + Identity: windows_core::IUnknownImpl, const OFFSET: isize, >( this: *mut core::ffi::c_void, value: windows::Win32::Foundation::POINT, - ) -> windows_core::HRESULT { - let this = (this as *const *const ()).offset(OFFSET) as *const Identity; - let this = (*this).get_impl(); + ) -> windows_core::HRESULT + where + Identity: ICoreWebView2_9_Impl, + { + let this: &Identity = + &*((this as *const *const ()).offset(OFFSET) as *const Identity); ICoreWebView2_9_Impl::SetDefaultDownloadDialogMargin( this, core::mem::transmute(&value), @@ -41566,41 +42855,23 @@ pub mod Web { .into() } Self { - base__: ICoreWebView2_8_Vtbl::new::(), + base__: ICoreWebView2_8_Vtbl::new::(), add_IsDefaultDownloadDialogOpenChanged: - add_IsDefaultDownloadDialogOpenChanged::, + add_IsDefaultDownloadDialogOpenChanged::, remove_IsDefaultDownloadDialogOpenChanged: - remove_IsDefaultDownloadDialogOpenChanged::, - IsDefaultDownloadDialogOpen: IsDefaultDownloadDialogOpen::< - Identity, - Impl, - OFFSET, - >, - OpenDefaultDownloadDialog: OpenDefaultDownloadDialog::< - Identity, - Impl, - OFFSET, - >, - CloseDefaultDownloadDialog: CloseDefaultDownloadDialog::< - Identity, - Impl, - OFFSET, - >, + remove_IsDefaultDownloadDialogOpenChanged::, + IsDefaultDownloadDialogOpen: IsDefaultDownloadDialogOpen::, + OpenDefaultDownloadDialog: OpenDefaultDownloadDialog::, + CloseDefaultDownloadDialog: CloseDefaultDownloadDialog::, DefaultDownloadDialogCornerAlignment: DefaultDownloadDialogCornerAlignment::< Identity, - Impl, OFFSET, >, SetDefaultDownloadDialogCornerAlignment: - SetDefaultDownloadDialogCornerAlignment::, - DefaultDownloadDialogMargin: DefaultDownloadDialogMargin::< - Identity, - Impl, - OFFSET, - >, + SetDefaultDownloadDialogCornerAlignment::, + DefaultDownloadDialogMargin: DefaultDownloadDialogMargin::, SetDefaultDownloadDialogMargin: SetDefaultDownloadDialogMargin::< Identity, - Impl, OFFSET, >, } diff --git a/crates/bindings/x64/WebView2Loader.dll b/crates/bindings/x64/WebView2Loader.dll index 4fc0a46813ca783a4aae23fbad5419c17f23e5ab..f6d1d7bc964f6415b57f5bd91962b49536710a25 100644 GIT binary patch delta 6053 zcmcguc|26>|3BxLv1JS~4GNRSGFh4-qH--)-6NyOnhFu6WDBWem_epV$>C0$P+D%O zlv|{-Ms%-~Hj(IR8EYvFZS#B1nEEci|G)Ekoq0a%`}sVdPG@Dr80UQ8L12p0JG;IRtB{f;0qewoAYVU}H)MB(PiayTAA^hgur7Jah2i7Cm zSo{VjPynFo2EnlHJ|rxaP_6K2RZ1h4Vu_{XPpnKSRz_F69=`{N zJD`K>?Ish+fCK3k<$yf0Y6mG2ig&J}#X{1YpG9`8BEZwzj2KE++C5=uD`0RuBEM@dWX3TOlgB||D=(`h1I z91FCSBi^dBuqGwCg{RKXJb3`WJHSH}0Mg~kzYEw_oOP43O@M93w3IF3hnSnP{_?s< zpkc`j1vcnu_jwS+AHb=1-~b>-4+*8^BgkWgD6JKO6jDL%R*KMUHk~Q50=7Q~(hMt8 z)|`Ft|CtVgmd1^HupVU!Y>bU78+xC@bCXT!cnS{4uLId~#}hs&p@;@x2yBqR;)(haOR-`k{ghq87=Xk zoj!sYqXnW8!ya(Auxh0o7*`S#n27Lx;n~vxDM@GsLMxCVR=ZOrqzHjjyMvRU8MO%% zpb7d9jTNrp6JJ|{ZL&#kz#_^6P=o2diXbXSR6w-ElvNB=^uh7i*)DXZgz_4*RWVep z#_uywGh4i7vDj7>GdLYPtYQu)VofS@O$8o_QQ`s7}?1<{*>t1TzoUx z7#s&ivN3o9NT8REL7&u0=8`B?fytf{U6zt{_*|XGbX0B4`YEy=Os6+P5JWbyzT1Xp zA($#68U2(st)#fcrg5QdJ(V&H*%khJvYr-fC5Xk6>*!vWNkf5@ z%=nX@1KxLIA64h;uGv|PC^XORs0MF-akWX;NbZu~}umy(a zn21yyfNfN#sS96A2P)&$S3Jgk5d+Itr@^1G>*{8lJrD3J#cc?Nsu3{QgHd?P_~Vn~ z4=OPi)a~C2qbXx$g(1sWSz#1qtgJ8!GPV|khzjyv6oFNg2*SqOI#{%8HkjiH5-Qj) zZ4$gmqp+x%A#=q*!Oose7#{7o4(_sFS|B$6ACWaSI&&_pk7;Nu&{pz?@T(%j^ovB| zlC_b(3iKnJKOowMt<{)4?}^{ER{R;iI;KF^i@|h>bnqCa?a0^>4L#063oyNFY4}B8 z0!Rrt;{(70W8DVKC6s)8V)=Ez{nWql#0hih=!?N3`W-m;-<)>B$N6z{NYn8p1NCqiz7n<#jf7VSc zW7RHWwTOz#)3h$Z@KcPba}Oq9Uvz?19H;P_JO{V4$f11G>~T5RzI?sDr80b*m&2&Y zVZgTa`1hsouR&Pb5fI@J_<@my)`79x{1t{agO)A!y$HfX3HC8Uz&?Ao5b8pd#M@ zk(jGkK{RCuf+2jZDDpu3VFf$L60(4-D*{w*s6M6b_`e&_+Nl0yc|)E(BOFghIiyNa}3|s4!p~T0!+e`W5v%z^4X;AP|#l z+$^s&KNHOqlVAm;h--WUh^`6s1CiCVp?|KLx-S-^eJfrxkBMd_Hd}es-GtaX*Vw*o zJgReWOU0o;B$=e5-N@u>*C8;>Ov@JrhasuLBauifO}*X&-Y#aO*G!6AKGW;2Wvlsq zGdtEZo?!bI`@q*6ws8J7WDm#Vx$e35>%thz3FGzbmd+}+8`@*J-!`Bnb-fW7#u+w8Nk zcivpLBA;`f)LqJ7?P9O^;6ff0(|69#5cOLq*>E9j_}VgO#y;gqvF*T}IL@n>Xbswf zef?uuyT+Hg%?rV9MxQNm-8t zmU_eO)pGM=qsz8W9MbH_mGha3YkBu#s->``>+F1VLC|CBE}^Z>2830W$UfC=C^1 za%X)Gh7q8ok$cOtFtyitm(y(M&E@axUSWG)hmbJBo zrHxGhlaPwQV?}8lC23EXY3;%h4&vi$&NP*m^C8U8pu0ze#zk+B4v(j~#)U<0h}uY7 z6%!V>AwD8HYCDY`u`MD#Y$MBvNuM^?_1?T8GHg4|+sli#%xmRhrtLyY^M%gKY|MYP zv~v@H)p zc{#119{A8veO~W{QLk%#-umO0-ZY+_+WiZr#*1H(m0oj%GIa*`7&y- z_DcS7!>qWGqrJ+#K|`W~z{6&1*WEgMI&!3TV#@%heeh){RhV}n@)s)(a>nyDw!CvP zX+~zY(qMhT0rLi{kQ-w7qgZG73b#7w*@Z~fk`{&7DfYf79olKK$v+ z5;boA8~eZCYj+!*uYLoW>2tid(B2+FTOYEjyS?P2x#_{Nm5k4mj z7wokbH_I86%stc3xO{Zt^76)4f3?~jpfSkvQp#6#jR<9_)|TlMRkcN>pc=ydc6>jHA#yMTpW?!en7TRiQ< zHSz^4O+Q8V)EaWovI>iMWHHRS!Si`MT$w!&a!YzVe88$UuPfz|*5AdYTfR^&xoW<` zrq21;N7Zf0|6K6X(e+QPG0o}Xf9hVeQvUm3T-(6$$@@(SjSGxc?K~|g>q=d=CePO_ ze?!u?X91pGAx8PRhLBk7sYi1dub4RXNf64##t**nsP5XGwEpnC|`;=MR zNA5))=vh#x7w^wrOQi1|spyQ{aW+wSew*Fz->5Gl95OWp8lOog4&G8X*;nJNJyaBA zRN}Qtcm0-cAvL8z^_ha#>6lz~z(sZIlj1Aq@?P)T67D>Hofh-4uq|3|N0hIzdA#pq zdxt`sxu2F zsB1nLH`|Jb>$^wY_Z&)Za#ac-=AXG6C+_;RuT%5>@wP)+*ib@*r$Jzca=$LCaNRss zY|jJY=@p9)VN2QzW|q%tikTTW>2ofO;g3$5++OC8BHFaDF|y_TLPZbHMMfr9-f>3m zEvPls{op_Dlu!luhQ{j~0)MC)GuX z^Yz`!&Ye7?mprD-X*3U2XKYQel<+3j7MI-E@$`DK>Yk5VkEwoac&E3@A?3>>x3}L8 z9yHMYd)ne>Mn0B&UUD`^;^yvLP^2{6lyIiIO413+MisQ~^EL~)6XP`8-YYHZOF z_M{@ealm$RX=#vZQupPIvx&ROmXCzSiApZ~==PY7KYUF?>8^tKH)@{I0e>odq!QOB zy!#M5`!3_b;bU*oBQM7;F&GwVHx2GL_SRWxR=^Ieppt$DT_K&5i84XVOBys&Xc%IcEtU4l2%#m>=#jl}k{X z5IfuCoe)nNtlhlF^?LNRG=jrGyn$(b{8~>|&TGhEy~srO_RbXpr%&>iuts7UCO&dT z?%MhdxCA*~)Rt&*+r#S~J>>_CW@6rTjEcr;yFJkQR3G6oqe+z}6@Rz4SxvvsJ?Wb3 z-Br*ymXyUw5#8(OT_WgNMVAzsZEi7A>!Mb*tv>&YTF!uB9ljXZytOdLd$Heg(>=yt zY!keqKl!xsBI#7sy|l^xDC4D}e_r?$yVlzA#hs{0o!s+hQc{N5_nQ4#YkTcsviZD~ oQ7gk-9}t9mb|$^Cw0Li0;b)(v^S%`e!S_7$e*nvCMF0Q* delta 6216 zcmcImc|26>|3Bx9v1^FQ8WST+mNR1sC4@R|Lq!{vB~g?mTdru#7%~kNM~ODHswAmP zr4Xf3gea-5N;N|p-D_)^-*d*?e)sqN{r#PJ%{-s={d}I!@|^QjpxBV3xG$Y#`p6|O z!y6G4<#qZZuBO$q;dGK#086lf9-A=rF+l=7*;}v{ zW%1Y1QH-BJH)Zix&}m|-!7vQ%!!nv(1DkLKvL393&n9nVgoQwP6PCNo99RlFOaPlp-3UEM-gm?gdF3Yst z^fxfh05TPc$uhuRgoo%@u1ZB8aWH4uF&Gj*0S;m+36MaMiZ7I#&2F7Ng-({BHxY;) z5^@6L-*V$W6;rza7Qe|26aeU6f?!yVUlQkwsntN9F`kmhxCW_CVX&oGS0xcku*N0i zFRWb>tjxXyeg2;W++H0*?>L@B0USuTFc0LB(J(|6Q&-}!ycIkRN98pPJ{wCmAPiEZ zdu;ySJ+$#q`4wxDx?zZ7M#A{LLJ}}%+{5_Kgy}!U;>-q0_5-3Kx$8i80Ch3g!;3gh zuds_K8?o~(Z~hk{EWz#--jGNe!>_G_gcO{jpcQ$LkeD@L8BGY*@r?x{&-&#F$|=13 zzX7fWAcR30T>>qf`$H^d^zj-JmxG*Z5nU>9uK!C~457=^R$}U9AOZ%Kc%Fim{v}X) zF*QpfV$o?reF6(Kk}J`ins|!>-O5+zSNksmez$>#FaRbF)&kfzf?XnE?*O(7*H&c0 zoj6O;V9~8E(4rJGITq+*A0r6j4-%9R900_)OiaB$0`gcR*zW|9n_Oyd4>%yd5oF7oNcgyzDgpx! zHsE=Q#bONHD5h9uCxthU;6VPigZ&sEMXrEd1qK9Eu1!ErvPU3+N-Q3&q|0Uj8q2(w z09t1R%o8mT6C3w~3x?4k;lOCBFo21W=#&g+V?c@%?*gGM$PJ^@trn7pK$3mH8L-TT zL@Lk({~wJlq2ZI?+JS9yRo;O`xF0|b@rZC-F_M66gDWW;D$~HhSh*f_R7`z~J1QGb zt0(R=P%Q_dT5Gif ztC+zVxU-6rVemiJ!c|f#SjZwMuu(FxktbfHLfdf1P*O)Hknp0%AdK8p0)ImIbQZCh zbO4S3Bk2J2021h>127=5lDce{sK69Y2ro*=Mq;AQ;kwftEC#94?&Hz#LJ&kTwY%F+ zWFeIv%=kE@%i@cKAqK=8ObGpP_B0pg{X{T)9=!xugWGpN%AT2Gt-qC$SU*y4m?adz-=8lTR1bRB|O3_h!twNldlDP+&+H)nog`%ThBb9~% zDaGtEeII}mkbRj%3(cqDF-lZAW$zexc3~OLMnDR=-2fI4g?9$r8UnJJ#E>L0q*3-N z%Sa3-83YwJ@H0W5AckXRdX=er3Yd!pl1UBBDs1X zx!}M&ZE(4;1jgkkA`!2}!_;VM2L~i`mHFyB5u-?Gjvr8?!Qb#2H4FC6N5sv-`T#>W z5is9F(M12OA;xG8D2pK|;=igym9o+*sY+RCl@z3`v`X?)wgH5Q2@0NM8Bm zByqb;fbkdyV<^-m;+wKl#f#PT*>+Z7%-7L~8^a8cVoK&0fCuLP5il214-lixZv^fq z{>78WEG2iuI9P;*z*%&C%88H*r%BL;0143grW9O>H}(r{pOj}4@Z_sgaMuWLF9Pn= zloufvHh|J+I9E);`GFD>SDM6qQut4BtN+E5cTAzB63*X%vq&E}Nnbhy5X2#3H23^%k6 z%;e_pFti!;Gx7OHrvYf7f|?-&YW@O4zJ4Blr1YQ8r?M-R3+W$V7JQ^;+XwiV9a~-v zg7gd#h*1yc>r!CTTD^DTjmda+(dj;SQ5o=A!GGq-bX9L+m zR*-FtcscUo7gzYk4|(rx4>2GIpmu;lAbThba)iPmCKL+zP{7Rv^hU@Q=)%EwF3{S6 zAK^n-G66-%2!AH{Zm7{*iHPJ4TunjN5ClTGrZ%z)=2=+Qm0))tm1jG&zSaS_Ely}Qsn3Q1!Z1Q}h* zenV>Q_>-RSv8@H~_D+UEo|}FUCFOgZ_fi@1DIsec#0zUCs$6D>(XbzI*jrrPOCNlS8m&6i$| z?ypWhGqNEur~BBF?Xs7oq@u!P%Z{BWLb7-&pKNq_EuPXZf?{2HZH<>6W&3(_hrWE zc^xu#elro-aGQLg4W^~eM47gz9fOHFFdc1CD_cj~08}O&f&VJube!O{p`6yjow3Nu zrN*d{ENP{TlDeLEL}*-0d`x%(%`GY{E+RC9wlp>@E+io$COV#Bf*Mbm=|}r*jtJYj zk+#CmkLKy;<76`zwXsC)JW)#zN87oDv{=O4Xb|Pf(NHc~zJ!Fp2%>HS#$>RV9@p*f z5)uj~25^N@u}Fa)6SZeJ*xK2k0h%gIJJbe5JjMPu<1;DzybYPfzM>Q~jJeR{y1!Yy z-+Vl>Cnmz8yfo#ll2_hkv*H#f-K_qBrbdRx&Fxw1>m>2YdSeqF8?!h$7K#`UZ2BRW7JxtS|c0+W*en-ZR=wJ4??T z`$<*)y*IPxeBTyp%xV$az{0|PL)xRJdDgoQhc>^r*z1^=*tNprP*>kJ>n)2JyBo(# zZ?!I+S-rFP*d;xOO&!H*eKRtiz2n~qj$CPG&G>ymGl_iN|4Qr60LRmvc^=sf2O8Y; zoc$7lqvNW$FKjivoYJZAmN7K)@pEQ)O^U{_n%6w7gP|%#pJ`!}BZ+~P@ zzWh1rgnz~A17$AuE>)4_(4+R><_|%W<0%23EBiR2yY*&w>%Y76Jo7YI>QB(6ueS`P z?zueLx})R?K3!pLsZ-OI;&+~nCl*$yk-99#S3fsqFm}=QUwvo9dLG|RKay5APJZaKq!CEFHpzh|dL6JJAYm(sW(?a zc3kLFX(r4O|>d$rv8@>d!SYuD``zlu1%bU)yAk{hvpSjkbe z=*9ClNgMy^PhJeqf4eD_y1;WbK3-opbG zGq&o)Q?GAj``Bz*YBE@UKfST-+}NW(dp*?8*k7)nZ$@gU%9gh`U)6s10qig~XLP#X zNMm`>Xo!VFVt3EFC|8?xDRv&kbG%GGuB;5PjQHBTwORXgyC3qd#N##ZmEa7|Sn<%% z80U4Qx9mBV*5K;s}h#S+6g9TZ6Yc{i%R_WXz*X-?l^wZ$h=B*PU z9mgv6%4Lr|nDx53jJ>c*`^T)A&CME$Ze50N&y}6guX0r-Ef;5g(%2m~+Az}SJEKPM z+nJcXg9WZZ4t5Wsx9F@j4vV<>F_m^xHTtEalFK8;h312exySyfLmz(fCY^M*v=X(y zIk!Gh;2X)bzvSJrZ(|pXws|nx+$)P}mS#2W?Z$0uDZ{e@pZ|u-M1-*%Ym&Aj+vTVv zZMc{+ zA>j!^YyU4_gkg%#MhlfV2!jZM#D!rfcz!tJPWr3Cqf73|RdEWMuTihhHeh~?Id@FM zPHzU3wOqmVZI5m+_QmK_im38YMa4t4@t|i8zgyOyUU|*`Z{vCKXM-LUSQ@OC`K)zY zZFC+DcjNZ8{FWGRn-RRQs2vRBc|)Xrl}6xg<{%u&K$(J$vo+ zOZn=q4lQ?P-*MOQG2!q&D60R_s<}ibiP`n4u!)1@Q~vWIw~>puhQz6*)YwI|L&*mz z8?_f*Fw(0_ycOtwJlAY-Y2&;sb3c?b`LD-5V$I+TqMY|AX8`5gkfE9FE$x1@(KcBi zZ+oD#!7esrAS&9tEc<4qMb7CHwc*Jq=V0LvHj+`el#9sP{6_$&p$x6v;AnpMZa)vF z2B_>f@?|h6Ql5Hjr{i%_gHx80aM6*%#tcNAy;-!nePe_RZSjI@^@|@Fyu3c3M#)dz zxnEV|?7kjv5?IsCGlwI;7qU33Fn%v0}Q;5b=bzTI#nkUQ=7?v5Vn?~w~d`^u}w zd|35`9K0^r|H`J+YsEL@t&(2+5w@fDqtmmGXoPaNOvR0rJJ+i*$-5sXY)rD&)eEfb zEfGv-r(E#XPWk*{M{K`}`?fn}N=4rG^(v9ml6UnrB=l2jQYzohUlgYJT_v4xRs?Vy8dYF}%;HaG9dX*+Scs?!K-QBjzX;_te zYo5`tz?Xz1-hHo)Z~Z+wFU>l2)a&rGIumi_W@R?z=|ZF1Sq2dXU0=u(6`>v+@95y@ zqvrm#iPdqlVwLZ?ru$5Eoa{*qsy6y@$>|j@p?=o)muo}LZ#!G{uBXFIyFly5$z4X= zUcc!wS~b(H3${6L`Qy;13{l!e7gOElcbCc*C0=P!>|LpQaM#>T)83C*x%OSps#~}C z(!to`D?B&$TDc=^jerXky$ksfPtuaw?edo-mX8h?8_is^X-)Vk^ADoPQ>x9o`_6w( zJbe7xSn9|VxmIWX$^O4$T}>zd*#61CsbQ76&G9UGq=%W8qI@i*$?2KXdavrVk#P@& t@>HHp{!O1qtR!hqQaiO6^|*buL#v!S`JI_1&OqI9>t{L`w2VG2{+7f$ZV1Qcw&M#dq-y17s;p z$*2d-X3%LA%N(Qh8N?iG$fTS?r?OFp8WZ)82E!tHahkq&dpixyf5(8*ALv%9R2fnt-X)Xd+lHxp=TNu{cb|7+%+R~<&&F1<33mXmjpX^v%-lU5nUwy`!GwFCX z5HK!~oyeqNGAbAkCJ2WKFcBv4fdKQl$wDCOvYBK3*o{c`K^BdW{Zq`~`L@7hh~)k$ zQIV%`!z+w|5ybo9HFs9Y*D9Ql3we+aE|>!aPzXiv1kB~vDxPe)7@U-xj_E7& zpG7?LZ{XW9sh>tXZDP$?)G9Rat}Gg@)g3P&=%5z;cc_0TAnbg8u|-ozNGJ<% z(8>A~l=ecxB3#PhO7CH96Arg1We3VrN_hq4O>e2w6%i6t97;j{^CXC^hV z?d??ARi0|E*cQU9hp1INWnxQusKhoNqAq<4PH!_2w%k=5%&#A!16r|f#2x6n=~!;= zrsaaMEkwD4`1iit$aj5A7l|QLZApLMfYCeGUK2N-rOAR&#HRPqSh3f8xiz{2xKf9S z-|V3$wg1>57r&L}k1~u$Q zIHHDg2;ZpT7X&d+Sxsxs6G$9i<|^Lw#fb48!M^9V6!*$C#*>mVy#Dhc;k@H5cS7!% z#N<@pPxp@ZjgTY{4!fZQ=D}0&G&}?I`QY$^k|d#;<;Il83QepgrZie?&u05$N+r+t zr}*}3bxN$NhepX^)>0^gg|G<9d6;#vJwxA~Es^)LC1pMr5cW7qH#wJmb_zt2!nRlOvktjt32*6gxB4|Pxv4X_m&L53!H0bYb{upM549lXoF)7osT=E|;{ jNIHV$!QP$F3@^hjcm-PERd@{;w8C!K!v}j`AJqH>1YdM) delta 2913 zcmc)KdrVVT0LSsuC$3aML`11tDzuD8k%9_nL6|T_Kn1oPz=@PTs3I~-9X=7fcM;=-O;FSjwb%s)tk65D1u^`19M>>lt3wz!AtNm zU*&vd`=wE))G63uvB&wO)3?WEgnY!#_tGe~D2IwI=BRF&G*QFi@@Tvar}+1g-HNlw z53b0g3Z<@;5MwD@TR?TnLNpEZGIU#@_n|ui{WbbxpzoqdnfUBD{Pp-i&qS96x)Hr5 z&>x_^q7}X9?|DceJ(DWUe+F9^?s6_^sIyhMni`$;4r5J?j{JUyf3}UT3|1#<#MWFl zciDO7UaA{1I(_1lH2-@0A1al9!Q*k-Sh3)n57Hi`I)ae93YM5h^)ejut#mB&dg)vx z!I^3ef9R!BrL^D~%$A)wNk>WV+~!wLQoBU$`%itZ4a2WYA@_5M+o*Y$fFa-@Ol8`Y) z692bXP&x)P1_u@l>IVlKG1xgc=)~Zp80eJf-v$q;iX|kXSi-*ZJyYoEXy4aj&;kq= zVGuo=>g4F{{Hx;f)#so7{cmplkcFBmhVt>I3fD4qj6tkiZujCNe2=%nSTsDv4Hmucy%X;; zQl$4k5gvJ*1!}+wHn4MfoMXCK5jsmxH0*@UF+q`u%ok}zHi&FT?iP6r*(0(ac|)YS zKu;psr*>RnGBQ`>LS&uD4aglLKSv%H`6Kcdkwa$dNjTf@z!gl$ERpk(wIbIew~9QB z>=yY0^14WQp`L`YEw#9U5t%8HBCR6ZknJKnkjF$`MD~07Y8_AuPFMtsp$?WnJuHO= zcnuoC1x?_FW$-#Q!*W;wD`6F^hBeT_`)b#&J0Z<|+K;Tc^%GBaRx7l@I(P%#g!SNo zx8QBq0Pny?co*7vcGjl&&Fafs+^4FCmxg-W=QhD+*aBN&8*GR7Ush z3|UIQN_LluWZzOMn$Vr@?f#zU{{Fo8JkL4j^M2m`<(MRuQRykE^ucja7~2! z6SQ|@P-&SP)eSk2w-^u00e%`4aG^|36NV0AOI?Wdc)6T@aeK_pHLiQ{wUM5_TFoKE`JYAp`(;>3D1VA8;O z(cN=6&M9Fq0HWcBktn6}#^=`sKyFwu4fl*gbue}pf!5fs-nqsig5#r6tLW(~P0nK; zY0>Zd9(na7WNg3Lm;dCChMXesf&jlnCq$EIgMlEFn8ygd1tu`=RDz*char1cxsNj^ zw7I$}3(FRlM-MKv^kW?5*^^&n7>`Wm8Cq4~IjZ!@-d-fDLo!ul8_)g;=|3`ED}9M z+mPk49pcX(bIhHRO=Bk9wzx1odPnr+)`8DI_0yU9+$7w1V!pYzvcxmzbFa3YUN02m zA5$%*6o%Cz&eLPYWj`HHEmRJxDGhtJOVK@$EAVJjrd!|X-!DkDKSNF#A^fp{8b zCx;XMuhL*(5KU|w26EwdKmtgV+j(Qqiwh0|5u7T54oJS=RYVDa@M0Qh45xu)jzfKZBp4Wc6iPk@16iW5g}CJsW0eT>jspe@7k2B?ZtfaH-}ws1bQw2kkn(_Z0N z8wv$$L^*cwh@l$(fSLhW?EslTfEe8mK%7D`O*jUkapNEwVn;C-41~eZM9wvsEGWqP z^yUM0k#i$B79;XLcu5Mv6YyFPiJi{x7K`I#6;eaSQ1O`^o!N9*OjevjQdYk)N0=pNLBt2yD)gyo{uMt ze0&v!8N%uB>V5xASrM!lZ`%AmW9+ru)MF^~bbSyN)JAIUzMFr!Qpev7b1dBZP33XRrZulx+qz$v$vwzk%MeU?U z9Au9^O8AqsrwvW3u-h`*IUXnaMz06;t`3()?|~O!9#(ssf_}1?;HG--zWSdPp{gCobqls!WP*_?HJ;6)s?>$D;RYj$SldkH+;q z>_29oY2BV3#5Zj;c1jfMavL+Y5VdqW`i)m<+c}M8XFKM#S``TE-~B@-XyJA+&-SH= z-FM2}Td3Cxmx?a~N_#$b4z#7$44lm`RHhWHpuc@?dhEec)O01!rpd?`f5<2kJKQjl zf)GK^C6-jHjiK#=go4UX@hRe}fw1!QHl7FUAP1}3i>N07k0me^gD3craNhEKa{Z;U zVV#w;@Iu|j9p^iE$PV0|0VPSzCYic?k3+7)eBq9LlnRD$EhsKZP7)LzZCU0%efg?M zs=URm7}O}DL8lfx2vVnP$oL9d(Xpa=*BXIq$6nN=)MHw9+AIy3XD7AlUqA?bb!%3h z1(#i_aqmytSaa{01!S*{DxVM8ysV)V*iBmAz`9j! zx0>@MZCQ$|1U84&cBU&(90u67ul^jeD%@wh8Raa-)Tn7Z@Su)*r@cR;5$Kyaaj3*} zIKan|=l$)j8TtUdWijVa`Br9c;C@NnR)_vl^--4&_R`Jfbm8`lm^|-X%U6BK+euDq zQmCQKe!IeH^+C^r+`BdpUW`1K74ni-uKSs)=A`+0ob+rCGWM)1rfcqOo!4=TH95t7 zCbRLMU)8A*x1SD}Q@g9mTB}DMIyp179L!_iVk`E?2Q;*N9NiFh9i80Q-AQ4JDzerC z$l2^q3!427H&Mc#S5>!>o_milqpHgNVJn`mhpX9pr4a^Yt{a)YWoKr7WYZfBQiZfS z(jIvxx0~8-eB?*?H~&P!SBv_UzSTGB3(1(V4?jx2d4*k#rnV}LcPJ>qCy|l4WC?s&hyKahZE&ogjzYd&H2dd3_;*>(lp*Kkr3P zG~C*Fd~wRpRqpuRIS+ObuX_8j!sEz}y&s3>4n?ZA$2Uk1b$>&r%D)dZ8zNaD zYMP&-_^%>$d7|Jhc;&W+=ms#FTMRY;(O^2igpCFQH~!DpkMW8H3S-2s7WlCvg5pdf zQe9J}oj+fiJ0Dz}NM}&nK{_M073B9rAOIKwSP(IdhvdX}{O2*o6CgZ9aQurP{3f6X z=-_YRNOItXgZTZB62$v^0~iQE+?)Xh6HEIIL~H)-MPJ=!th9nhsho6NiHU$h*5LG1 zQUAj+5lat|?3RxW{v-CHIZZDg8Z??HQOqQ=qV)`qPWUHu^UGNC7~jf}a;lq*B{CK( zI-FicREaNv+USWkd;b!svDQ7Lzk=gUiLAa7Lz0 za>_YGih#6=CNdN!py(rbNj$@U<@k!;!*DXmRzPys3Bu@JQTv;wcanMUEA&10pECvh zr$m->>2>rYCa&L`i5bkXiZi4SrpdE0JKu&eE25dP)O(VG`>@$C2JqaTJ38# zCu&MN#TXCfY@jwu6 zD{CbcJIrRz$7%DL|GWg*cAT(HW7o3_G31<`r+qvQ^cq`S;UE8eWkRz%?K$IfprzYb zb}X93q&gmPw0W+@e0ih$MDz7uXsNZce)uDdbUiBD^-%{!$znp)r(nc#eXu3Ex{nO?MT|F~ix7Gzp ztyx&Lk}&%$vV&*1Xm}tlbzV2B!)zrGZ4mrr*fQRIXkPUr#mUkqJ?-vVS>}yCh06o3 zM<j&{5C4hZ^i5jubq%7BcLV J`}Nfa{s}moGu!|G delta 3393 zcmcImcT^ME7oM4fAfR*wr3FMm>Li2~3q?UxP)d*zr5PzA#elR00-+f}ij+{4WzBKK?H&d(t;=`U8G165cq{%&z}A5|2yxznfra;yEFHkJMY~)8qfVUfjc<@q4-uW zCCUt99!`002$?HJZ37wGKv2$cL!j?<0=LU^3|D}2ZQ;yh1OQZcgFuB72v}MjvPwK! zDHlL~JjV!f0wv`)?*T@5000Cwo{aox&=%y@05kzL0LNI50YCnY=wIT%5i>0S1L$yM z9l#mT0?q=ufGdCn&T#M<4$|h>Bml?JTscFVqiS;IhR?=IEXUg5HvF-i;ldE3fn%aF z=8BvsAqaq}iiRj2rC5{L#VsH=luuRE;85yxnOx8k{k|acm;g3aomY%fCo4gJa`YxL z?0CbCnmqHwY^`ZAIYvq@7{6un4j88HP=P=Yj!dWf+yW!$cS^wv=n#KaC`ve>{mqZt zVFU@oyduF&$*nl?+N&0w`l8Tw`9iVacqToZ1j-n}Qp1x~WA-Z!oi{Gcc@sy_Jrj?sF z9NBPNE2%?O7QCxJ{mO*MUs%uw(6w@?5Mk2Ja-E-5p*{3?;$=y%Z(gOeZ1QXZWsr>u zPPUK$`Rh#ZHW3Sx?0fHxg{5XM(Y(e7F{FYZ-hsoZw%4SFAH~%kPLh-(+FMBF)JKyZ zI|^V7SJz*c%LnX88?O{tB>39&yxqrS>U6QWMV$`&KY>pio4IHc)Q|7J3*8bqVpC>cb(ifu`Pn9rR%GU0vO5MfETPF7Fe$!SK6~+NZ_O{5Sa1}cIm0sj zMa-*^%#4c7fk=U0XT_x7;6o=GLco5B2h5L-u0v`O@w~@<)uWsUYk{qk*GA@wHM4VQ z?6T*t^cx4`jA-E((F(lu0@Ogu(a7rR%RvPvT0Ha9(Fy`EFp!DGeoAe z;r4)ERc$GJ{g>MPEt`jD!_d5FyVWje^5dkEkw=Miyp(k3{a`>Z$PH*)RvA|0Q%+zf4FXsqeH)cb;rDYBX)gSk*ovNR2n(r`pcP}&Vds$Mow)hJvM>Ozj zFtDRLp^oiRP}zLVZyC}vIdx;H@Sfzw+sYWR18kcXZt42#hh!=xp6?>{*C_9MV5+vo z#^;XdSMoN5Nj;c(R74>-I*g9p{o|bRSZ{0eE-p&;BW|6|4KW?Z1Upnd^O|?dMn1o1 z;(c*;Z))wTVt(|qIihmbX`?9p;x5m1d0P0ePv0D4dF9|(cu7aNDBitpPxmM>r1V>w zsjKs9xB*E+YuQ<4Vr*z$Ep~U`GOL50{l!0%Wgd7!PY1t}e#D`btYBT%TX=RTfX%uZkZBre1LJR48((!DF09D`HP`^LnleA zYeZJxD(a(`OWDJTFgF@f*W>fI;({fo1vS4W)2o++O5HAvs4gPV3N6Xa$WYrL1b$(< zxVKc*IN@_||NZxP(In4U9S8SPGc8}cmVjddJS25?t)TWxqgJWyyH0-<*XHq1u=(SG z_1&kR9fF1AJJBNc6a#g`+gB2c_V*bB;?@iCqOR4YT|zH+Jvd_AztaU#ENS>fkZ8Qq ze8oQQ6r7Z2V*Dtud1X(XYakTf(t6)^`w4F`sziHh6!(RoJE|uY*PXwt|1UIZj|8@XOkK-}78I=$;LKaT&K`x#!H8KB`a?01V}% zU=B!Mh$osEpP&?up3a_EvI^$uIko0rH|TysSlICX6iRU+S6Tm&T(9*PrTm{&n!#4) zodKF`;^#r?uU@Uxxn5Zwo@L$8P1c?2S*X?TJBE#o*X z{ou}w*MUf(bE+j3WZF295b&BIt>H$Sh@Nt59~dfV=qW;Kr*v;(#4x}>?yU$jm~`K0OL!Lo#2!xYbYRsRpl7__zRw3m6+euK>%5 z3;aIrF<2}{LsQrOZvy+9fc;_o@6r@)$BP6pDzFmF`}+kD2*BK&8wA;x{5C{B{iRO4 zEZR`D{^1K@6ye=4eMb$5*$4tb1wo)>6*Dtczuo&q!C3H+Zsy7T$!=PVhi?oHYi~7_kd6Do&sd+$lRO))n3JxF09pfPN>}`Ed|^0ske=I zVUqWOKGoj=q+5C|OHeT782pXBD{y4Egm0-OHrhj6FCk?j=+&$;mDUr zG>hR`<>-MJpwvfh*-PrirA5SkjMx0uR#nhJcUDpPNf)XE6Da@sFf4~eTlCQwI%B=r z&a+wZwTf*ap?w!T(^lI*Ck>(Mk5wS+HyV=P{RhZNEs_cWA;F8HxK3LID|VC)*C)GY z2n?0q;;Nt38R;wOBU&+)Dw7@;i2K@{Y}%TfNsrouwb8GnGB1CB&Zg{h>eco>F7f)= zrSIJKMT5%IO3gi2EYyGa5(p{j11ha?xL}KMJ?9Ussa%zRD#Uq097ecTs2l>b*MKlz4q~1k>OUzBepFxkR!NFGbj@-X*rw zIdbg4n}bs82Wiba^)#6jIi`$lQe&TD+D5S<#q;@VP zCTD#hJ&rQn_iC^{>&|_}q?B*Iu{Kr4zu+>*id5o-m{{fJoPHr&TkiR!`zrbm?VB9bl&F2SG*DO72}Up zPxhT}O_OoAHb)w=d#Wg9cZm%TT@HDYuQ#BvX6>{IlkX{{VYTWoXJ!7OX}uZOhs7p# z0*&UUxs-F$U4>U}nbIfk7e19ebXz|zy~R;bK!P<&c9!=J%dxHvu9)iCc4f=-8!Tr-eCpQ-n>>PGDbqOdVw0&}wr zn0Fh3vZ)8y{PVDfhV8+Sup`7Qafv1-U|50+%L2yuvM>l^BXOxA_-#8Qyzn9?`Q)7B zocsHo^E>B$`^{X0zke>`yTE1N{3Mar8Kr(gTg+j7ZG^7Dx7OrZb8i2AvJQOf5#)cw zC|j3PtlR**VvR0oHw-I=VF5%?K?H07HAI329)c)t7=E~CA$D?JCVonZxrLIpK1%NU zm5~80M8hNSDCi&tVnGja5Dy!{z()p*iKTi+wmnOdq>88_L0xjDyQ=cuZ_2HJ5fWe% zB!USxLlVCg*fNtM&Pr?|NwNx}vYaGAGMFI+QsFVMz*cx1o&YPPK{{-M?eHXIKqlDW zDX@bBvcL&XLpD4E&%$$jIVnf*iC6W!qJu{1*#x8gOgETg67Mc3>4Q1&JnVp-kPCUR z3toU1As=3Xm!SY&;pu~gHx6lMB@${kf4(j$F{wpR46i~7ltLMl!)|yDUWYe$Oseb| zH9DP{sAagC86;TE0yiPY2%8NUH?h$>vW|Uyjv6^eKd8j>iR|>EY*k?m6Shdnd~#7v z$P+KGJXdT(b!}bE{=E&2_0w`_aTBqXW z%``_$u-Tmd1&;~^zp$AQ(}Tm!9HBaP$3=|{qgizZ0yJvE2`?}tOkv}Hcp|vfoooAPsi3!KXJ!9e&Mq-n&O(0h9Q8WHUJIKTr&eKyvOG@t z^0@2Q4dTeE^GwaS;_x2$!i=l3LECEy2M=6po#);??i)ohHmBpkO&t%t`(&l~q8r|X zx8QBq1AC!@7hm-Johg`D!IURWsAY$zJX?h>_Eot137x9TYzf_>qMP=>JK%+VupcU+ z3f_fkcn{u(8mNT>a1iR?5Y$5hG{Rx{0Ggl~THpwL2uI-zwu-_W zJSW>whq?y_!M#!$YDNru0>VT!^~#!9vuPrK??`V#%?_h_h27ftrY6vqV zjs0tq;@=x!v2zuBPV1*s{gey}XdntUKs4L~TDTWtxPI!s!Ns`ZkVEQp5~(IYB=azl zwBzdZWgXlP8(|aZAr|5w9ui=2lm1~er@8p8^?5&=~8%H_wD#u9m^<% z=ivn?gL2pp6>tD5p$cB)V;K(DSMde;g{W7gVtLYSRBV!`g&dlwXl<$_eY%TX3Xn|A zWVOWPt;Tfj``wYeTQS}JcXdViZIPGkBSx)md1K3?a^o4wn=6PnI>Bly2&V`)o;Dm~ zfGrU6qa0-4I7zlm1{U&@ z5!TJfoNi<#*)%Om;qF0FF2~#Q@~wZjSiiE|VxRNtL!{oONLg&#EHP_7DwD%G)W9s^ zfm!GHhV^K%Q8p8FCh#AEPEWf|%8FD-o2b_E1Ba?_l*U@apUU#D?Ns>J)~DLXs^K6U zf|sBMYT+=qkGXDdmwQ;@yenJ&jy24?vgBK=KXRJHNps7T8BR@wi;6lb>Zx#3(LjZV zibg7qP|-xiQ7T@h!b?Rn6)jY>QsJZG7!_?)v{TVRg`bL7s5nl=2`Wxf5uoB#Dmtln zjf&T=imtEc6~j8Th2GohayPWqHZ}Xamil^=r1s8q!zp+JPD2m$0tFS`gg!U}XW<<5 u^WK@aKIzl-@JKm)n}+&Td)3?U4xEPpco*J-_u&FC7=$5iue$ilAAbQxVq|~- diff --git a/crates/callback-macros/Cargo.toml b/crates/callback-macros/Cargo.toml index db60d16..8499b14 100644 --- a/crates/callback-macros/Cargo.toml +++ b/crates/callback-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webview2-com-macros" -version = "0.7.0" +version = "0.8.0" edition = "2021" description = "Macros which generate callback implementations for WebView2 COM APIs" repository = "https://github.com/wravery/webview2-rs" @@ -12,6 +12,6 @@ categories = [ "os::windows-apis" ] proc-macro = true [dependencies] -proc-macro2 = "1.0.26" -quote = "1.0.9" -syn = { version = "2.0.13", features = ["full"] } +proc-macro2 = "1.0" +quote = "1.0" +syn = { version = "2.0", features = ["full"] } diff --git a/crates/callback-macros/src/lib.rs b/crates/callback-macros/src/lib.rs index edd455c..49ea6a8 100644 --- a/crates/callback-macros/src/lib.rs +++ b/crates/callback-macros/src/lib.rs @@ -60,6 +60,7 @@ fn impl_completed_callback(ast: &CallbackStruct) -> TokenStream { let vis = &ast.vis; let name = &ast.ident; + let name_impl = format_ident!("{name}_Impl"); let closure = get_closure(name); let interface = &ast.args.interface; let interface = interface @@ -72,7 +73,7 @@ fn impl_completed_callback(ast: &CallbackStruct) -> TokenStream { let arg_1 = &ast.args.arg_1; let arg_2 = &ast.args.arg_2; - let msg = format!("Implementation of [`{}`].", interface.ident); + let msg = format!("Implementation of [`{interface_impl}`]."); let gen = match arg_2 { Some(arg_2) => quote! { @@ -110,7 +111,7 @@ fn impl_completed_callback(ast: &CallbackStruct) -> TokenStream { } #[allow(non_snake_case)] - impl #interface_impl for #name { + impl #interface_impl for #name_impl { fn Invoke<'a>( &self, arg_1: <#arg_1 as InvokeArg<'a>>::Input, @@ -161,7 +162,7 @@ fn impl_completed_callback(ast: &CallbackStruct) -> TokenStream { } #[allow(non_snake_case)] - impl #interface_impl for #name { + impl #interface_impl for #name_impl { fn Invoke<'a>( &self, arg_1: <#arg_1 as InvokeArg<'a>>::Input, @@ -191,6 +192,7 @@ fn impl_event_callback(ast: &CallbackStruct) -> TokenStream { let vis = &ast.vis; let name = &ast.ident; + let name_impl = format_ident!("{name}_Impl"); let closure = get_closure(name); let interface = &ast.args.interface; @@ -208,7 +210,7 @@ fn impl_event_callback(ast: &CallbackStruct) -> TokenStream { .as_ref() .expect("event_callback should always have 2 arguments"); - let msg = format!("Implementation of [`{}`].", interface.ident); + let msg = format!("Implementation of [`{interface_impl}`]."); let gen = quote! { type #closure = EventClosure<#arg_1, #arg_2>; @@ -226,7 +228,7 @@ fn impl_event_callback(ast: &CallbackStruct) -> TokenStream { } #[allow(non_snake_case)] - impl #interface_impl for #name { + impl #interface_impl for #name_impl { fn Invoke<'a>( &self, arg_1: <#arg_1 as InvokeArg<'a>>::Input, @@ -244,5 +246,5 @@ fn impl_event_callback(ast: &CallbackStruct) -> TokenStream { } fn get_closure(name: &Ident) -> Ident { - format_ident!("{}Closure", name) + format_ident!("{name}Closure") } diff --git a/crates/update-bindings/Cargo.toml b/crates/update-bindings/Cargo.toml index cfce630..9696916 100644 --- a/crates/update-bindings/Cargo.toml +++ b/crates/update-bindings/Cargo.toml @@ -5,9 +5,9 @@ edition = "2021" publish = false [dependencies] -regex = "1.5.4" -thiserror = "1.0.26" +regex = "1.0" +thiserror = "1.0" [dependencies.windows-bindgen] -version = "0.57" +version = "0.58" features = [ "metadata" ] diff --git a/crates/update-bindings/src/main.rs b/crates/update-bindings/src/main.rs index f7bbd29..59a841d 100644 --- a/crates/update-bindings/src/main.rs +++ b/crates/update-bindings/src/main.rs @@ -83,7 +83,7 @@ mod webview2_nuget { include!("../../bindings/src/callback_interfaces.rs"); const WEBVIEW2_NAME: &str = "Microsoft.Web.WebView2"; - const WEBVIEW2_VERSION: &str = "1.0.2535.41"; + const WEBVIEW2_VERSION: &str = "1.0.2592.51"; pub fn install() -> super::Result { let out_dir = get_out_dir(); diff --git a/crates/update-bindings/winmd/Microsoft.Web.WebView2.Win32.winmd b/crates/update-bindings/winmd/Microsoft.Web.WebView2.Win32.winmd index 9014e985257f1028d0c27557a314871761d2c398..5c105ef82d3b2de1482005c7835b3767fcfdd547 100644 GIT binary patch delta 290 zcmZqZVQuJPozTJjCTiiv?rtV_HijCDy{T-IWtnApxfmjQ*ppcpxJ*7Wa7}h+4whtN z$X3~#%Eh1&2@>}f{m8(=aL5=WyP0_>BirO$7G)qgk;N299%qpSl22Kt0?BID{pM^8 zy!zK;SQsvrfON6cd}Lr_@a*9OnzM-!#AY(xo65rQ11x)>0;DFO6ezyAknK1lBim+6 zj)jdz3S7nv5MUh0z+ekx@-u8d1Q7`XiZC!RF)%{7K$4N6GI%pjm%=pD$u0ZtEL=R@ zapi`Il6&?S_c3sssTTf!R`+fo6C0nDA%hWv8G{~!0T3H8m@-%bNj(PB?THGE^Hl*A C3QBnZ delta 290 zcmZqZVQuJPozTJjk1um$cQ+F|7ekH3-c+v1vdpr)Yz&b-?8z()TqYkG*e1I(2TO7> zWUK5=Wn<8Y1c`f#eq>-_IAjcx-ORj`k!x};i!zX$$YKg4kF&@E$)_w+fn+u7eseAc zUj6GaEDRS*K)P6JJ~D7Ic=qrC&Dq2VVl$cUO=V&D0hT>b0a6oC3KZX5$ab8Ok!!Oh z$HGRV=bV}h5MUh0z`(@72<0&VS(U*cjuj9KG062pB*FqW^K>apGyR*rk?rBpNj_5& vQWXUkpNnDOI8!bB|E%uaKqfXmDMJP$22%z-1_K}lv5dhylkJHLjPq3iX$eTh diff --git a/crates/webview2-com/Cargo.toml b/crates/webview2-com/Cargo.toml index 99ccd9a..b603f4e 100644 --- a/crates/webview2-com/Cargo.toml +++ b/crates/webview2-com/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "webview2-com" -version = "0.31.0" +version = "0.32.0" edition = "2021" rust-version = "1.61" description = "Rust bindings for the WebView2 COM APIs" @@ -19,23 +19,23 @@ targets = [ ] [dependencies] -webview2-com-sys = "0.31.0" -webview2-com-macros = "0.7.0" -windows-core = "0.57" -windows-implement = "0.57" -windows-interface = "0.57" +webview2-com-sys = "0.32" +webview2-com-macros = "0.8" +windows-core = "0.58" +windows-implement = "0.58" +windows-interface = "0.58" [dependencies.windows] -version = "0.57" +version = "0.58" features = [ "implement" ] [dev-dependencies] -regex = "1.5.4" +regex = "1.0" serde = { version = "1.0", features = [ "derive" ] } serde_json = "1.0" [dev-dependencies.windows] -version = "0.57" +version = "0.58" features = [ "Win32_Graphics_Gdi", "Win32_System_LibraryLoader", diff --git a/crates/webview2-com/examples/sample.rs b/crates/webview2-com/examples/sample.rs index b8533a3..e998b7a 100644 --- a/crates/webview2-com/examples/sample.rs +++ b/crates/webview2-com/examples/sample.rs @@ -150,7 +150,7 @@ impl FrameWindow { }; FrameWindow { - window: Rc::new(hwnd), + window: Rc::new(hwnd.unwrap_or_default()), size: Rc::new(RefCell::new(SIZE { cx: 0, cy: 0 })), } } @@ -355,7 +355,7 @@ impl WebView { unsafe { let _ = WindowsAndMessaging::ShowWindow(hwnd, WindowsAndMessaging::SW_SHOW); let _ = Gdi::UpdateWindow(hwnd); - KeyboardAndMouse::SetFocus(hwnd); + let _ = KeyboardAndMouse::SetFocus(hwnd); } } diff --git a/crates/webview2-com/src/options.rs b/crates/webview2-com/src/options.rs index 099c5d9..4b9eda5 100644 --- a/crates/webview2-com/src/options.rs +++ b/crates/webview2-com/src/options.rs @@ -222,7 +222,7 @@ impl CoreWebView2EnvironmentOptions { } #[allow(clippy::not_unsafe_ptr_arg_deref)] -impl ICoreWebView2EnvironmentOptions_Impl for CoreWebView2EnvironmentOptions { +impl ICoreWebView2EnvironmentOptions_Impl for CoreWebView2EnvironmentOptions_Impl { fn AdditionalBrowserArguments(&self, result: *mut PWSTR) -> Result<()> { if result.is_null() { E_POINTER.ok() @@ -283,7 +283,7 @@ impl ICoreWebView2EnvironmentOptions_Impl for CoreWebView2EnvironmentOptions { } #[allow(clippy::not_unsafe_ptr_arg_deref)] -impl ICoreWebView2EnvironmentOptions2_Impl for CoreWebView2EnvironmentOptions { +impl ICoreWebView2EnvironmentOptions2_Impl for CoreWebView2EnvironmentOptions_Impl { fn ExclusiveUserDataFolderAccess(&self, result: *mut BOOL) -> Result<()> { if result.is_null() { E_POINTER.ok() @@ -302,7 +302,7 @@ impl ICoreWebView2EnvironmentOptions2_Impl for CoreWebView2EnvironmentOptions { } #[allow(clippy::not_unsafe_ptr_arg_deref)] -impl ICoreWebView2EnvironmentOptions3_Impl for CoreWebView2EnvironmentOptions { +impl ICoreWebView2EnvironmentOptions3_Impl for CoreWebView2EnvironmentOptions_Impl { fn IsCustomCrashReportingEnabled(&self, result: *mut BOOL) -> Result<()> { if result.is_null() { E_POINTER.ok() @@ -340,7 +340,7 @@ pub unsafe trait IFixedEnvironmentOptions4: IUnknown { } #[allow(clippy::not_unsafe_ptr_arg_deref)] -impl IFixedEnvironmentOptions4_Impl for CoreWebView2EnvironmentOptions { +impl IFixedEnvironmentOptions4_Impl for CoreWebView2EnvironmentOptions_Impl { #[allow(clippy::crosspointer_transmute)] unsafe fn GetCustomSchemeRegistrations( &self, @@ -354,9 +354,9 @@ impl IFixedEnvironmentOptions4_Impl for CoreWebView2EnvironmentOptions { if let Ok(length) = scheme_registrations.len().try_into() { *count = length; if !scheme_registrations.is_empty() { - *results = mem::transmute(CoTaskMemAlloc( + *results = CoTaskMemAlloc( mem::size_of::<*mut c_void>() * (*scheme_registrations).len(), - )); + ) as *mut *mut _; let results = ptr::slice_from_raw_parts_mut(*results, scheme_registrations.len()); for (i, scheme) in scheme_registrations.iter().enumerate() { @@ -489,7 +489,7 @@ impl CoreWebView2CustomSchemeRegistration { } #[allow(clippy::not_unsafe_ptr_arg_deref)] -impl ICoreWebView2CustomSchemeRegistration_Impl for CoreWebView2CustomSchemeRegistration { +impl ICoreWebView2CustomSchemeRegistration_Impl for CoreWebView2CustomSchemeRegistration_Impl { fn SchemeName(&self, result: *mut PWSTR) -> Result<()> { if result.is_null() { E_POINTER.ok() @@ -523,9 +523,8 @@ impl ICoreWebView2CustomSchemeRegistration_Impl for CoreWebView2CustomSchemeRegi .try_into() .map_err(|_| Error::from(E_UNEXPECTED))?; if !allowed_origins.is_empty() { - *results = mem::transmute(CoTaskMemAlloc( - mem::size_of::<*mut PWSTR>() * (*allowed_origins).len(), - )); + *results = CoTaskMemAlloc(mem::size_of::<*mut PWSTR>() * (*allowed_origins).len()) + as *mut _; let results = ptr::slice_from_raw_parts_mut(*results, allowed_origins.len()); for (i, scheme) in allowed_origins.iter().enumerate() { (*results)[i] = pwstr_from_str(scheme); diff --git a/crates/webview2-com/src/pwstr.rs b/crates/webview2-com/src/pwstr.rs index e224c7c..798f7de 100644 --- a/crates/webview2-com/src/pwstr.rs +++ b/crates/webview2-com/src/pwstr.rs @@ -64,7 +64,7 @@ impl<'a> Drop for CoTaskMemPWSTR<'a> { fn drop(&mut self) { if !self.0.is_null() { unsafe { - Com::CoTaskMemFree(Some(mem::transmute(self.0.as_ptr()))); + Com::CoTaskMemFree(Some(self.0.as_ptr() as *mut _ as *const _)); } } }