// ------------------------------------------------------------------------------ // <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("3050F32D-98B5-11CF-BB82-00AA00BDCE0B")] [CLSCompliant(false)] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct IHTMLEventObj :winmdroot.IVTable<IHTMLEventObj,IHTMLEventObj.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]<IHTMLEventObj*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IHTMLEventObj*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint>)lpVtbl[1])((IHTMLEventObj*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint>)lpVtbl[2])((IHTMLEventObj*)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]<IHTMLEventObj*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IHTMLEventObj*)Unsafe.AsPointer(ref this), pctinfo).ThrowOnFailure(); } public unsafe void GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo) { ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IHTMLEventObj*)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]<IHTMLEventObj*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IHTMLEventObj*)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]<IHTMLEventObj*,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])((IHTMLEventObj*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_srcElement(IHTMLEventObj* pThis, winmdroot.Web.MsHtml.IHTMLElement** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.srcElement; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLElement* srcElement { get { winmdroot.Web.MsHtml.IHTMLElement* __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Web.MsHtml.IHTMLElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_altKey(IHTMLEventObj* pThis, winmdroot.Foundation.VARIANT_BOOL* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.altKey; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.VARIANT_BOOL altKey { get { winmdroot.Foundation.VARIANT_BOOL __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_ctrlKey(IHTMLEventObj* pThis, winmdroot.Foundation.VARIANT_BOOL* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.ctrlKey; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.VARIANT_BOOL ctrlKey { get { winmdroot.Foundation.VARIANT_BOOL __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_shiftKey(IHTMLEventObj* pThis, winmdroot.Foundation.VARIANT_BOOL* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.shiftKey; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.VARIANT_BOOL shiftKey { get { winmdroot.Foundation.VARIANT_BOOL __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_returnValue(IHTMLEventObj* pThis, winmdroot.System.Variant.VARIANT v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.returnValue = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.System.Variant.VARIANT returnValue { set { ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IHTMLEventObj*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.System.Variant.VARIANT __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_returnValue(IHTMLEventObj* 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.returnValue; 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 put_cancelBubble(IHTMLEventObj* pThis, winmdroot.Foundation.VARIANT_BOOL v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.cancelBubble = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.VARIANT_BOOL cancelBubble { set { ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IHTMLEventObj*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.VARIANT_BOOL __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_cancelBubble(IHTMLEventObj* pThis, winmdroot.Foundation.VARIANT_BOOL* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.cancelBubble; 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_fromElement(IHTMLEventObj* pThis, winmdroot.Web.MsHtml.IHTMLElement** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.fromElement; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLElement* fromElement { get { winmdroot.Web.MsHtml.IHTMLElement* __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Web.MsHtml.IHTMLElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_toElement(IHTMLEventObj* pThis, winmdroot.Web.MsHtml.IHTMLElement** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.toElement; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLElement* toElement { get { winmdroot.Web.MsHtml.IHTMLElement* __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Web.MsHtml.IHTMLElement** ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_keyCode(IHTMLEventObj* pThis, int v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.keyCode = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int keyCode { set { ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IHTMLEventObj*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_keyCode(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.keyCode; 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_button(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.button; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int button { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_type(IHTMLEventObj* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.type; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR type { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_qualifier(IHTMLEventObj* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.qualifier; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR qualifier { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[21])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_reason(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.reason; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int reason { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_x(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.x; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int x { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_y(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.y; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int y { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[24])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_clientX(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.clientX; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int clientX { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[25])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_clientY(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.clientY; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int clientY { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_offsetX(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.offsetX; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int offsetX { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[27])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_offsetY(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.offsetY; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int offsetY { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[28])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_screenX(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.screenX; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int screenX { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[29])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_screenY(IHTMLEventObj* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.screenY; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int screenY { get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[30])((IHTMLEventObj*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_srcFilter(IHTMLEventObj* 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.srcFilter; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.System.Com.IDispatch* srcFilter { get { winmdroot.System.Com.IDispatch* __result; ((delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT>)lpVtbl[31])((IHTMLEventObj*)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]<IHTMLEventObj*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint> Release_3; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,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]<IHTMLEventObj*,winmdroot.Web.MsHtml.IHTMLElement** ,winmdroot.Foundation.HRESULT> get_srcElement_8; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> get_altKey_9; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> get_ctrlKey_10; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> get_shiftKey_11; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT> put_returnValue_12; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> get_returnValue_13; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL ,winmdroot.Foundation.HRESULT> put_cancelBubble_14; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> get_cancelBubble_15; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Web.MsHtml.IHTMLElement** ,winmdroot.Foundation.HRESULT> get_fromElement_16; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Web.MsHtml.IHTMLElement** ,winmdroot.Foundation.HRESULT> get_toElement_17; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int ,winmdroot.Foundation.HRESULT> put_keyCode_18; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_keyCode_19; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_button_20; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_type_21; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_qualifier_22; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_reason_23; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_x_24; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_y_25; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_clientX_26; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_clientY_27; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_offsetX_28; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_offsetY_29; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_screenX_30; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,int* ,winmdroot.Foundation.HRESULT> get_screenY_31; internal delegate *unmanaged [Stdcall]<IHTMLEventObj*,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT> get_srcFilter_32; } public static void PopulateVTable(Vtbl* vtable) { vtable->get_srcElement_8 = &get_srcElement; vtable->get_altKey_9 = &get_altKey; vtable->get_ctrlKey_10 = &get_ctrlKey; vtable->get_shiftKey_11 = &get_shiftKey; vtable->put_returnValue_12 = &put_returnValue; vtable->get_returnValue_13 = &get_returnValue; vtable->put_cancelBubble_14 = &put_cancelBubble; vtable->get_cancelBubble_15 = &get_cancelBubble; vtable->get_fromElement_16 = &get_fromElement; vtable->get_toElement_17 = &get_toElement; vtable->put_keyCode_18 = &put_keyCode; vtable->get_keyCode_19 = &get_keyCode; vtable->get_button_20 = &get_button; vtable->get_type_21 = &get_type; vtable->get_qualifier_22 = &get_qualifier; vtable->get_reason_23 = &get_reason; vtable->get_x_24 = &get_x; vtable->get_y_25 = &get_y; vtable->get_clientX_26 = &get_clientX; vtable->get_clientY_27 = &get_clientY; vtable->get_offsetX_28 = &get_offsetX; vtable->get_offsetY_29 = &get_offsetY; vtable->get_screenX_30 = &get_screenX; vtable->get_screenY_31 = &get_screenY; vtable->get_srcFilter_32 = &get_srcFilter; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{3050f32d-98b5-11cf-bb82-00aa00bdce0b}</value> internal static readonly Guid IID_Guid = new Guid(0x3050F32D, 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[] { 0x2D,0xF3,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("3050F32D-98B5-11CF-BB82-00AA00BDCE0B"),InterfaceType(ComInterfaceType.InterfaceIsDual),ComImport()] internal interface Interface { unsafe winmdroot.Web.MsHtml.IHTMLElement* srcElement { get; } winmdroot.Foundation.VARIANT_BOOL altKey { get; } winmdroot.Foundation.VARIANT_BOOL ctrlKey { get; } winmdroot.Foundation.VARIANT_BOOL shiftKey { get; } winmdroot.System.Variant.VARIANT returnValue { set; get; } winmdroot.Foundation.VARIANT_BOOL cancelBubble { set; get; } unsafe winmdroot.Web.MsHtml.IHTMLElement* fromElement { get; } unsafe winmdroot.Web.MsHtml.IHTMLElement* toElement { get; } int keyCode { set; get; } int button { get; } winmdroot.Foundation.BSTR type { get; } winmdroot.Foundation.BSTR qualifier { get; } int reason { get; } int x { get; } int y { get; } int clientX { get; } int clientY { get; } int offsetX { get; } int offsetY { get; } int screenX { get; } int screenY { get; } unsafe winmdroot.System.Com.IDispatch* srcFilter { get; } } } } }