Skip to content

adamsitnik/WInterop

 
 

Repository files navigation

WInterop

Managed wrappers for Windows APIs

What it is

A set of .NET 5.0 libraries with P/Invokes and wrapper methods for Windows APIs.

  • WInterop.Desktop.dll (Windows platform APIs (Win32, NT))
  • WInterop.GdiPlus.dll (GDI+ APIs)
  • WInterop.Direct2d.dll (Direct2d, DirectWrite)

It is expected to be practically useful both as a component and as a place to document how to P/Invoke. Unlike existing documentation sites the code has version history and can be tested, which should be more practical and hopefully ultimately more robust.

WInterop is in an early stage of development. As it expands expect breaking changes. Contributions and feedback are welcome.

As the library targets .NET 5.0 it needs Visual Studio 16.7 or higher for development.

Goals

  • Provide a repository with useful Windows API P/Invokes and wrappers
  • Provide wrappers that provide a more managed friendly front-end for the P/Invokes
  • Make it easy to write code that needs direct API access by consuming the package directly
  • Document how to invoke specific APIs with the ability to test and view version history
  • Provide utility code that makes it easier to write your own wrappers
  • Expose all P/Invokes and data types publicly to allow for advanced/custom usage
  • Make it easy to find implemented wrappers
  • Allow targeting Windows 7 and above without writing separate libraries

About

Managed wrappers for Windows APIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 99.8%
  • Other 0.2%