Microsoft.Windows.CsWin32 0.3.259
Automated generation of C# bindings for the Win32 API
Get immediate access to the full Win32 API from C#, just by naming the APIs you require. Generated APIs will be accurate for your CPU architecture and target Windows version. All APIs are generated directly into your project, allowing you to ship without any additional runtime dependencies.
Reach functionality that .NET doesn't expose via the Base Class Library (BCL) to give your library or application that feature that really sets it apart.
Install this package, then create a NativeMethods.txt file with a list of any APIs you need for example:
NativeMethods.txt:
CreateFile
IUIRibbon
S_OK
NTSTATUS
IsPwrHibernateAllowed
ISpellChecker
Any supporting APIs (e.g. enums, structs) are automatically generated when they are required by what you've directly asked for.
Call extern methods through the PInvoke class
using SafeHandle f = PInvoke.CreateFile(
"some.txt",
(uint)GENERIC_ACCESS_RIGHTS.GENERIC_READ,
FILE_SHARE_MODE.FILE_SHARE_READ,
lpSecurityAttributes: null,
FILE_CREATION_DISPOSITION.CREATE_ALWAYS,
FILE_FLAGS_AND_ATTRIBUTES.FILE_ATTRIBUTE_NORMAL,
hTemplateFile: null);
Learn more from our README on GitHub.
Showing the top 20 packages that depend on Microsoft.Windows.CsWin32.
| Packages | Downloads |
|---|---|
|
Uno.WinUI.Runtime.Skia.Win32
This package provides the platform support for Skia in Uno Platform projects.
|
2 |
|
Uno.WinUI.Runtime.Skia.Win32
This package provides the platform support for Skia in Uno Platform projects.
|
1 |
.NET Framework 2.0
- Microsoft.Windows.SDK.Win32Metadata (>= 68.0.4-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.13.25-experimental)
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
.NET Framework 4.5
- Microsoft.Windows.SDK.Win32Metadata (>= 68.0.4-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.13.25-experimental)
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
.NET Framework 4.6.1
- Microsoft.Windows.SDK.Win32Metadata (>= 68.0.4-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.13.25-experimental)
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
.NET Standard 1.1
- Microsoft.Windows.SDK.Win32Metadata (>= 68.0.4-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.13.25-experimental)
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
.NET Standard 2.0
- Microsoft.Windows.SDK.Win32Metadata (>= 68.0.4-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.13.25-experimental)
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
| Version | Downloads | Last updated |
|---|---|---|
| 0.3.259 | 1 | 2025/12/7 |
| 0.3.257 | 0 | 2025/11/25 |
| 0.3.253 | 0 | 2025/11/23 |
| 0.3.252 | 0 | 2025/11/20 |
| 0.3.250 | 0 | 2025/11/20 |
| 0.3.248 | 0 | 2025/11/15 |
| 0.3.242 | 0 | 2025/11/4 |
| 0.3.238 | 0 | 2025/10/31 |
| 0.3.236 | 0 | 2025/10/30 |
| 0.3.235 | 0 | 2025/10/29 |
| 0.3.228 | 0 | 2025/10/22 |
| 0.3.217 | 0 | 2025/10/16 |
| 0.3.213 | 0 | 2025/10/14 |
| 0.3.205 | 0 | 2025/9/10 |
| 0.3.183 | 0 | 2025/2/8 |
| 0.3.162 | 0 | 2025/1/18 |
| 0.3.106 | 0 | 2024/5/10 |
| 0.3.49-beta | 0 | 2023/10/10 |
| 0.3.46-beta | 0 | 2023/9/22 |
| 0.3.18-beta | 0 | 2023/6/28 |
| 0.3.2-beta | 0 | 2023/5/27 |
| 0.2.252-beta | 0 | 2023/5/25 |
| 0.2.229-beta | 0 | 2023/5/1 |
| 0.2.206-beta | 0 | 2023/3/20 |
| 0.2.188-beta | 0 | 2023/1/23 |
| 0.2.164-beta | 0 | 2022/12/9 |
| 0.2.162-beta | 0 | 2022/12/5 |
| 0.2.158-beta | 0 | 2022/11/29 |
| 0.2.138-beta | 0 | 2022/11/18 |
| 0.2.104-beta | 0 | 2022/10/28 |
| 0.2.63-beta | 0 | 2022/9/22 |
| 0.2.46-beta | 0 | 2022/9/2 |
| 0.2.10-beta | 0 | 2022/7/12 |
| 0.2.1-beta | 0 | 2022/6/6 |
| 0.1.691-beta | 0 | 2022/5/19 |
| 0.1.689-beta | 0 | 2022/5/19 |
| 0.1.647-beta | 0 | 2022/4/26 |
| 0.1.646-beta | 0 | 2022/4/25 |
| 0.1.635-beta | 0 | 2022/1/27 |
| 0.1.619-beta | 0 | 2021/11/15 |
| 0.1.588-beta | 0 | 2021/9/20 |
| 0.1.584-beta | 0 | 2021/9/18 |
| 0.1.560-beta | 0 | 2021/9/8 |
| 0.1.506-beta | 0 | 2021/6/28 |
| 0.1.422-beta | 0 | 2021/3/17 |
| 0.1.378-beta | 0 | 2021/2/24 |
| 0.1.319-beta | 0 | 2021/1/21 |