This project contains various .NET assemblies that contain P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries. For example, Shlwapi.dll has all the exported functions from shlwapi.lib; Kernel32.dll has all for both kernel32.lib and kernelbase.lib. All assemblies are available via NuGet and provide builds against .NET 4.5, 4.8, 5.0, 6.0, .NET Standard 2.0, Core 3.1 and support SourceLink. Extensions are available for WinForms, WPF, and UWP projects. If you need support for other .NET versions, look to versions 3.3.15 and earlier. This project releases new versions every few weeks after sufficient testing. New releases are cataloged, along with release notes, in the Releases section and all NuGet packages are published to nuget.org. Each GitHub push triggers an AppVeyor build. The owners thank them for the free Open-Source account! The status of that build is in the header of this page.

Features

  • Look for the function you need in Microsoft documentation
  • Note which library or DLL the function is in
  • All functions that are imported from a single DLL should be placed into a single assembly that is named after the DLL
  • Where a structure is always passed by reference and where that structure needs to clean up memory allocations,
  • Look for the function you need in Microsoft documentation
  • All PInvoke calls are in assemblies prefixed by Vanara.PInvoke

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Vanara

Vanara Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Vanara!

Additional Project Details

Operating Systems

Linux, Windows

Programming Language

C#

Related Categories

C# Software Development Software, C# Frameworks

Registered

2022-09-19