microsoft/CsWin32
microsoft/CsWin32 has 2,527 GitHub stars and 132 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-07 20:53 UTC. Last push 2026-11-02.
A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.
Measured star growth
- in 24h
- +1
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalC#/Win32 Interop Projection
C#/Win32 provides P/Invoke and COM Interop projection support for C#. It generates strongly-typed, source-generated bindings from CsWn32-compatible .winmd metadata files. CsWin32 supports the metadata of Microsoft.Windows.SDK.Win32Metadata as the 1st-party metadata.
- Generates interop code quickly at compilation time.
- Generates friendly overloads/extensions (including
SafeHandle-types support). - Generates xml documentation based on and links back to learn.microsoft.com
- Ships no bulky assemblies alongside your application.
Getting started
Demo

Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,847 starspublic-apis/public-apis
A collective list of free APIs
497,093 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
441,612 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,159 stars