Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

microsoft/CsWin32

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

C#/Win32 Interop Projection

NuGet badge NuGet badge

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

Animation demonstrating p/invoke code generation

About

A source generator to add a user-defined set of Win32 P/Invoke methods and supporting types to a C# project.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Morty Proxy This is a proxified and sanitized view of the page, visit original site.