// ------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ------------------------------------------------------------------------------ #pragma warning disable CS1591,CS1573,CS0465,CS0649,CS8019,CS1570,CS1584,CS1658,CS0436,CS8981,SYSLIB1092,CS3021,CS3019 using global::System; using global::System.Diagnostics; using global::System.Diagnostics.CodeAnalysis; using global::System.Runtime.CompilerServices; using global::System.Runtime.InteropServices; using global::System.Runtime.Versioning; using winmdroot = global::Windows.Win32; namespace Windows.Win32 { namespace Web.MsHtml { [Guid("3050F69A-98B5-11CF-BB82-00AA00BDCE0B")] [CLSCompliant(false)] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct IHTMLDocument4 :winmdroot.IVTable<IHTMLDocument4,IHTMLDocument4.Vtbl>,IComIID { /// <inheritdoc cref="QueryInterface(global::System.Guid*, void**)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT QueryInterface(in global::System.Guid riid, out void* ppvObject) { fixed (void** ppvObjectLocal = &ppvObject) { fixed (global::System.Guid* riidLocal = &riid) { winmdroot.Foundation.HRESULT __result = this.QueryInterface(riidLocal, ppvObjectLocal); return __result; } } } public unsafe winmdroot.Foundation.HRESULT QueryInterface(global::System.Guid* riid, void** ppvObject) { return ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IHTMLDocument4*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint>)lpVtbl[1])((IHTMLDocument4*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint>)lpVtbl[2])((IHTMLDocument4*)Unsafe.AsPointer(ref this)); } /// <inheritdoc cref="GetTypeInfoCount(uint*)"/> [OverloadResolutionPriority(1)] internal unsafe void GetTypeInfoCount(out uint pctinfo) { fixed (uint* pctinfoLocal = &pctinfo) { this.GetTypeInfoCount(pctinfoLocal); } } public unsafe void GetTypeInfoCount(uint* pctinfo) { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IHTMLDocument4*)Unsafe.AsPointer(ref this), pctinfo).ThrowOnFailure(); } public unsafe void GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo) { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IHTMLDocument4*)Unsafe.AsPointer(ref this), iTInfo, lcid, ppTInfo).ThrowOnFailure(); } /// <inheritdoc cref="GetIDsOfNames(global::System.Guid*, winmdroot.Foundation.PWSTR*, uint, uint, int*)"/> internal unsafe void GetIDsOfNames(in global::System.Guid riid, ReadOnlySpan<winmdroot.Foundation.PWSTR> rgszNames, uint lcid, Span<int> rgDispId) { fixed (int* rgDispIdLocal = rgDispId) { fixed (winmdroot.Foundation.PWSTR* rgszNamesLocal = rgszNames) { fixed (global::System.Guid* riidLocal = &riid) { if (!rgszNames.IsEmpty && !rgDispId.IsEmpty && rgszNames.Length != rgDispId.Length) throw new ArgumentException(); this.GetIDsOfNames(riidLocal, rgszNamesLocal, (uint )(rgDispId.IsEmpty ? rgszNames.Length : rgDispId.Length), lcid, rgDispIdLocal); } } } } public unsafe void GetIDsOfNames(global::System.Guid* riid, winmdroot.Foundation.PWSTR* rgszNames, uint cNames, uint lcid, int* rgDispId) { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IHTMLDocument4*)Unsafe.AsPointer(ref this), riid, rgszNames, cNames, lcid, rgDispId).ThrowOnFailure(); } /// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, uint*)"/> [OverloadResolutionPriority(1)] internal unsafe void Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams, out winmdroot.System.Variant.VARIANT pVarResult, out winmdroot.System.Com.EXCEPINFO pExcepInfo, out uint puArgErr) { fixed (uint* puArgErrLocal = &puArgErr) { fixed (winmdroot.System.Com.EXCEPINFO* pExcepInfoLocal = &pExcepInfo) { fixed (winmdroot.System.Variant.VARIANT* pVarResultLocal = &pVarResult) { fixed (winmdroot.System.Com.DISPPARAMS* pDispParamsLocal = &pDispParams) { fixed (global::System.Guid* riidLocal = &riid) { this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, pVarResultLocal, pExcepInfoLocal, puArgErrLocal); } } } } } } /// <inheritdoc cref="Invoke(int, global::System.Guid*, uint, winmdroot.System.Com.DISPATCH_FLAGS, winmdroot.System.Com.DISPPARAMS*, winmdroot.System.Variant.VARIANT*, winmdroot.System.Com.EXCEPINFO*, uint*)"/> internal unsafe void Invoke(int dispIdMember, in global::System.Guid riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, in winmdroot.System.Com.DISPPARAMS pDispParams) { fixed (winmdroot.System.Com.DISPPARAMS* pDispParamsLocal = &pDispParams) { fixed (global::System.Guid* riidLocal = &riid) { this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, default(winmdroot.System.Variant.VARIANT* ), default(winmdroot.System.Com.EXCEPINFO* ), default(uint* )); } } } public unsafe void Invoke(int dispIdMember, global::System.Guid* riid, uint lcid, winmdroot.System.Com.DISPATCH_FLAGS wFlags, winmdroot.System.Com.DISPPARAMS* pDispParams, [Optional] winmdroot.System.Variant.VARIANT* pVarResult, [Optional] winmdroot.System.Com.EXCEPINFO* pExcepInfo, [Optional] uint* puArgErr) { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IHTMLDocument4*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT focus(IHTMLDocument4* pThis) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.focus(); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public winmdroot.Foundation.HRESULT focus() { return ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IHTMLDocument4*)Unsafe.AsPointer(ref this)); } /// <inheritdoc cref="hasFocus(winmdroot.Foundation.VARIANT_BOOL*)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT hasFocus(out winmdroot.Foundation.VARIANT_BOOL pfFocus) { fixed (winmdroot.Foundation.VARIANT_BOOL* pfFocusLocal = &pfFocus) { winmdroot.Foundation.HRESULT __result = this.hasFocus(pfFocusLocal); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT hasFocus(IHTMLDocument4* pThis, winmdroot.Foundation.VARIANT_BOOL* pfFocus) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.hasFocus(pfFocus); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.Foundation.HRESULT hasFocus(winmdroot.Foundation.VARIANT_BOOL* pfFocus) { return ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IHTMLDocument4*)Unsafe.AsPointer(ref this), pfFocus); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_onselectionchange(IHTMLDocument4* pThis, winmdroot.System.Variant.VARIANT v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.onselectionchange = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.System.Variant.VARIANT onselectionchange { set { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IHTMLDocument4*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.System.Variant.VARIANT __result; ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IHTMLDocument4*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_onselectionchange(IHTMLDocument4* pThis, winmdroot.System.Variant.VARIANT* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.onselectionchange; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_namespaces(IHTMLDocument4* pThis, winmdroot.System.Com.IDispatch** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.namespaces; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.System.Com.IDispatch* namespaces { get { winmdroot.System.Com.IDispatch* __result; ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IHTMLDocument4*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT createDocumentFromUrl(IHTMLDocument4* pThis, winmdroot.Foundation.BSTR bstrUrl, winmdroot.Foundation.BSTR bstrOptions, winmdroot.Web.MsHtml.IHTMLDocument2** newDoc) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.createDocumentFromUrl(bstrUrl, bstrOptions, newDoc); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.Web.MsHtml.IHTMLDocument2* createDocumentFromUrl(winmdroot.Foundation.BSTR bstrUrl, winmdroot.Foundation.BSTR bstrOptions) { winmdroot.Web.MsHtml.IHTMLDocument2* __retVal = default(winmdroot.Web.MsHtml.IHTMLDocument2*); ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.BSTR ,winmdroot.Web.MsHtml.IHTMLDocument2** ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IHTMLDocument4*)Unsafe.AsPointer(ref this), bstrUrl, bstrOptions, &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_media(IHTMLDocument4* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.media = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR media { set { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IHTMLDocument4*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IHTMLDocument4*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_media(IHTMLDocument4* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.media; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <inheritdoc cref="createEventObject(winmdroot.System.Variant.VARIANT*)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Web.MsHtml.IHTMLEventObj* createEventObject(in winmdroot.System.Variant.VARIANT pvarEventObject) { fixed (winmdroot.System.Variant.VARIANT* pvarEventObjectLocal = &pvarEventObject) { winmdroot.Web.MsHtml.IHTMLEventObj* __result = this.createEventObject(pvarEventObjectLocal); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT createEventObject(IHTMLDocument4* pThis, winmdroot.System.Variant.VARIANT* pvarEventObject, winmdroot.Web.MsHtml.IHTMLEventObj** ppEventObj) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.createEventObject(pvarEventObject, ppEventObj); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.Web.MsHtml.IHTMLEventObj* createEventObject(winmdroot.System.Variant.VARIANT* pvarEventObject) { winmdroot.Web.MsHtml.IHTMLEventObj* __retVal = default(winmdroot.Web.MsHtml.IHTMLEventObj*); ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT* ,winmdroot.Web.MsHtml.IHTMLEventObj** ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IHTMLDocument4*)Unsafe.AsPointer(ref this), pvarEventObject, &__retVal).ThrowOnFailure(); return __retVal; } /// <inheritdoc cref="fireEvent(winmdroot.Foundation.BSTR, winmdroot.System.Variant.VARIANT*, winmdroot.Foundation.VARIANT_BOOL*)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT fireEvent(winmdroot.Foundation.BSTR bstrEventName, in winmdroot.System.Variant.VARIANT pvarEventObject, out winmdroot.Foundation.VARIANT_BOOL pfCancelled) { fixed (winmdroot.Foundation.VARIANT_BOOL* pfCancelledLocal = &pfCancelled) { fixed (winmdroot.System.Variant.VARIANT* pvarEventObjectLocal = &pvarEventObject) { winmdroot.Foundation.HRESULT __result = this.fireEvent(bstrEventName, pvarEventObjectLocal, pfCancelledLocal); return __result; } } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT fireEvent(IHTMLDocument4* pThis, winmdroot.Foundation.BSTR bstrEventName, winmdroot.System.Variant.VARIANT* pvarEventObject, winmdroot.Foundation.VARIANT_BOOL* pfCancelled) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.fireEvent(bstrEventName, pvarEventObject, pfCancelled); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.Foundation.HRESULT fireEvent(winmdroot.Foundation.BSTR bstrEventName, winmdroot.System.Variant.VARIANT* pvarEventObject, winmdroot.Foundation.VARIANT_BOOL* pfCancelled) { return ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IHTMLDocument4*)Unsafe.AsPointer(ref this), bstrEventName, pvarEventObject, pfCancelled); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT createRenderStyle(IHTMLDocument4* pThis, winmdroot.Foundation.BSTR v, winmdroot.Web.MsHtml.IHTMLRenderStyle** ppIHTMLRenderStyle) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.createRenderStyle(v, ppIHTMLRenderStyle); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.Web.MsHtml.IHTMLRenderStyle* createRenderStyle(winmdroot.Foundation.BSTR v) { winmdroot.Web.MsHtml.IHTMLRenderStyle* __retVal = default(winmdroot.Web.MsHtml.IHTMLRenderStyle*); ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.Web.MsHtml.IHTMLRenderStyle** ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IHTMLDocument4*)Unsafe.AsPointer(ref this), v, &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_oncontrolselect(IHTMLDocument4* pThis, winmdroot.System.Variant.VARIANT v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.oncontrolselect = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.System.Variant.VARIANT oncontrolselect { set { ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IHTMLDocument4*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.System.Variant.VARIANT __result; ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IHTMLDocument4*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_oncontrolselect(IHTMLDocument4* pThis, winmdroot.System.Variant.VARIANT* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.oncontrolselect; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_URLUnencoded(IHTMLDocument4* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.URLUnencoded; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR URLUnencoded { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IHTMLDocument4*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } internal unsafe global::Windows.Win32.Foundation.HRESULT QueryInterface<T>(out T* ppv) where T : unmanaged { Guid guid = typeof(T).GUID; void* pv; var hr = this.QueryInterface(&guid, &pv); if (hr.Succeeded) { ppv = (T*)pv; } else { ppv = null; } return hr; } internal struct Vtbl { internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint> Release_3; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,int ,global::System.Guid* ,uint ,winmdroot.System.Com.DISPATCH_FLAGS ,winmdroot.System.Com.DISPPARAMS* ,winmdroot.System.Variant.VARIANT* ,winmdroot.System.Com.EXCEPINFO* ,uint* ,winmdroot.Foundation.HRESULT> Invoke_7; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.HRESULT> focus_8; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> hasFocus_9; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT> put_onselectionchange_10; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> get_onselectionchange_11; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT> get_namespaces_12; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.BSTR ,winmdroot.Web.MsHtml.IHTMLDocument2** ,winmdroot.Foundation.HRESULT> createDocumentFromUrl_13; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_media_14; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_media_15; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT* ,winmdroot.Web.MsHtml.IHTMLEventObj** ,winmdroot.Foundation.HRESULT> createEventObject_16; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> fireEvent_17; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR ,winmdroot.Web.MsHtml.IHTMLRenderStyle** ,winmdroot.Foundation.HRESULT> createRenderStyle_18; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT> put_oncontrolselect_19; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> get_oncontrolselect_20; internal delegate *unmanaged [Stdcall]<IHTMLDocument4*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_URLUnencoded_21; } public static void PopulateVTable(Vtbl* vtable) { vtable->focus_8 = &focus; vtable->hasFocus_9 = &hasFocus; vtable->put_onselectionchange_10 = &put_onselectionchange; vtable->get_onselectionchange_11 = &get_onselectionchange; vtable->get_namespaces_12 = &get_namespaces; vtable->createDocumentFromUrl_13 = &createDocumentFromUrl; vtable->put_media_14 = &put_media; vtable->get_media_15 = &get_media; vtable->createEventObject_16 = &createEventObject; vtable->fireEvent_17 = &fireEvent; vtable->createRenderStyle_18 = &createRenderStyle; vtable->put_oncontrolselect_19 = &put_oncontrolselect; vtable->get_oncontrolselect_20 = &get_oncontrolselect; vtable->get_URLUnencoded_21 = &get_URLUnencoded; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{3050f69a-98b5-11cf-bb82-00aa00bdce0b}</value> internal static readonly Guid IID_Guid = new Guid(0x3050F69A, 0x98B5, 0x11CF, 0xBB, 0x82, 0x00, 0xAA, 0x00, 0xBD, 0xCE, 0x0B); static ref readonly Guid IComIID.Guid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan<byte> data = new byte[] { 0x9A,0xF6,0x50,0x30,0xB5,0x98,0xCF,0x11,0xBB,0x82,0x00,0xAA,0x00,0xBD,0xCE,0x0B }; return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data)); } } [Guid("3050F69A-98B5-11CF-BB82-00AA00BDCE0B"),InterfaceType(ComInterfaceType.InterfaceIsDual),ComImport()] internal interface Interface { [PreserveSig()] winmdroot.Foundation.HRESULT focus(); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT hasFocus(winmdroot.Foundation.VARIANT_BOOL* pfFocus); winmdroot.System.Variant.VARIANT onselectionchange { set; get; } unsafe winmdroot.System.Com.IDispatch* namespaces { get; } [PreserveSig()] unsafe winmdroot.Foundation.HRESULT createDocumentFromUrl(winmdroot.Foundation.BSTR bstrUrl, winmdroot.Foundation.BSTR bstrOptions, winmdroot.Web.MsHtml.IHTMLDocument2** newDoc); winmdroot.Foundation.BSTR media { set; get; } [PreserveSig()] unsafe winmdroot.Foundation.HRESULT createEventObject(winmdroot.System.Variant.VARIANT* pvarEventObject, winmdroot.Web.MsHtml.IHTMLEventObj** ppEventObj); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT fireEvent(winmdroot.Foundation.BSTR bstrEventName, winmdroot.System.Variant.VARIANT* pvarEventObject, winmdroot.Foundation.VARIANT_BOOL* pfCancelled); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT createRenderStyle(winmdroot.Foundation.BSTR v, winmdroot.Web.MsHtml.IHTMLRenderStyle** ppIHTMLRenderStyle); winmdroot.System.Variant.VARIANT oncontrolselect { set; get; } winmdroot.Foundation.BSTR URLUnencoded { get; } } } } }