← Back to context Comment by garaetjjte 3 days ago Looks fine to me, if you're avoiding wrappers like ManuallyDrop/MaybeUninit. 1 comment garaetjjte Reply piker 3 days ago Actually the `windows-rs` team weighed in:impl IRibbonExtensibility_Impl for Addin_Impl { unsafe fn GetCustomUI( &self, _ribbon_id: windows::core::Ref<BSTR>, out: windows::core::OutRef<BSTR>, ) -> HRESULT { log("GetCustomUI called()"); if out.is_null() || out.write(BSTR::from(RIBBON_XML)).is_err() { return E_POINTER; }; S_OK } }https://github.com/microsoft/windows-rs/issues/3832Thanks for pushing on the issue! I've updated the blog post for GetCustomUI.
piker 3 days ago Actually the `windows-rs` team weighed in:impl IRibbonExtensibility_Impl for Addin_Impl { unsafe fn GetCustomUI( &self, _ribbon_id: windows::core::Ref<BSTR>, out: windows::core::OutRef<BSTR>, ) -> HRESULT { log("GetCustomUI called()"); if out.is_null() || out.write(BSTR::from(RIBBON_XML)).is_err() { return E_POINTER; }; S_OK } }https://github.com/microsoft/windows-rs/issues/3832Thanks for pushing on the issue! I've updated the blog post for GetCustomUI.
Actually the `windows-rs` team weighed in:
impl IRibbonExtensibility_Impl for Addin_Impl {
}
https://github.com/microsoft/windows-rs/issues/3832
Thanks for pushing on the issue! I've updated the blog post for GetCustomUI.