// ------------------------------------------------------------------------------ // <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 UI.Accessibility { [Guid("B9734FA6-771F-4D78-9C90-2517999349CD")] [CLSCompliant(false)] [SupportedOSPlatform("windows5.1.2600")] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct ITableItemProvider :winmdroot.IVTable<ITableItemProvider,ITableItemProvider.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]<ITableItemProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((ITableItemProvider*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<ITableItemProvider*,uint>)lpVtbl[1])((ITableItemProvider*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<ITableItemProvider*,uint>)lpVtbl[2])((ITableItemProvider*)Unsafe.AsPointer(ref this)); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetRowHeaderItems(ITableItemProvider* pThis, winmdroot.System.Com.SAFEARRAY** pRetVal) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.GetRowHeaderItems(pRetVal); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <summary>Retrieves a collection of Microsoft UI Automation provider representing all the row headers associated with a table item or cell.</summary> /// <returns> /// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> If this method succeeds, it returns <b>S_OK</b>. Otherwise, it returns an <b>HRESULT</b> error code.</para> /// </returns> /// <remarks> /// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-itableitemprovider-getrowheaderitems">Learn more about this API from learn.microsoft.com</see>.</para> /// </remarks> public unsafe winmdroot.System.Com.SAFEARRAY* GetRowHeaderItems() { winmdroot.System.Com.SAFEARRAY* __retVal = default(winmdroot.System.Com.SAFEARRAY*); ((delegate *unmanaged [Stdcall]<ITableItemProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((ITableItemProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetColumnHeaderItems(ITableItemProvider* pThis, winmdroot.System.Com.SAFEARRAY** pRetVal) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.GetColumnHeaderItems(pRetVal); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <summary>Retrieves a collection of Microsoft UI Automation provider representing all the column headers associated with a table item or cell.</summary> /// <returns> /// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">HRESULT</a></b> If this method succeeds, it returns <b>S_OK</b>. Otherwise, it returns an <b>HRESULT</b> error code.</para> /// </returns> /// <remarks> /// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-itableitemprovider-getcolumnheaderitems">Learn more about this API from learn.microsoft.com</see>.</para> /// </remarks> public unsafe winmdroot.System.Com.SAFEARRAY* GetColumnHeaderItems() { winmdroot.System.Com.SAFEARRAY* __retVal = default(winmdroot.System.Com.SAFEARRAY*); ((delegate *unmanaged [Stdcall]<ITableItemProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((ITableItemProvider*)Unsafe.AsPointer(ref this), &__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]<ITableItemProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<ITableItemProvider*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<ITableItemProvider*,uint> Release_3; internal delegate *unmanaged [Stdcall]<ITableItemProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetRowHeaderItems_4; internal delegate *unmanaged [Stdcall]<ITableItemProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetColumnHeaderItems_5; } public static void PopulateVTable(Vtbl* vtable) { vtable->GetRowHeaderItems_4 = &GetRowHeaderItems; vtable->GetColumnHeaderItems_5 = &GetColumnHeaderItems; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{b9734fa6-771f-4d78-9c90-2517999349cd}</value> internal static readonly Guid IID_Guid = new Guid(0xB9734FA6, 0x771F, 0x4D78, 0x9C, 0x90, 0x25, 0x17, 0x99, 0x93, 0x49, 0xCD); static ref readonly Guid IComIID.Guid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan<byte> data = new byte[] { 0xA6,0x4F,0x73,0xB9,0x1F,0x77,0x78,0x4D,0x9C,0x90,0x25,0x17,0x99,0x93,0x49,0xCD }; return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data)); } } [Guid("B9734FA6-771F-4D78-9C90-2517999349CD"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()] [SupportedOSPlatform("windows5.1.2600")] internal interface Interface { [PreserveSig()] unsafe winmdroot.Foundation.HRESULT GetRowHeaderItems(winmdroot.System.Com.SAFEARRAY** pRetVal); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT GetColumnHeaderItems(winmdroot.System.Com.SAFEARRAY** pRetVal); } } } }