-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from tannergooding/master
Generating bindings for WinGdi and WinUser
- Loading branch information
Showing
366 changed files
with
21,248 additions
and
649 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
using System; | ||
using System.Diagnostics; | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
/// <summary>Defines the type of a member as it was used in the native signature.</summary> | ||
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter | AttributeTargets.ReturnValue, AllowMultiple = false, Inherited = true)] | ||
[Conditional("DEBUG")] | ||
internal sealed class NativeTypeNameAttribute : Attribute | ||
{ | ||
private readonly string _name; | ||
|
||
/// <summary>Initializes a new instance of the <see cref="NativeTypeNameAttribute" /> class.</summary> | ||
/// <param name="name">The name of the type that was used in the native signature.</param> | ||
public NativeTypeNameAttribute(string name) | ||
{ | ||
_name = name; | ||
} | ||
|
||
/// <summary>Gets the name of the type that was used in the native signature.</summary> | ||
public string Name => _name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. --> | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<NoWarn>1573;1591;$(NoWarn)</NoWarn> | ||
<RootNamespace>TerraFX.Interop</RootNamespace> | ||
<TargetFramework>netcoreapp3.0</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Windows\TerraFX.Interop.Windows.csproj" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public partial struct ABC | ||
{ | ||
public int abcA; | ||
|
||
[NativeTypeName("UINT")] | ||
public uint abcB; | ||
|
||
public int abcC; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public partial struct ABCFLOAT | ||
{ | ||
[NativeTypeName("FLOAT")] | ||
public float abcfA; | ||
|
||
[NativeTypeName("FLOAT")] | ||
public float abcfB; | ||
|
||
[NativeTypeName("FLOAT")] | ||
public float abcfC; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public partial struct ABORTPATH | ||
{ | ||
public EMR emr; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
[UnmanagedFunctionPointer(CallingConvention.StdCall)] | ||
[return: NativeTypeName("BOOL")] | ||
public unsafe delegate int ABORTPROC([NativeTypeName("HDC")] IntPtr param0, int param1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public partial struct AXESLIST | ||
{ | ||
[NativeTypeName("DWORD")] | ||
public uint axlReserved; | ||
|
||
[NativeTypeName("DWORD")] | ||
public uint axlNumAxes; | ||
|
||
[NativeTypeName("AXISINFOW [16]")] | ||
public _axlAxisInfo_e__FixedBuffer axlAxisInfo; | ||
|
||
public partial struct _axlAxisInfo_e__FixedBuffer | ||
{ | ||
internal AXISINFO e0; | ||
internal AXISINFO e1; | ||
internal AXISINFO e2; | ||
internal AXISINFO e3; | ||
internal AXISINFO e4; | ||
internal AXISINFO e5; | ||
internal AXISINFO e6; | ||
internal AXISINFO e7; | ||
internal AXISINFO e8; | ||
internal AXISINFO e9; | ||
internal AXISINFO e10; | ||
internal AXISINFO e11; | ||
internal AXISINFO e12; | ||
internal AXISINFO e13; | ||
internal AXISINFO e14; | ||
internal AXISINFO e15; | ||
|
||
public ref AXISINFO this[int index] => ref AsSpan()[index]; | ||
|
||
public Span<AXISINFO> AsSpan() => MemoryMarshal.CreateSpan(ref e0, 16); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public unsafe partial struct AXISINFO | ||
{ | ||
[NativeTypeName("LONG")] | ||
public int axMinValue; | ||
|
||
[NativeTypeName("LONG")] | ||
public int axMaxValue; | ||
|
||
[NativeTypeName("WCHAR [16]")] | ||
public fixed ushort axAxisName[16]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public unsafe partial struct BITMAP | ||
{ | ||
[NativeTypeName("LONG")] | ||
public int bmType; | ||
|
||
[NativeTypeName("LONG")] | ||
public int bmWidth; | ||
|
||
[NativeTypeName("LONG")] | ||
public int bmHeight; | ||
|
||
[NativeTypeName("LONG")] | ||
public int bmWidthBytes; | ||
|
||
[NativeTypeName("WORD")] | ||
public ushort bmPlanes; | ||
|
||
[NativeTypeName("WORD")] | ||
public ushort bmBitsPixel; | ||
|
||
[NativeTypeName("LPVOID")] | ||
public void* bmBits; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public partial struct BITMAPCOREHEADER | ||
{ | ||
[NativeTypeName("DWORD")] | ||
public uint bcSize; | ||
|
||
[NativeTypeName("WORD")] | ||
public ushort bcWidth; | ||
|
||
[NativeTypeName("WORD")] | ||
public ushort bcHeight; | ||
|
||
[NativeTypeName("WORD")] | ||
public ushort bcPlanes; | ||
|
||
[NativeTypeName("WORD")] | ||
public ushort bcBitCount; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
// Ported from um\wingdi.h in the Windows SDK for Windows 10.0.15063.0 | ||
// Original source is Copyright © Microsoft. All rights reserved. | ||
|
||
using System; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace TerraFX.Interop | ||
{ | ||
public partial struct BITMAPCOREINFO | ||
{ | ||
[NativeTypeName("BITMAPCOREHEADER")] | ||
public BITMAPCOREHEADER bmciHeader; | ||
|
||
[NativeTypeName("RGBTRIPLE [1]")] | ||
public _bmciColors_e__FixedBuffer bmciColors; | ||
|
||
public partial struct _bmciColors_e__FixedBuffer | ||
{ | ||
internal RGBTRIPLE e0; | ||
|
||
public ref RGBTRIPLE this[int index] => ref AsSpan(int.MaxValue)[index]; | ||
|
||
public Span<RGBTRIPLE> AsSpan(int length) => MemoryMarshal.CreateSpan(ref e0, length); | ||
} | ||
} | ||
} |
Oops, something went wrong.