// ------------------------------------------------------------------------------ // <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("9C860395-97B3-490A-B52A-858CC22AF166")] [CLSCompliant(false)] [SupportedOSPlatform("windows5.1.2600")] [global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")] internal unsafe partial struct ITableProvider :winmdroot.IVTable<ITableProvider,ITableProvider.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]<ITableProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((ITableProvider*)Unsafe.AsPointer(ref this), riid, ppvObject); } public uint AddRef() { return ((delegate *unmanaged [Stdcall]<ITableProvider*,uint>)lpVtbl[1])((ITableProvider*)Unsafe.AsPointer(ref this)); } public uint Release() { return ((delegate *unmanaged [Stdcall]<ITableProvider*,uint>)lpVtbl[2])((ITableProvider*)Unsafe.AsPointer(ref this)); } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetRowHeaders(ITableProvider* 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.GetRowHeaders(pRetVal); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <summary>Gets a collection of Microsoft UI Automation providers that represents all the row headers in a table.</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-itableprovider-getrowheaders">Learn more about this API from learn.microsoft.com</see>.</para> /// </remarks> public unsafe winmdroot.System.Com.SAFEARRAY* GetRowHeaders() { winmdroot.System.Com.SAFEARRAY* __retVal = default(winmdroot.System.Com.SAFEARRAY*); ((delegate *unmanaged [Stdcall]<ITableProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((ITableProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); return __retVal; } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT GetColumnHeaders(ITableProvider* 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.GetColumnHeaders(pRetVal); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <summary>Gets a collection of Microsoft UI Automation providers that represents all the column headers in a table.</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-itableprovider-getcolumnheaders">Learn more about this API from learn.microsoft.com</see>.</para> /// </remarks> public unsafe winmdroot.System.Com.SAFEARRAY* GetColumnHeaders() { winmdroot.System.Com.SAFEARRAY* __retVal = default(winmdroot.System.Com.SAFEARRAY*); ((delegate *unmanaged [Stdcall]<ITableProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((ITableProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure(); return __retVal; } /// <inheritdoc cref="get_RowOrColumnMajor(winmdroot.UI.Accessibility.RowOrColumnMajor*)"/> [OverloadResolutionPriority(1)] internal unsafe winmdroot.Foundation.HRESULT get_RowOrColumnMajor(out winmdroot.UI.Accessibility.RowOrColumnMajor pRetVal) { fixed (winmdroot.UI.Accessibility.RowOrColumnMajor* pRetValLocal = &pRetVal) { winmdroot.Foundation.HRESULT __result = this.get_RowOrColumnMajor(pRetValLocal); return __result; } } [UnmanagedCallersOnly(CallConvs = new []{ typeof(CallConvStdcall)} )] private static winmdroot.Foundation.HRESULT get_RowOrColumnMajor(ITableProvider* pThis, winmdroot.UI.Accessibility.RowOrColumnMajor* pRetVal) { try { winmdroot.Foundation.HRESULT __hr = winmdroot.ComHelpers.UnwrapCCW(pThis, out Interface __object); if (__hr.Failed) { return __hr; } return __object.get_RowOrColumnMajor(pRetVal); } catch (Exception ex) { return (winmdroot.Foundation.HRESULT)ex.HResult; } } /// <summary>Specifies the primary direction of traversal for the table.</summary> /// <remarks> /// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-itableprovider-get_roworcolumnmajor">Learn more about this API from learn.microsoft.com</see>.</para> /// </remarks> public unsafe winmdroot.Foundation.HRESULT get_RowOrColumnMajor(winmdroot.UI.Accessibility.RowOrColumnMajor* pRetVal) { return ((delegate *unmanaged [Stdcall]<ITableProvider*,winmdroot.UI.Accessibility.RowOrColumnMajor* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((ITableProvider*)Unsafe.AsPointer(ref this), pRetVal); } 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]<ITableProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1; internal delegate *unmanaged [Stdcall]<ITableProvider*,uint> AddRef_2; internal delegate *unmanaged [Stdcall]<ITableProvider*,uint> Release_3; internal delegate *unmanaged [Stdcall]<ITableProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetRowHeaders_4; internal delegate *unmanaged [Stdcall]<ITableProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetColumnHeaders_5; internal delegate *unmanaged [Stdcall]<ITableProvider*,winmdroot.UI.Accessibility.RowOrColumnMajor* ,winmdroot.Foundation.HRESULT> get_RowOrColumnMajor_6; } public static void PopulateVTable(Vtbl* vtable) { vtable->GetRowHeaders_4 = &GetRowHeaders; vtable->GetColumnHeaders_5 = &GetColumnHeaders; vtable->get_RowOrColumnMajor_6 = &get_RowOrColumnMajor; } private void** lpVtbl; /// <summary>The IID guid for this interface.</summary> /// <value>{9c860395-97b3-490a-b52a-858cc22af166}</value> internal static readonly Guid IID_Guid = new Guid(0x9C860395, 0x97B3, 0x490A, 0xB5, 0x2A, 0x85, 0x8C, 0xC2, 0x2A, 0xF1, 0x66); static ref readonly Guid IComIID.Guid { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan<byte> data = new byte[] { 0x95,0x03,0x86,0x9C,0xB3,0x97,0x0A,0x49,0xB5,0x2A,0x85,0x8C,0xC2,0x2A,0xF1,0x66 }; return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data)); } } [Guid("9C860395-97B3-490A-B52A-858CC22AF166"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()] [SupportedOSPlatform("windows5.1.2600")] internal interface Interface { [PreserveSig()] unsafe winmdroot.Foundation.HRESULT GetRowHeaders(winmdroot.System.Com.SAFEARRAY** pRetVal); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT GetColumnHeaders(winmdroot.System.Com.SAFEARRAY** pRetVal); [PreserveSig()] unsafe winmdroot.Foundation.HRESULT get_RowOrColumnMajor(winmdroot.UI.Accessibility.RowOrColumnMajor* pRetVal); } } } }