// ------------------------------------------------------------------------------ // <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("3050F1F7-98B5-11CF-BB82-00AA00BDCE0B")] [CLSCompliant(false)] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct IHTMLFormElement :winmdroot.IVTable<IHTMLFormElement,IHTMLFormElement.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]<IHTMLFormElement*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IHTMLFormElement*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint>)lpVtbl[1])((IHTMLFormElement*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint>)lpVtbl[2])((IHTMLFormElement*)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]<IHTMLFormElement*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IHTMLFormElement*)Unsafe.AsPointer(ref this), pctinfo).ThrowOnFailure(); } public unsafe void GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo) { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IHTMLFormElement*)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]<IHTMLFormElement*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IHTMLFormElement*)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]<IHTMLFormElement*,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])((IHTMLFormElement*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_action(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.action = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR action { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_action(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.action; 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_dir(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.dir = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR dir { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_dir(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.dir; 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_encoding(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.encoding = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR encoding { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_encoding(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.encoding; 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_method(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.method = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR method { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_method(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.method; 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_elements(IHTMLFormElement* 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.elements; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.System.Com.IDispatch* elements { get { winmdroot.System.Com.IDispatch* __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_target(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.target = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR target { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_target(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.target; 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_name(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.name = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR name { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_name(IHTMLFormElement* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.name; 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_onsubmit(IHTMLFormElement* pThis, winmdroot.System.Variant.VARIANT v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.onsubmit = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.System.Variant.VARIANT onsubmit { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.System.Variant.VARIANT __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[21])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_onsubmit(IHTMLFormElement* 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.onsubmit; 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_onreset(IHTMLFormElement* pThis, winmdroot.System.Variant.VARIANT v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.onreset = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.System.Variant.VARIANT onreset { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { winmdroot.System.Variant.VARIANT __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_onreset(IHTMLFormElement* 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.onreset; 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 submit(IHTMLFormElement* pThis) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.submit(); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public void submit() { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.HRESULT>)lpVtbl[24])((IHTMLFormElement*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT reset(IHTMLFormElement* pThis) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.reset(); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public void reset() { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.HRESULT>)lpVtbl[25])((IHTMLFormElement*)Unsafe.AsPointer(ref this)).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT put_length(IHTMLFormElement* pThis, int v) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } __object.length = v; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int length { set { ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,int ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IHTMLFormElement*)Unsafe.AsPointer(ref this), value).ThrowOnFailure(); } get { int __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[27])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_length(IHTMLFormElement* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.length; 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__newEnum(IHTMLFormElement* pThis, winmdroot.System.Com.IUnknown** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object._newEnum; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.System.Com.IUnknown* _newEnum { get { winmdroot.System.Com.IUnknown* __result; ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Com.IUnknown** ,winmdroot.Foundation.HRESULT>)lpVtbl[28])((IHTMLFormElement*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT item(IHTMLFormElement* pThis, winmdroot.System.Variant.VARIANT name, winmdroot.System.Variant.VARIANT index, winmdroot.System.Com.IDispatch** pdisp) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.item(name, index, pdisp); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.System.Com.IDispatch* item(winmdroot.System.Variant.VARIANT name, winmdroot.System.Variant.VARIANT index) { winmdroot.System.Com.IDispatch* __retVal = default(winmdroot.System.Com.IDispatch*); ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.System.Variant.VARIANT ,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT>)lpVtbl[29])((IHTMLFormElement*)Unsafe.AsPointer(ref this), name, index, &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT tags(IHTMLFormElement* pThis, winmdroot.System.Variant.VARIANT tagName, winmdroot.System.Com.IDispatch** pdisp) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.tags(tagName, pdisp); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public unsafe winmdroot.System.Com.IDispatch* tags(winmdroot.System.Variant.VARIANT tagName) { winmdroot.System.Com.IDispatch* __retVal = default(winmdroot.System.Com.IDispatch*); ((delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT>)lpVtbl[30])((IHTMLFormElement*)Unsafe.AsPointer(ref this), tagName, &__retVal).ThrowOnFailure(); return __retVal; } 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]<IHTMLFormElement*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint> Release_3; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,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]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_action_8; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_action_9; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_dir_10; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_dir_11; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_encoding_12; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_encoding_13; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_method_14; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_method_15; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT> get_elements_16; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_target_17; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_target_18; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_name_19; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_name_20; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT> put_onsubmit_21; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> get_onsubmit_22; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.Foundation.HRESULT> put_onreset_23; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT* ,winmdroot.Foundation.HRESULT> get_onreset_24; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.HRESULT> submit_25; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.Foundation.HRESULT> reset_26; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,int ,winmdroot.Foundation.HRESULT> put_length_27; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,int* ,winmdroot.Foundation.HRESULT> get_length_28; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Com.IUnknown** ,winmdroot.Foundation.HRESULT> get__newEnum_29; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.System.Variant.VARIANT ,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT> item_30; internal delegate *unmanaged [Stdcall]<IHTMLFormElement*,winmdroot.System.Variant.VARIANT ,winmdroot.System.Com.IDispatch** ,winmdroot.Foundation.HRESULT> tags_31; } public static void PopulateVTable(Vtbl* vtable) { vtable->put_action_8 = &put_action; vtable->get_action_9 = &get_action; vtable->put_dir_10 = &put_dir; vtable->get_dir_11 = &get_dir; vtable->put_encoding_12 = &put_encoding; vtable->get_encoding_13 = &get_encoding; vtable->put_method_14 = &put_method; vtable->get_method_15 = &get_method; vtable->get_elements_16 = &get_elements; vtable->put_target_17 = &put_target; vtable->get_target_18 = &get_target; vtable->put_name_19 = &put_name; vtable->get_name_20 = &get_name; vtable->put_onsubmit_21 = &put_onsubmit; vtable->get_onsubmit_22 = &get_onsubmit; vtable->put_onreset_23 = &put_onreset; vtable->get_onreset_24 = &get_onreset; vtable->submit_25 = &submit; vtable->reset_26 = &reset; vtable->put_length_27 = &put_length; vtable->get_length_28 = &get_length; vtable->get__newEnum_29 = &get__newEnum; vtable->item_30 = &item; vtable->tags_31 = &tags; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{3050f1f7-98b5-11cf-bb82-00aa00bdce0b}</value> internal static readonly Guid IID_Guid = new Guid(0x3050F1F7, 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[] { 0xF7,0xF1,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("3050F1F7-98B5-11CF-BB82-00AA00BDCE0B"),InterfaceType(ComInterfaceType.InterfaceIsDual),ComImport()] internal interface Interface { winmdroot.Foundation.BSTR action { set; get; } winmdroot.Foundation.BSTR dir { set; get; } winmdroot.Foundation.BSTR encoding { set; get; } winmdroot.Foundation.BSTR method { set; get; } unsafe winmdroot.System.Com.IDispatch* elements { get; } winmdroot.Foundation.BSTR target { set; get; } winmdroot.Foundation.BSTR name { set; get; } winmdroot.System.Variant.VARIANT onsubmit { set; get; } winmdroot.System.Variant.VARIANT onreset { set; get; } [PreserveSig()] winmdroot.Foundation.HRESULT submit(); [PreserveSig()] winmdroot.Foundation.HRESULT reset(); int length { set; get; } unsafe winmdroot.System.Com.IUnknown* _newEnum { get; } [PreserveSig()] unsafe winmdroot.Foundation.HRESULT item(winmdroot.System.Variant.VARIANT name, winmdroot.System.Variant.VARIANT index, winmdroot.System.Com.IDispatch** pdisp); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT tags(winmdroot.System.Variant.VARIANT tagName, winmdroot.System.Com.IDispatch** pdisp); } } } }