|
// ------------------------------------------------------------------------------
// <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("E44C3566-915D-4070-99C6-047BFF5A08F5")]
[SupportedOSPlatform("windows6.1")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal unsafe partial struct ILegacyIAccessibleProvider
:IVTable<ILegacyIAccessibleProvider,ILegacyIAccessibleProvider.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]<ILegacyIAccessibleProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), riid, ppvObject);
}
public uint AddRef()
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint>)lpVtbl[1])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this));
}
public uint Release()
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint>)lpVtbl[2])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this));
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT Select(ILegacyIAccessibleProvider* pThis, int flagsSelect)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.Select(flagsSelect);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Selects the element.</summary>
/// <param name="flagsSelect">
/// <para>Type: <b>long</b> Specifies which selection or focus operations are to be performed. This parameter must have a combination of the values described in <a href="https://docs.microsoft.com/windows/desktop/WinAuto/selflag">SELFLAG Constants</a>.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-select#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <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-ilegacyiaccessibleprovider-select">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void Select(int flagsSelect)
{
((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,int ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), flagsSelect).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT DoDefaultAction(ILegacyIAccessibleProvider* pThis)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.DoDefaultAction();
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Performs the default action on the control.</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-ilegacyiaccessibleprovider-dodefaultaction">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void DoDefaultAction()
{
((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.HRESULT>)lpVtbl[4])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this)).ThrowOnFailure();
}
/// <inheritdoc cref="SetValue(winmdroot.Foundation.PCWSTR)"/>
internal unsafe void SetValue(string szValue)
{
fixed (char* szValueLocal = szValue)
{
this.SetValue(szValueLocal);
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT SetValue(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.PCWSTR szValue)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.SetValue(szValue);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Sets the string value of the control.</summary>
/// <param name="szValue">
/// <para>Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">LPCWSTR</a></b> A localized string that contains the value.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-setvalue#parameters">Read more on docs.microsoft.com</see>.</para>
/// </param>
/// <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-ilegacyiaccessibleprovider-setvalue">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public void SetValue(winmdroot.Foundation.PCWSTR szValue)
{
((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), szValue).ThrowOnFailure();
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetIAccessible(ILegacyIAccessibleProvider* pThis, winmdroot.UI.Accessibility.IAccessible** ppAccessible)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetIAccessible(ppAccessible);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves an accessible object that corresponds to a UI Automation element that supports the LegacyIAccessible control pattern.</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-ilegacyiaccessibleprovider-getiaccessible">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.UI.Accessibility.IAccessible* GetIAccessible()
{
winmdroot.UI.Accessibility.IAccessible* __retVal = default(winmdroot.UI.Accessibility.IAccessible*);
((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.UI.Accessibility.IAccessible** ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
return __retVal;
}
/// <inheritdoc cref="get_ChildId(int*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_ChildId(out int pRetVal)
{
fixed (int* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_ChildId(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_ChildId(ILegacyIAccessibleProvider* pThis, int* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_ChildId(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the child identifier of this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_childid">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_ChildId(int* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,int* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pRetVal);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Name(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.BSTR* pszName)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Name(pszName);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the name of this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_name">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_Name(winmdroot.Foundation.BSTR* pszName)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pszName);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Value(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.BSTR* pszValue)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Value(pszValue);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the value of this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_value">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_Value(winmdroot.Foundation.BSTR* pszValue)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pszValue);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Description(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.BSTR* pszDescription)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Description(pszDescription);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Contains the description of this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_description">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_Description(winmdroot.Foundation.BSTR* pszDescription)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pszDescription);
}
/// <inheritdoc cref="get_Role(uint*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_Role(out uint pdwRole)
{
fixed (uint* pdwRoleLocal = &pdwRole)
{
winmdroot.Foundation.HRESULT __result = this.get_Role(pdwRoleLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Role(ILegacyIAccessibleProvider* pThis, uint* pdwRole)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Role(pdwRole);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the role identifier of this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_role">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_Role(uint* pdwRole)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pdwRole);
}
/// <inheritdoc cref="get_State(uint*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_State(out uint pdwState)
{
fixed (uint* pdwStateLocal = &pdwState)
{
winmdroot.Foundation.HRESULT __result = this.get_State(pdwStateLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_State(ILegacyIAccessibleProvider* pThis, uint* pdwState)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_State(pdwState);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the state of this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_state">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_State(uint* pdwState)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint* ,winmdroot.Foundation.HRESULT>)lpVtbl[12])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pdwState);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Help(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.BSTR* pszHelp)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Help(pszHelp);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies a string that contains help information for this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_help">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_Help(winmdroot.Foundation.BSTR* pszHelp)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[13])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pszHelp);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_KeyboardShortcut(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.BSTR* pszKeyboardShortcut)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_KeyboardShortcut(pszKeyboardShortcut);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the keyboard shortcut for this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_keyboardshortcut">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_KeyboardShortcut(winmdroot.Foundation.BSTR* pszKeyboardShortcut)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[14])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pszKeyboardShortcut);
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT GetSelection(ILegacyIAccessibleProvider* pThis, winmdroot.System.Com.SAFEARRAY** pvarSelectedChildren)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.GetSelection(pvarSelectedChildren);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Retrieves the selected item or items in the control.</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-ilegacyiaccessibleprovider-getselection">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.System.Com.SAFEARRAY* GetSelection()
{
winmdroot.System.Com.SAFEARRAY* __retVal = default(winmdroot.System.Com.SAFEARRAY*);
((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT>)lpVtbl[15])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), &__retVal).ThrowOnFailure();
return __retVal;
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_DefaultAction(ILegacyIAccessibleProvider* pThis, winmdroot.Foundation.BSTR* pszDefaultAction)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_DefaultAction(pszDefaultAction);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Contains a description of the default action for this element.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-ilegacyiaccessibleprovider-get_defaultaction">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_DefaultAction(winmdroot.Foundation.BSTR* pszDefaultAction)
{
return ((delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT>)lpVtbl[16])((ILegacyIAccessibleProvider*)Unsafe.AsPointer(ref this), pszDefaultAction);
}
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]<ILegacyIAccessibleProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint> AddRef_2;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint> Release_3;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,int ,winmdroot.Foundation.HRESULT> Select_4;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.HRESULT> DoDefaultAction_5;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.PCWSTR ,winmdroot.Foundation.HRESULT> SetValue_6;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.UI.Accessibility.IAccessible** ,winmdroot.Foundation.HRESULT> GetIAccessible_7;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,int* ,winmdroot.Foundation.HRESULT> get_ChildId_8;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_Name_9;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_Value_10;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_Description_11;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint* ,winmdroot.Foundation.HRESULT> get_Role_12;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,uint* ,winmdroot.Foundation.HRESULT> get_State_13;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_Help_14;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_KeyboardShortcut_15;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.System.Com.SAFEARRAY** ,winmdroot.Foundation.HRESULT> GetSelection_16;
internal delegate *unmanaged [Stdcall]<ILegacyIAccessibleProvider*,winmdroot.Foundation.BSTR* ,winmdroot.Foundation.HRESULT> get_DefaultAction_17;
}
public static void PopulateVTable(Vtbl* vtable)
{
vtable->Select_4 = &Select;
vtable->DoDefaultAction_5 = &DoDefaultAction;
vtable->SetValue_6 = &SetValue;
vtable->GetIAccessible_7 = &GetIAccessible;
vtable->get_ChildId_8 = &get_ChildId;
vtable->get_Name_9 = &get_Name;
vtable->get_Value_10 = &get_Value;
vtable->get_Description_11 = &get_Description;
vtable->get_Role_12 = &get_Role;
vtable->get_State_13 = &get_State;
vtable->get_Help_14 = &get_Help;
vtable->get_KeyboardShortcut_15 = &get_KeyboardShortcut;
vtable->GetSelection_16 = &GetSelection;
vtable->get_DefaultAction_17 = &get_DefaultAction;
}
private void** lpVtbl;
/// <summary>The IID guid for this interface.</summary>
/// <value>{e44c3566-915d-4070-99c6-047bff5a08f5}</value>
internal static readonly Guid IID_Guid = new Guid(0xE44C3566, 0x915D, 0x4070, 0x99, 0xC6, 0x04, 0x7B, 0xFF, 0x5A, 0x08, 0xF5);
static ref readonly Guid IComIID.Guid {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0x66,0x35,0x4C,0xE4,0x5D,0x91,0x70,0x40,0x99,0xC6,0x04,0x7B,0xFF,0x5A,0x08,0xF5 };
return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
}
}
[Guid("E44C3566-915D-4070-99C6-047BFF5A08F5"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()]
[SupportedOSPlatform("windows6.1")]
internal interface Interface
{
[PreserveSig()]
winmdroot.Foundation.HRESULT Select(int flagsSelect);
[PreserveSig()]
winmdroot.Foundation.HRESULT DoDefaultAction();
[PreserveSig()]
winmdroot.Foundation.HRESULT SetValue(winmdroot.Foundation.PCWSTR szValue);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetIAccessible(winmdroot.UI.Accessibility.IAccessible** ppAccessible);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_ChildId(int* pRetVal);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Name(winmdroot.Foundation.BSTR* pszName);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Value(winmdroot.Foundation.BSTR* pszValue);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Description(winmdroot.Foundation.BSTR* pszDescription);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Role(uint* pdwRole);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_State(uint* pdwState);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Help(winmdroot.Foundation.BSTR* pszHelp);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_KeyboardShortcut(winmdroot.Foundation.BSTR* pszKeyboardShortcut);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT GetSelection(winmdroot.System.Com.SAFEARRAY** pvarSelectedChildren);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_DefaultAction(winmdroot.Foundation.BSTR* pszDefaultAction);
}
}
}
}
|