File: Windows.Win32.IGridItemProvider.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 UI.Accessibility
	{
		[Guid("D02541F1-FB81-4D64-AE32-F520F8A6DBD1")]
		[SupportedOSPlatform("windows5.1.2600")]
		[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
		internal unsafe partial struct IGridItemProvider
			:IVTable<IGridItemProvider,IGridItemProvider.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]<IGridItemProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IGridItemProvider*)Unsafe.AsPointer(ref this), riid, ppvObject);
			}

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

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

			/// <inheritdoc cref="get_Row(int*)"/>
			internal unsafe winmdroot.Foundation.HRESULT get_Row(out int pRetVal)
			{
				fixed (int* pRetValLocal = &pRetVal)
				{
					winmdroot.Foundation.HRESULT __result = this.get_Row(pRetValLocal);
					return __result;
				}
			}

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

			/// <summary>Specifies the ordinal number of the row that contains this cell or item.</summary>
			/// <remarks>
			/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-igriditemprovider-get_row">Learn more about this API from docs.microsoft.com</see>.</para>
			/// </remarks>
			public unsafe winmdroot.Foundation.HRESULT get_Row(int* pRetVal)
			{
				return ((delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IGridItemProvider*)Unsafe.AsPointer(ref this), pRetVal);
			}

			/// <inheritdoc cref="get_Column(int*)"/>
			internal unsafe winmdroot.Foundation.HRESULT get_Column(out int pRetVal)
			{
				fixed (int* pRetValLocal = &pRetVal)
				{
					winmdroot.Foundation.HRESULT __result = this.get_Column(pRetValLocal);
					return __result;
				}
			}

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

			/// <summary>Specifies the ordinal number of the column that contains this cell or item.</summary>
			/// <remarks>
			/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-igriditemprovider-get_column">Learn more about this API from docs.microsoft.com</see>.</para>
			/// </remarks>
			public unsafe winmdroot.Foundation.HRESULT get_Column(int* pRetVal)
			{
				return ((delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IGridItemProvider*)Unsafe.AsPointer(ref this), pRetVal);
			}

			/// <inheritdoc cref="get_RowSpan(int*)"/>
			internal unsafe winmdroot.Foundation.HRESULT get_RowSpan(out int pRetVal)
			{
				fixed (int* pRetValLocal = &pRetVal)
				{
					winmdroot.Foundation.HRESULT __result = this.get_RowSpan(pRetValLocal);
					return __result;
				}
			}

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

			/// <summary>Specifies the number of rows spanned by this cell or item.</summary>
			/// <remarks>
			/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-igriditemprovider-get_rowspan">Learn more about this API from docs.microsoft.com</see>.</para>
			/// </remarks>
			public unsafe winmdroot.Foundation.HRESULT get_RowSpan(int* pRetVal)
			{
				return ((delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IGridItemProvider*)Unsafe.AsPointer(ref this), pRetVal);
			}

			/// <inheritdoc cref="get_ColumnSpan(int*)"/>
			internal unsafe winmdroot.Foundation.HRESULT get_ColumnSpan(out int pRetVal)
			{
				fixed (int* pRetValLocal = &pRetVal)
				{
					winmdroot.Foundation.HRESULT __result = this.get_ColumnSpan(pRetValLocal);
					return __result;
				}
			}

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

			/// <summary>Specifies the number of columns spanned by this cell or item.</summary>
			/// <remarks>
			/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-igriditemprovider-get_columnspan">Learn more about this API from docs.microsoft.com</see>.</para>
			/// </remarks>
			public unsafe winmdroot.Foundation.HRESULT get_ColumnSpan(int* pRetVal)
			{
				return ((delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IGridItemProvider*)Unsafe.AsPointer(ref this), pRetVal);
			}

			[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
			private static winmdroot.Foundation.HRESULT get_ContainingGrid(IGridItemProvider* pThis, winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal)
			{
				try
				{
					winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
					if (__hr.Failed)
					{
						return __hr;
					}
					return __object.get_ContainingGrid(pRetVal);
				}
				catch (Exception ex)
				{
					return (winmdroot.Foundation.HRESULT)ex.HResult;
				}
			}

			/// <summary>Specifies the UI Automation provider that implements IGridProvider and represents the container of this cell or item.</summary>
			/// <remarks>
			/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-igriditemprovider-get_containinggrid">Learn more about this API from docs.microsoft.com</see>.</para>
			/// </remarks>
			public unsafe winmdroot.Foundation.HRESULT get_ContainingGrid(winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal)
			{
				return ((delegate *unmanaged [Stdcall]<IGridItemProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IGridItemProvider*)Unsafe.AsPointer(ref this), pRetVal);
			}

			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]<IGridItemProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;

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

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

				internal delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT> get_Row_4;

				internal delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT> get_Column_5;

				internal delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT> get_RowSpan_6;

				internal delegate *unmanaged [Stdcall]<IGridItemProvider*,int* ,winmdroot.Foundation.HRESULT> get_ColumnSpan_7;

				internal delegate *unmanaged [Stdcall]<IGridItemProvider*,winmdroot.UI.Accessibility.IRawElementProviderSimple** ,winmdroot.Foundation.HRESULT> get_ContainingGrid_8;
			} 
			public static void PopulateVTable(Vtbl* vtable)
			{
				vtable->get_Row_4 = &get_Row;
				vtable->get_Column_5 = &get_Column;
				vtable->get_RowSpan_6 = &get_RowSpan;
				vtable->get_ColumnSpan_7 = &get_ColumnSpan;
				vtable->get_ContainingGrid_8 = &get_ContainingGrid;
			}

			private void** lpVtbl;

			/// <summary>The IID guid for this interface.</summary>
			/// <value>{d02541f1-fb81-4d64-ae32-f520f8a6dbd1}</value>
			internal static readonly Guid IID_Guid = new Guid(0xD02541F1, 0xFB81, 0x4D64, 0xAE, 0x32, 0xF5, 0x20, 0xF8, 0xA6, 0xDB, 0xD1);

			static ref readonly Guid IComIID.Guid			{
								[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
				{
					ReadOnlySpan<byte> data = new byte[]					{
0xF1,0x41,0x25,0xD0,0x81,0xFB,0x64,0x4D,0xAE,0x32,0xF5,0x20,0xF8,0xA6,0xDB,0xD1					};
					return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
				}
			}
			[Guid("D02541F1-FB81-4D64-AE32-F520F8A6DBD1"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()]
			[SupportedOSPlatform("windows5.1.2600")]
			internal interface Interface
			{
				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT get_Row(int* pRetVal);

				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT get_Column(int* pRetVal);

				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT get_RowSpan(int* pRetVal);

				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT get_ColumnSpan(int* pRetVal);

				[PreserveSig()]
				unsafe winmdroot.Foundation.HRESULT get_ContainingGrid(winmdroot.UI.Accessibility.IRawElementProviderSimple** pRetVal);
			}
		}
	}
}