// ------------------------------------------------------------------------------ // <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("FECEAAA5-8405-11CF-8BA1-00AA00476DA6")] [CLSCompliant(false)] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct IOmNavigator :winmdroot.IVTable<IOmNavigator,IOmNavigator.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]<IOmNavigator*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IOmNavigator*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<IOmNavigator*,uint>)lpVtbl[1])((IOmNavigator*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<IOmNavigator*,uint>)lpVtbl[2])((IOmNavigator*)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]<IOmNavigator*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IOmNavigator*)Unsafe.AsPointer(ref this), pctinfo).ThrowOnFailure(); } public unsafe void GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo) { ((delegate *unmanaged [Stdcall]<IOmNavigator*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IOmNavigator*)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]<IOmNavigator*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IOmNavigator*)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]<IOmNavigator*,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])((IOmNavigator*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr).ThrowOnFailure(); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_appCodeName(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.appCodeName; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR appCodeName { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_appName(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.appName; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR appName { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_appVersion(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.appVersion; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR appVersion { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_userAgent(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.userAgent; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR userAgent { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT javaEnabled(IOmNavigator* pThis, winmdroot.Foundation.VARIANT_BOOL* enabled) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.javaEnabled(enabled); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public winmdroot.Foundation.VARIANT_BOOL javaEnabled() { winmdroot.Foundation.VARIANT_BOOL __retVal = default(winmdroot.Foundation.VARIANT_BOOL); ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IOmNavigator*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT taintEnabled(IOmNavigator* pThis, winmdroot.Foundation.VARIANT_BOOL* enabled) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.taintEnabled(enabled); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public winmdroot.Foundation.VARIANT_BOOL taintEnabled() { winmdroot.Foundation.VARIANT_BOOL __retVal = default(winmdroot.Foundation.VARIANT_BOOL); ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IOmNavigator*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_mimeTypes(IOmNavigator* pThis, winmdroot.Web.MsHtml.IHTMLMimeTypesCollection** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.mimeTypes; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLMimeTypesCollection* mimeTypes { get { winmdroot.Web.MsHtml.IHTMLMimeTypesCollection* __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLMimeTypesCollection** ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_plugins(IOmNavigator* pThis, winmdroot.Web.MsHtml.IHTMLPluginsCollection** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.plugins; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLPluginsCollection* plugins { get { winmdroot.Web.MsHtml.IHTMLPluginsCollection* __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLPluginsCollection** ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_cookieEnabled(IOmNavigator* 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.cookieEnabled; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.VARIANT_BOOL cookieEnabled { get { winmdroot.Foundation.VARIANT_BOOL __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_opsProfile(IOmNavigator* pThis, winmdroot.Web.MsHtml.IHTMLOpsProfile** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.opsProfile; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLOpsProfile* opsProfile { get { winmdroot.Web.MsHtml.IHTMLOpsProfile* __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLOpsProfile** ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT toString(IOmNavigator* pThis, winmdroot.Foundation.BSTR* @string) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.toString(@string); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } public winmdroot.Foundation.BSTR toString() { winmdroot.Foundation.BSTR __retVal = default(winmdroot.Foundation.BSTR); ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IOmNavigator*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_cpuClass(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.cpuClass; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR cpuClass { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_systemLanguage(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.systemLanguage; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR systemLanguage { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_browserLanguage(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.browserLanguage; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR browserLanguage { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_userLanguage(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.userLanguage; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR userLanguage { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[21])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_platform(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.platform; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR platform { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_appMinorVersion(IOmNavigator* pThis, winmdroot.Foundation.BSTR* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.appMinorVersion; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.BSTR appMinorVersion { get { winmdroot.Foundation.BSTR __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_connectionSpeed(IOmNavigator* pThis, int* p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.connectionSpeed; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal int connectionSpeed { get { int __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[24])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_onLine(IOmNavigator* 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.onLine; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal winmdroot.Foundation.VARIANT_BOOL onLine { get { winmdroot.Foundation.VARIANT_BOOL __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[25])((IOmNavigator*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure(); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_userProfile(IOmNavigator* pThis, winmdroot.Web.MsHtml.IHTMLOpsProfile** p) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } *p = __object.userProfile; return winmdroot.Foundation.HRESULT.S_OK; } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } internal unsafe winmdroot.Web.MsHtml.IHTMLOpsProfile* userProfile { get { winmdroot.Web.MsHtml.IHTMLOpsProfile* __result; ((delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLOpsProfile** ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IOmNavigator*)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]<IOmNavigator*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<IOmNavigator*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<IOmNavigator*,uint> Release_3; internal delegate *unmanaged [Stdcall]<IOmNavigator*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4; internal delegate *unmanaged [Stdcall]<IOmNavigator*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5; internal delegate *unmanaged [Stdcall]<IOmNavigator*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6; internal delegate *unmanaged [Stdcall]<IOmNavigator*,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]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_appCodeName_8; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_appName_9; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_appVersion_10; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_userAgent_11; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> javaEnabled_12; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> taintEnabled_13; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLMimeTypesCollection** ,winmdroot.Foundation.HRESULT> get_mimeTypes_14; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLPluginsCollection** ,winmdroot.Foundation.HRESULT> get_plugins_15; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> get_cookieEnabled_16; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLOpsProfile** ,winmdroot.Foundation.HRESULT> get_opsProfile_17; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> toString_18; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_cpuClass_19; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_systemLanguage_20; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_browserLanguage_21; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_userLanguage_22; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_platform_23; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_appMinorVersion_24; internal delegate *unmanaged [Stdcall]<IOmNavigator*,int* ,winmdroot.Foundation.HRESULT> get_connectionSpeed_25; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Foundation.VARIANT_BOOL* ,winmdroot.Foundation.HRESULT> get_onLine_26; internal delegate *unmanaged [Stdcall]<IOmNavigator*,winmdroot.Web.MsHtml.IHTMLOpsProfile** ,winmdroot.Foundation.HRESULT> get_userProfile_27; } public static void PopulateVTable(Vtbl* vtable) { vtable->get_appCodeName_8 = &get_appCodeName; vtable->get_appName_9 = &get_appName; vtable->get_appVersion_10 = &get_appVersion; vtable->get_userAgent_11 = &get_userAgent; vtable->javaEnabled_12 = &javaEnabled; vtable->taintEnabled_13 = &taintEnabled; vtable->get_mimeTypes_14 = &get_mimeTypes; vtable->get_plugins_15 = &get_plugins; vtable->get_cookieEnabled_16 = &get_cookieEnabled; vtable->get_opsProfile_17 = &get_opsProfile; vtable->toString_18 = &toString; vtable->get_cpuClass_19 = &get_cpuClass; vtable->get_systemLanguage_20 = &get_systemLanguage; vtable->get_browserLanguage_21 = &get_browserLanguage; vtable->get_userLanguage_22 = &get_userLanguage; vtable->get_platform_23 = &get_platform; vtable->get_appMinorVersion_24 = &get_appMinorVersion; vtable->get_connectionSpeed_25 = &get_connectionSpeed; vtable->get_onLine_26 = &get_onLine; vtable->get_userProfile_27 = &get_userProfile; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{feceaaa5-8405-11cf-8ba1-00aa00476da6}</value> internal static readonly Guid IID_Guid = new Guid(0xFECEAAA5, 0x8405, 0x11CF, 0x8B, 0xA1, 0x00, 0xAA, 0x00, 0x47, 0x6D, 0xA6); static ref readonly Guid IComIID.Guid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan<byte> data = new byte[] { 0xA5,0xAA,0xCE,0xFE,0x05,0x84,0xCF,0x11,0x8B,0xA1,0x00,0xAA,0x00,0x47,0x6D,0xA6 }; return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data)); } } [Guid("FECEAAA5-8405-11CF-8BA1-00AA00476DA6"),InterfaceType(ComInterfaceType.InterfaceIsDual),ComImport()] internal interface Interface { winmdroot.Foundation.BSTR appCodeName { get; } winmdroot.Foundation.BSTR appName { get; } winmdroot.Foundation.BSTR appVersion { get; } winmdroot.Foundation.BSTR userAgent { get; } [PreserveSig()] unsafe winmdroot.Foundation.HRESULT javaEnabled(winmdroot.Foundation.VARIANT_BOOL* enabled); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT taintEnabled(winmdroot.Foundation.VARIANT_BOOL* enabled); unsafe winmdroot.Web.MsHtml.IHTMLMimeTypesCollection* mimeTypes { get; } unsafe winmdroot.Web.MsHtml.IHTMLPluginsCollection* plugins { get; } winmdroot.Foundation.VARIANT_BOOL cookieEnabled { get; } unsafe winmdroot.Web.MsHtml.IHTMLOpsProfile* opsProfile { get; } [PreserveSig()] unsafe winmdroot.Foundation.HRESULT toString(winmdroot.Foundation.BSTR* @string); winmdroot.Foundation.BSTR cpuClass { get; } winmdroot.Foundation.BSTR systemLanguage { get; } winmdroot.Foundation.BSTR browserLanguage { get; } winmdroot.Foundation.BSTR userLanguage { get; } winmdroot.Foundation.BSTR platform { get; } winmdroot.Foundation.BSTR appMinorVersion { get; } int connectionSpeed { get; } winmdroot.Foundation.VARIANT_BOOL onLine { get; } unsafe winmdroot.Web.MsHtml.IHTMLOpsProfile* userProfile { get; } } } } }