|
// ------------------------------------------------------------------------------
// <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 Foundation
{
/// <summary>The DECIMAL structure represents a decimal data type that provides a sign and scale for a number.</summary>
/// <remarks></remarks>
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")]
internal partial struct DECIMAL
{
/// <summary>Reserved.</summary>
internal ushort wReserved;
internal _Anonymous1_e__Union Anonymous1;
/// <summary>The high 32 bits of the number.</summary>
internal uint Hi32;
internal _Anonymous2_e__Union Anonymous2;
public unsafe DECIMAL(decimal value)
{
// DECIMAL is layout-compatible with decimal.
this = *(DECIMAL*)&value;
}
public static unsafe implicit operator decimal(DECIMAL value)
{
// DECIMAL is layout-compatible with decimal.
return *(decimal*)&value;
}
public static implicit operator DECIMAL(decimal value) => new DECIMAL(value);
[StructLayout(LayoutKind.Explicit)]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")]
internal partial struct _Anonymous1_e__Union
{
[FieldOffset(0)]
internal _Anonymous_e__Struct Anonymous;
[FieldOffset(0)]
internal ushort signscale;
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")]
internal partial struct _Anonymous_e__Struct
{
internal byte scale;
internal byte sign;
}
}
[StructLayout(LayoutKind.Explicit)]
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")]
internal partial struct _Anonymous2_e__Union
{
[FieldOffset(0)]
internal _Anonymous_e__Struct Anonymous;
[FieldOffset(0)]
internal ulong Lo64;
[global::System.CodeDom.Compiler.GeneratedCode("Microsoft.Windows.CsWin32", "0.3.287+85e3fa26dd.RR")]
internal partial struct _Anonymous_e__Struct
{
internal uint Lo32;
internal uint Mid32;
}
}
}
}
}
|