|
// ------------------------------------------------------------------------------
// <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("352FFBA8-0973-437C-A61F-F64CAFD81DF9")]
[SupportedOSPlatform("windows6.1")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal unsafe partial struct IUIAutomationCondition
:IVTable<IUIAutomationCondition,IUIAutomationCondition.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]<IUIAutomationCondition*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IUIAutomationCondition*)Unsafe.AsPointer(ref this), riid, ppvObject);
}
public uint AddRef()
{
return ((delegate *unmanaged [Stdcall]<IUIAutomationCondition*,uint>)lpVtbl[1])((IUIAutomationCondition*)Unsafe.AsPointer(ref this));
}
public uint Release()
{
return ((delegate *unmanaged [Stdcall]<IUIAutomationCondition*,uint>)lpVtbl[2])((IUIAutomationCondition*)Unsafe.AsPointer(ref this));
}
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]<IUIAutomationCondition*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
internal delegate *unmanaged [Stdcall]<IUIAutomationCondition*,uint> AddRef_2;
internal delegate *unmanaged [Stdcall]<IUIAutomationCondition*,uint> Release_3;
}
public static void PopulateVTable(Vtbl* vtable)
{
}
private void** lpVtbl;
/// <summary>The IID guid for this interface.</summary>
/// <value>{352ffba8-0973-437c-a61f-f64cafd81df9}</value>
internal static readonly Guid IID_Guid = new Guid(0x352FFBA8, 0x0973, 0x437C, 0xA6, 0x1F, 0xF6, 0x4C, 0xAF, 0xD8, 0x1D, 0xF9);
static ref readonly Guid IComIID.Guid {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xA8,0xFB,0x2F,0x35,0x73,0x09,0x7C,0x43,0xA6,0x1F,0xF6,0x4C,0xAF,0xD8,0x1D,0xF9 };
return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
}
}
[Guid("352FFBA8-0973-437C-A61F-F64CAFD81DF9"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()]
[SupportedOSPlatform("windows6.1")]
internal interface Interface
{
}
}
}
}
|