File: Windows.Win32.IHTMLLocation.g.cs
Project: src\src\System.Windows.Forms.Primitives\src\System.Windows.Forms.Primitives.csproj (System.Windows.Forms.Primitives)
// ------------------------------------------------------------------------------
// <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
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("163BB1E0-6E00-11CF-837A-48DC04C10000")]
		[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
		internal unsafe partial struct IHTMLLocation
			:IVTable<IHTMLLocation,IHTMLLocation.Vtbl>,IComIID		{
			/// <inheritdoc cref="QueryInterface(global::System.Guid*, void**)"/>
			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]<IHTMLLocation*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IHTMLLocation*)Unsafe.AsPointer(ref this), riid, ppvObject);
			}

			public uint AddRef()
			{
				return ((delegate *unmanaged [Stdcall]<IHTMLLocation*,uint>)lpVtbl[1])((IHTMLLocation*)Unsafe.AsPointer(ref this));
			}

			public uint Release()
			{
				return ((delegate *unmanaged [Stdcall]<IHTMLLocation*,uint>)lpVtbl[2])((IHTMLLocation*)Unsafe.AsPointer(ref this));
			}

			/// <inheritdoc cref="GetTypeInfoCount(uint*)"/>
			internal unsafe void GetTypeInfoCount(out uint pctinfo)
			{
				fixed (uint* pctinfoLocal = &pctinfo)
				{
					this.GetTypeInfoCount(pctinfoLocal);
				}
			}

			public unsafe void GetTypeInfoCount(uint* pctinfo)
			{
				((delegate *unmanaged [Stdcall]<IHTMLLocation*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IHTMLLocation*)Unsafe.AsPointer(ref this), pctinfo).ThrowOnFailure();
			}

			public unsafe void GetTypeInfo(uint iTInfo, uint lcid, winmdroot.System.Com.ITypeInfo** ppTInfo)
			{
				((delegate *unmanaged [Stdcall]<IHTMLLocation*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IHTMLLocation*)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.Length != rgDispId.Length)								throw new ArgumentException();
							this.GetIDsOfNames(riidLocal, rgszNamesLocal, (uint )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]<IHTMLLocation*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IHTMLLocation*)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*)"/>
			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, winmdroot.System.Variant.VARIANT* pVarResult, winmdroot.System.Com.EXCEPINFO* pExcepInfo, uint* puArgErr)
			{
				fixed (winmdroot.System.Com.DISPPARAMS* pDispParamsLocal = &pDispParams)
				{
					fixed (global::System.Guid* riidLocal = &riid)
					{
						this.Invoke(dispIdMember, riidLocal, lcid, wFlags, pDispParamsLocal, pVarResult, pExcepInfo, puArgErr);
					}
				}
			}

			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]<IHTMLLocation*,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])((IHTMLLocation*)Unsafe.AsPointer(ref this), dispIdMember, riid, lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr).ThrowOnFailure();
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT put_href(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.href = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR href
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_href(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					return __object.get_href(p);
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			public unsafe winmdroot.Foundation.HRESULT get_href(winmdroot.Foundation.BSTR* p)
			{
				return ((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IHTMLLocation*)Unsafe.AsPointer(ref this), p);
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT put_protocol(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.protocol = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR protocol
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_protocol(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.protocol;
					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_host(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.host = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR host
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_host(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.host;
					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_hostname(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.hostname = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR hostname
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_hostname(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.hostname;
					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_port(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.port = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR port
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_port(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.port;
					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_pathname(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.pathname = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR pathname
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[17])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[18])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_pathname(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.pathname;
					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_search(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.search = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR search
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[19])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[20])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_search(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.search;
					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_hash(IHTMLLocation* pThis, winmdroot.Foundation.BSTR v)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					__object.hash = v;
					return winmdroot.Foundation.HRESULT.S_OK;
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			internal winmdroot.Foundation.BSTR hash
			{
				set
				{
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[21])((IHTMLLocation*)Unsafe.AsPointer(ref this), value).ThrowOnFailure();
				}
				get
				{
					winmdroot.Foundation.BSTR __result;
					((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[22])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__result).ThrowOnFailure();
					return __result;
				}
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_hash(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* p)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					*p = __object.hash;
					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 reload(IHTMLLocation* pThis, winmdroot.Foundation.VARIANT_BOOL flag)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					return __object.reload(flag);
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			public void reload(winmdroot.Foundation.VARIANT_BOOL flag)
			{
				((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.VARIANT_BOOL ,winmdroot.Foundation.HRESULT>)lpVtbl[23])((IHTMLLocation*)Unsafe.AsPointer(ref this), flag).ThrowOnFailure();
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT replace(IHTMLLocation* pThis, winmdroot.Foundation.BSTR bstr)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					return __object.replace(bstr);
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			public void replace(winmdroot.Foundation.BSTR bstr)
			{
				((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[24])((IHTMLLocation*)Unsafe.AsPointer(ref this), bstr).ThrowOnFailure();
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT assign(IHTMLLocation* pThis, winmdroot.Foundation.BSTR bstr)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					return __object.assign(bstr);
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			public void assign(winmdroot.Foundation.BSTR bstr)
			{
				((delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[25])((IHTMLLocation*)Unsafe.AsPointer(ref this), bstr).ThrowOnFailure();
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT toString(IHTMLLocation* pThis, winmdroot.Foundation.BSTR* @string)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = 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]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IHTMLLocation*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
				return __retVal;
			}

			internal unsafe global::Windows.Win32.Foundation.HRESULT QueryInterface<T>(out T* ppv)
where T : unmanaged

			{
				var hr = this.QueryInterface(typeof(T).GUID, out void* pv);
				if (hr.Succeeded)

				{
					ppv = (T*)pv;
				}
				else

				{
					ppv = null;
				}

				return hr;
			}

			internal struct Vtbl
			{
				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,uint> AddRef_2;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,uint> Release_3;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,uint* ,winmdroot.Foundation.HRESULT> GetTypeInfoCount_4;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,uint ,uint ,winmdroot.System.Com.ITypeInfo** ,winmdroot.Foundation.HRESULT> GetTypeInfo_5;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,global::System.Guid* ,winmdroot.Foundation.PWSTR* ,uint ,uint ,int* ,winmdroot.Foundation.HRESULT> GetIDsOfNames_6;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,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]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_href_8;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_href_9;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_protocol_10;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_protocol_11;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_host_12;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_host_13;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_hostname_14;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_hostname_15;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_port_16;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_port_17;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_pathname_18;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_pathname_19;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_search_20;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_search_21;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> put_hash_22;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_hash_23;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.VARIANT_BOOL ,winmdroot.Foundation.HRESULT> reload_24;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> replace_25;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR ,winmdroot.Foundation.HRESULT> assign_26;

				internal delegate *unmanaged [Stdcall]<IHTMLLocation*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> toString_27;
			} 
			public static void PopulateVTable(Vtbl* vtable)
			{
				vtable->put_href_8 = &put_href;
				vtable->get_href_9 = &get_href;
				vtable->put_protocol_10 = &put_protocol;
				vtable->get_protocol_11 = &get_protocol;
				vtable->put_host_12 = &put_host;
				vtable->get_host_13 = &get_host;
				vtable->put_hostname_14 = &put_hostname;
				vtable->get_hostname_15 = &get_hostname;
				vtable->put_port_16 = &put_port;
				vtable->get_port_17 = &get_port;
				vtable->put_pathname_18 = &put_pathname;
				vtable->get_pathname_19 = &get_pathname;
				vtable->put_search_20 = &put_search;
				vtable->get_search_21 = &get_search;
				vtable->put_hash_22 = &put_hash;
				vtable->get_hash_23 = &get_hash;
				vtable->reload_24 = &reload;
				vtable->replace_25 = &replace;
				vtable->assign_26 = &assign;
				vtable->toString_27 = &toString;
			}

			private void** lpVtbl;

			/// <summary>The IID guid for this interface.</summary>
			/// <value>{163bb1e0-6e00-11cf-837a-48dc04c10000}</value>
			internal static readonly Guid IID_Guid = new Guid(0x163BB1E0, 0x6E00, 0x11CF, 0x83, 0x7A, 0x48, 0xDC, 0x04, 0xC1, 0x00, 0x00);

			static ref readonly Guid IComIID.Guid			{
								[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
				{
					ReadOnlySpan<byte> data = new byte[]					{
0xE0,0xB1,0x3B,0x16,0x00,0x6E,0xCF,0x11,0x83,0x7A,0x48,0xDC,0x04,0xC1,0x00,0x00					};
					return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
				}
			}
			[Guid("163BB1E0-6E00-11CF-837A-48DC04C10000"),InterfaceType(ComInterfaceType.InterfaceIsDual),ComImport()]
			internal interface Interface
			{
				winmdroot.Foundation.BSTR href
				{
					set;
				}

				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT get_href(winmdroot.Foundation.BSTR* p);

				winmdroot.Foundation.BSTR protocol
				{
					set;
					get;
				}

				winmdroot.Foundation.BSTR host
				{
					set;
					get;
				}

				winmdroot.Foundation.BSTR hostname
				{
					set;
					get;
				}

				winmdroot.Foundation.BSTR port
				{
					set;
					get;
				}

				winmdroot.Foundation.BSTR pathname
				{
					set;
					get;
				}

				winmdroot.Foundation.BSTR search
				{
					set;
					get;
				}

				winmdroot.Foundation.BSTR hash
				{
					set;
					get;
				}

								[PreserveSig()]
winmdroot.Foundation.HRESULT reload(winmdroot.Foundation.VARIANT_BOOL flag);

								[PreserveSig()]
winmdroot.Foundation.HRESULT replace(winmdroot.Foundation.BSTR bstr);

								[PreserveSig()]
winmdroot.Foundation.HRESULT assign(winmdroot.Foundation.BSTR bstr);

				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT toString(winmdroot.Foundation.BSTR* @string);
			}
		}
	}
}