(no title)
garaetjjte | 2 months ago
Probably because the COM "intended" way is to generate them from type library. Type library for these interfaces is embedded in Office MSO.DLL. You can use oleview.exe from Windows SDK to convert them to IDL syntax. This yields such signature:
HRESULT GetCustomUI(
[in] BSTR RibbonID,
[out, retval] BSTR* RibbonXml);
And then you can use MIDL tool to generate C headers: DECLSPEC_XFGVIRT(IRibbonExtensibility, GetCustomUI)
/* [helpcontext][id] */ HRESULT ( STDMETHODCALLTYPE *GetCustomUI )(
IRibbonExtensibility * This,
/* [in] */ BSTR RibbonID,
/* [retval][out] */ BSTR *RibbonXml);
https://learn.microsoft.com/en-us/windows/win32/com/how-deve...
piker|2 months ago