dotnet/pinvoke
A library containing all P/Invoke code so you don't have to import it every time. Maintained and updated to support the latest Windows OS. observed · 2026-08-28
Health v2 · maintenance only
10/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: archived
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3968
- days_rel: n/a
- days_push: 1134
- n_releases_24m: 0
Adoption not part of the score
2178 stars · 223 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of .NET libraries providing pre-written, compile-verified P/Invoke signatures for Win32 and other native libraries, packaged as NuGet packages per native DLL. It offers higher-level APIs (SafeHandles, enums, XML docs) instead of raw IntPtr and uint flags.
Use cases
- call win32 apis from c#
- p/invoke signatures for bcrypt or kernel32
- avoid hand-writing dllimport declarations
- build windows store apps using native apis
- interop with native libraries from .net
When to choose
- maintaining a legacy .NET Framework or .NET Core app that already depends on these packages
- you need quick, tested P/Invoke signatures for common Win32 DLLs on older .NET targets
When to avoid
- starting a new C# project - use CsWin32 instead, which is the recommended successor
- you need actively maintained support for the latest Windows APIs
Facets
library · maturity abandoned
sdk developer-tools windows developer-tools apis windows dotnet cross-platform pinvoke interop win32 csharp nuget native-interop
1 source
- readme: https://github.com/dotnet/pinvoke · fetched 2026-08-28 · 30253e66885c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dotnet/pinvoke | main | 10 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem