|
// ------------------------------------------------------------------------------
// <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("36DC7AEF-33E6-4691-AFE1-2BE7274B3D33")]
[SupportedOSPlatform("windows5.1.2600")]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")]
internal unsafe partial struct IRangeValueProvider
:IVTable<IRangeValueProvider,IRangeValueProvider.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]<IRangeValueProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT>)lpVtbl[0])((IRangeValueProvider*)Unsafe.AsPointer(ref this), riid, ppvObject);
}
public uint AddRef()
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,uint>)lpVtbl[1])((IRangeValueProvider*)Unsafe.AsPointer(ref this));
}
public uint Release()
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,uint>)lpVtbl[2])((IRangeValueProvider*)Unsafe.AsPointer(ref this));
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT SetValue(IRangeValueProvider* pThis, double val)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.SetValue(val);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Sets the value of the control. (IRangeValueProvider.SetValue)</summary>
/// <param name="val">
/// <para>Type: <b>double</b> The value to set.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-irangevalueprovider-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>The actual value set depends on the control implementation. The control may round the requested value up or down.</remarks>
public void SetValue(double val)
{
((delegate *unmanaged [Stdcall]<IRangeValueProvider*,double ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IRangeValueProvider*)Unsafe.AsPointer(ref this), val).ThrowOnFailure();
}
/// <inheritdoc cref="get_Value(double*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_Value(out double pRetVal)
{
fixed (double* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_Value(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Value(IRangeValueProvider* pThis, double* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Value(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the value of the control.</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-irangevalueprovider-get_value">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_Value(double* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IRangeValueProvider*)Unsafe.AsPointer(ref this), pRetVal);
}
/// <inheritdoc cref="get_IsReadOnly(winmdroot.Foundation.BOOL*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_IsReadOnly(out winmdroot.Foundation.BOOL pRetVal)
{
fixed (winmdroot.Foundation.BOOL* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_IsReadOnly(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_IsReadOnly(IRangeValueProvider* pThis, winmdroot.Foundation.BOOL* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_IsReadOnly(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Indicates whether the value of a control is read-only. (IRangeValueProvider.get_IsReadOnly)</summary>
/// <remarks>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-irangevalueprovider-get_isreadonly">Learn more about this API from docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_IsReadOnly(winmdroot.Foundation.BOOL* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT>)lpVtbl[5])((IRangeValueProvider*)Unsafe.AsPointer(ref this), pRetVal);
}
/// <inheritdoc cref="get_Maximum(double*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_Maximum(out double pRetVal)
{
fixed (double* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_Maximum(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Maximum(IRangeValueProvider* pThis, double* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Maximum(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the maximum range value supported by the control.</summary>
/// <remarks>This value should be greater than [Minimum](nf-uiautomationcore-irangevalueprovider-get_minimum.md).</remarks>
public unsafe winmdroot.Foundation.HRESULT get_Maximum(double* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT>)lpVtbl[6])((IRangeValueProvider*)Unsafe.AsPointer(ref this), pRetVal);
}
/// <inheritdoc cref="get_Minimum(double*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_Minimum(out double pRetVal)
{
fixed (double* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_Minimum(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_Minimum(IRangeValueProvider* pThis, double* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_Minimum(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the minimum range value supported by the control.</summary>
/// <remarks>This value should be less than [Maximum](nf-uiautomationcore-irangevalueprovider-get_maximum.md).</remarks>
public unsafe winmdroot.Foundation.HRESULT get_Minimum(double* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT>)lpVtbl[7])((IRangeValueProvider*)Unsafe.AsPointer(ref this), pRetVal);
}
/// <inheritdoc cref="get_LargeChange(double*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_LargeChange(out double pRetVal)
{
fixed (double* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_LargeChange(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_LargeChange(IRangeValueProvider* pThis, double* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_LargeChange(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the value that is added to or subtracted from the IRangeValueProvider::Value property when a large change is made, such as when the PAGE DOWN key is pressed.</summary>
/// <remarks>
/// <para>The LargeChange property can support Not a Number (NaN) value. When returning a NaN value, the provider should return a quiet (non-signaling) NaN to avoid raising an exception if floating-point exceptions are turned on. The following example shows how to create a quiet NaN:</para>
/// <para></para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-irangevalueprovider-get_largechange#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_LargeChange(double* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IRangeValueProvider*)Unsafe.AsPointer(ref this), pRetVal);
}
/// <inheritdoc cref="get_SmallChange(double*)"/>
internal unsafe winmdroot.Foundation.HRESULT get_SmallChange(out double pRetVal)
{
fixed (double* pRetValLocal = &pRetVal)
{
winmdroot.Foundation.HRESULT __result = this.get_SmallChange(pRetValLocal);
return __result;
}
}
[UnmanagedCallersOnly(CallConvs = new []{
typeof(CallConvStdcall)}
)]
private static winmdroot.Foundation.HRESULT get_SmallChange(IRangeValueProvider* pThis, double* pRetVal)
{
try
{
winmdroot.Foundation.HRESULT __hr = ComHelpers.UnwrapCCW(pThis, out Interface __object);
if (__hr.Failed)
{
return __hr;
}
return __object.get_SmallChange(pRetVal);
}
catch (Exception ex)
{
return (winmdroot.Foundation.HRESULT)ex.HResult;
}
}
/// <summary>Specifies the value that is added to or subtracted from the IRangeValueProvider::Value property when a small change is made, such as when an arrow key is pressed.</summary>
/// <remarks>
/// <para>The SmallChange property can support Not a Number (NaN) value. When returning a NaN value, the provider should return a quiet (non-signaling) NaN to avoid raising an exception if floating-point exceptions are turned on. The following example shows how to create a quiet NaN:</para>
/// <para></para>
/// <para>This doc was truncated.</para>
/// <para><see href="https://learn.microsoft.com/windows/win32/api/uiautomationcore/nf-uiautomationcore-irangevalueprovider-get_smallchange#">Read more on docs.microsoft.com</see>.</para>
/// </remarks>
public unsafe winmdroot.Foundation.HRESULT get_SmallChange(double* pRetVal)
{
return ((delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT>)lpVtbl[9])((IRangeValueProvider*)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]<IRangeValueProvider*,global::System.Guid* ,void** ,winmdroot.Foundation.HRESULT> QueryInterface_1;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,uint> AddRef_2;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,uint> Release_3;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,double ,winmdroot.Foundation.HRESULT> SetValue_4;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT> get_Value_5;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,winmdroot.Foundation.BOOL* ,winmdroot.Foundation.HRESULT> get_IsReadOnly_6;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT> get_Maximum_7;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT> get_Minimum_8;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT> get_LargeChange_9;
internal delegate *unmanaged [Stdcall]<IRangeValueProvider*,double* ,winmdroot.Foundation.HRESULT> get_SmallChange_10;
}
public static void PopulateVTable(Vtbl* vtable)
{
vtable->SetValue_4 = &SetValue;
vtable->get_Value_5 = &get_Value;
vtable->get_IsReadOnly_6 = &get_IsReadOnly;
vtable->get_Maximum_7 = &get_Maximum;
vtable->get_Minimum_8 = &get_Minimum;
vtable->get_LargeChange_9 = &get_LargeChange;
vtable->get_SmallChange_10 = &get_SmallChange;
}
private void** lpVtbl;
/// <summary>The IID guid for this interface.</summary>
/// <value>{36dc7aef-33e6-4691-afe1-2be7274b3d33}</value>
internal static readonly Guid IID_Guid = new Guid(0x36DC7AEF, 0x33E6, 0x4691, 0xAF, 0xE1, 0x2B, 0xE7, 0x27, 0x4B, 0x3D, 0x33);
static ref readonly Guid IComIID.Guid {
[MethodImpl(MethodImplOptions.AggressiveInlining)]
get
{
ReadOnlySpan<byte> data = new byte[] {
0xEF,0x7A,0xDC,0x36,0xE6,0x33,0x91,0x46,0xAF,0xE1,0x2B,0xE7,0x27,0x4B,0x3D,0x33 };
return ref Unsafe.As<byte,Guid>(ref MemoryMarshal.GetReference(data));
}
}
[Guid("36DC7AEF-33E6-4691-AFE1-2BE7274B3D33"),InterfaceType(ComInterfaceType.InterfaceIsIUnknown),ComImport()]
[SupportedOSPlatform("windows5.1.2600")]
internal interface Interface
{
[PreserveSig()]
winmdroot.Foundation.HRESULT SetValue(double val);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Value(double* pRetVal);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_IsReadOnly(winmdroot.Foundation.BOOL* pRetVal);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Maximum(double* pRetVal);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_Minimum(double* pRetVal);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_LargeChange(double* pRetVal);
[PreserveSig()]
unsafe winmdroot.Foundation.HRESULT get_SmallChange(double* pRetVal);
}
}
}
}
|