Microsoft.Windows.CsWin32
0.3.106
Prefix Reserved
dotnet add package Microsoft.Windows.CsWin32 --version 0.3.106
NuGet\Install-Package Microsoft.Windows.CsWin32 -Version 0.3.106
<PackageReference Include="Microsoft.Windows.CsWin32" Version="0.3.106"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Microsoft.Windows.CsWin32 --version 0.3.106
#r "nuget: Microsoft.Windows.CsWin32, 0.3.106"
// Install Microsoft.Windows.CsWin32 as a Cake Addin #addin nuget:?package=Microsoft.Windows.CsWin32&version=0.3.106 // Install Microsoft.Windows.CsWin32 as a Cake Tool #tool nuget:?package=Microsoft.Windows.CsWin32&version=0.3.106
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.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp1.0 was computed. netcoreapp1.1 was computed. netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard1.0 is compatible. netstandard1.1 was computed. netstandard1.2 was computed. netstandard1.3 was computed. netstandard1.4 was computed. netstandard1.5 was computed. netstandard1.6 was computed. netstandard2.0 was computed. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen30 was computed. tizen40 was computed. tizen60 was computed. |
Universal Windows Platform | uap was computed. uap10.0 was computed. |
Windows Phone | wp8 was computed. wp81 was computed. wpa81 was computed. |
Windows Store | netcore was computed. netcore45 was computed. netcore451 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
- Microsoft.Windows.SDK.Win32Metadata (>= 60.0.34-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.11.4-experimental)
-
.NETFramework 4.5
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
- Microsoft.Windows.SDK.Win32Metadata (>= 60.0.34-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.11.4-experimental)
-
.NETFramework 4.6.1
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
- Microsoft.Windows.SDK.Win32Metadata (>= 60.0.34-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.11.4-experimental)
-
.NETStandard 1.1
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
- Microsoft.Windows.SDK.Win32Metadata (>= 60.0.34-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.11.4-experimental)
-
.NETStandard 2.0
- Microsoft.Windows.SDK.Win32Docs (>= 0.1.42-alpha)
- Microsoft.Windows.SDK.Win32Metadata (>= 60.0.34-preview)
- Microsoft.Windows.WDK.Win32Metadata (>= 0.11.4-experimental)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Microsoft.Windows.CsWin32:
Package | Downloads |
---|---|
WinConsole
WinConsole Library |
GitHub repositories (92)
Showing the top 5 popular GitHub repositories that depend on Microsoft.Windows.CsWin32:
Repository | Stars |
---|---|
microsoft/PowerToys
Windows system utilities to maximize productivity
|
|
files-community/Files
A modern file manager that helps users organize their files and folders.
|
|
DevToys-app/DevToys
A Swiss Army knife for developers.
|
|
AvaloniaUI/Avalonia
Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
|
|
netchx/netch
A simple proxy client
|
Version | Downloads | Last updated |
---|---|---|
0.3.106 | 145,981 | 5/10/2024 |
0.3.49-beta | 125,391 | 10/10/2023 |
0.3.46-beta | 12,064 | 9/22/2023 |
0.3.18-beta | 52,188 | 6/28/2023 |
0.3.2-beta | 6,813 | 5/27/2023 |
0.2.252-beta | 1,383 | 5/25/2023 |
0.2.229-beta | 7,016 | 5/1/2023 |
0.2.206-beta | 9,764 | 3/20/2023 |
0.2.188-beta | 25,267 | 1/23/2023 |
0.2.164-beta | 99,930 | 12/9/2022 |
0.2.162-beta | 3,920 | 12/5/2022 |
0.2.158-beta | 394 | 11/29/2022 |
0.2.138-beta | 9,127 | 11/18/2022 |
0.2.104-beta | 20,037 | 10/28/2022 |
0.2.63-beta | 84,026 | 9/22/2022 |
0.2.46-beta | 27,956 | 9/2/2022 |
0.2.10-beta | 12,178 | 7/12/2022 |
0.2.1-beta | 15,365 | 6/6/2022 |
0.1.691-beta | 5,274 | 5/19/2022 |
0.1.689-beta | 225 | 5/19/2022 |
0.1.647-beta | 120,857 | 4/26/2022 |
0.1.646-beta | 233 | 4/25/2022 |
0.1.635-beta | 42,955 | 1/27/2022 |
0.1.619-beta | 14,735 | 11/15/2021 |
0.1.588-beta | 29,560 | 9/20/2021 |
0.1.584-beta | 320 | 9/18/2021 |
0.1.560-beta | 513 | 9/8/2021 |
0.1.506-beta | 6,841 | 6/28/2021 |
0.1.422-beta | 4,904 | 3/17/2021 |
0.1.378-beta | 3,114 | 2/24/2021 |
0.1.319-beta | 11,211 | 1/21/2021 |