Vanara.Core
3.4.2
Prefix Reserved
Install-Package Vanara.Core -Version 3.4.2
dotnet add package Vanara.Core --version 3.4.2
<PackageReference Include="Vanara.Core" Version="3.4.2" />
paket add Vanara.Core --version 3.4.2
#r "nuget: Vanara.Core, 3.4.2"
// Install Vanara.Core as a Cake Addin
#addin nuget:?package=Vanara.Core&version=3.4.2
// Install Vanara.Core as a Cake Tool
#tool nuget:?package=Vanara.Core&version=3.4.2
Vanara.Core NuGet Package
This library includes shared methods, structures and constants for use throughout the Vanara assemblies. Think of it as windows.h with some useful extensions. It includes:
- Extension methods for working with enumerated types (enum), FILETIME, and method and property extractions via reflection
- Extension and helper methods to marshaling structures arrays and strings
- SafeHandle based classes for working with memory allocated via CoTaskMem, HGlobal, or Local calls that handles packing and extracting arrays, structures and raw memory
- Safe pinning of objects in memory
- Memory stream based on marshaled memory
What is Vanara?
Vanara is a community project that contains various .NET assemblies which have P/Invoke functions, interfaces, enums and structures from Windows libraries. Each assembly is associated with one or a few tightly related libraries.
Issues?
First check if it's already fixed by trying the AppVeyor build. If you're still running into problems, file an issue.
Included in Vanara.Core
Classes | Structures | Enumerations | Interfaces |
---|---|---|---|
AlignedMemory<br>BeginEndEventContext<br>BitHelper<br>ByteSizeFormatter<br>ComConnectionPoint<br>ComReleaser<br>ComReleaserFactory<br>ComStream<br>ComTypeExtensions<br>ConstantConversionExtensions<br>CorrespondingTypeAttribute<br>CoTaskMemoryMethods<br>EnumerableEqualityComparer<br>EnumExtensions<br>EventedList<br>FileTimeExtensions<br>Formatter<br>FormatterComposer<br>GenericSafeHandle<br>GenericVirtualReadOnlyDictionary<br>HexDempHelpers<br>HGlobalMemoryMethods<br>History<br>IArrayStructExtensions<br>IArrayStructMarshaler<br>InteropExtensions<br>IntPtrConverter<br>IOExtensions<br>LibHelper<br>ListChangedEventArgs<br>MarshalingStream<br>MemoryMethodsBase<br>NativeMemoryEnumerator<br>NativeMemoryStream<br>PinnedObject<br>ReflectionExtensions<br>ReflectionExtensions<br>SafeAllocatedMemoryHandle<br>SafeAllocatedMemoryHandleBase<br>SafeByteArray<br>SafeCoTaskMemHandle<br>SafeCoTaskMemString<br>SafeCoTaskMemStruct<br>SafeGuidPtr<br>SafeHGlobalHandle<br>SafeHGlobalStruct<br>SafeMemoryHandle<br>SafeMemoryHandleExt<br>SafeMemString<br>SafeMemStruct<br>SparseArray<br>StringHelper<br>TryGetValueDelegate<br>UntypedNativeMemoryEnumerator<br>VanaraCustomMarshaler<br>VanaraMarshaler<br>VanaraMarshalerAttribute<br>VirtualDictionary<br>VirtualReadOnlyDictionary<br> | BOOL<br>BOOLEAN<br>EnumFlagIndexer<br>GuidPtr<br>RefEnumerator<br>SizeT<br>StrPtrAnsi<br>StrPtrAuto<br>StrPtrUni<br>time_t<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | CorrespondingAction<br>FileAttributeConstant<br>FileOpConstant<br>FilePermissionConstant<br>StringListPackMethod<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> | IArrayStruct<br>IHistory<br>IMemoryMethods<br>ISafeMemoryHandle<br>ISimpleMemoryMethods<br>IVanaraMarshaler<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br> |
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.5
- System.Memory (>= 4.5.3)
- System.ValueTuple (>= 4.3.0)
-
.NETFramework 4.8
- System.Memory (>= 4.5.3)
-
.NETStandard 2.0
- System.Memory (>= 4.5.3)
- System.ValueTuple (>= 4.3.0)
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
NuGet packages (87)
Showing the top 5 NuGet packages that depend on Vanara.Core:
Package | Downloads |
---|---|
Vanara.PInvoke.Shared
Shared methods, structures and constants for use throughout the Vanara.PInvoke assemblies. Includes: * IEnumerable helpers for COM enumerations * Custom marshaler for CoTaskMem pointers * Enhanced error results classes for HRESULT, Win32Error and NTStatus * Standard windows.h macros (e.g. HIWORD, MAKELONG, etc.) * Overlapped method wrapper * Resource ID holder * Shared structures and enums (see release notes) |
|
Vanara.PInvoke.Kernel32
PInvoke API (methods, structures and constants) imported from Windows Kernel32.dll. |
|
Vanara.PInvoke.Security
PInvoke API (methods, structures and constants) imported from Windows AdvApi32.dll, Authz.dll and Secur32.dll. |
|
Vanara.PInvoke.Cryptography
PInvoke API (methods, structures and constants) imported from Windows crypt32.dll, bcrypt.dll, ncrypt.dll, tokenbinding.dll, cryptnet.dll, cryptdlg.dll and cryptui.dll. |
|
Vanara.PInvoke.Gdi32
PInvoke API (methods, structures and constants) imported from Windows Gdi32.dll |
GitHub repositories (2)
Showing the top 2 popular GitHub repositories that depend on Vanara.Core:
Repository | Stars |
---|---|
Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher
⇒ Disable Chrome's Developer Mode Extension Warning Popup & Elision WWW/HTTPS Hiding & Debugging Extension Popup
|
|
zhupingqi/RuiJi.Net
crawler framework, distributed crawler extractor
|
Version | Downloads | Last updated |
---|---|---|
3.4.2 | 1,010 | 5/13/2022 |
3.4.1 | 3,758 | 5/5/2022 |
3.4.0 | 11,310 | 3/14/2022 |
3.3.15 | 20,020 | 12/27/2021 |
3.3.14 | 17,371 | 10/26/2021 |
3.3.13 | 16,231 | 9/30/2021 |
3.3.12 | 11,465 | 8/30/2021 |
3.3.11 | 17,809 | 7/22/2021 |
3.3.10 | 12,084 | 6/4/2021 |
3.3.9 | 7,262 | 5/7/2021 |
3.3.8 | 11,324 | 4/7/2021 |
3.3.7 | 7,761 | 3/24/2021 |
3.3.6 | 4,728 | 3/19/2021 |
3.3.5 | 7,110 | 3/1/2021 |
3.3.4 | 5,416 | 2/11/2021 |
3.3.3 | 10,962 | 2/3/2021 |
3.3.2 | 4,670 | 1/21/2021 |
3.3.1 | 5,928 | 1/20/2021 |
3.3.0 | 8,443 | 11/20/2020 |
3.2.21 | 4,162 | 11/13/2020 |
3.2.20 | 6,835 | 11/8/2020 |
3.2.19 | 10,659 | 10/23/2020 |
3.2.18 | 3,665 | 10/21/2020 |
3.2.17 | 11,053 | 9/20/2020 |
3.2.16 | 4,068 | 9/7/2020 |
3.2.15 | 3,880 | 8/30/2020 |
3.2.14 | 3,793 | 8/20/2020 |
3.2.13 | 4,516 | 7/27/2020 |
3.2.12 | 4,056 | 7/13/2020 |
3.2.11 | 4,969 | 6/28/2020 |
3.2.10 | 6,074 | 6/14/2020 |
3.2.9 | 4,759 | 6/3/2020 |
3.2.7 | 7,161 | 5/4/2020 |
3.2.6 | 4,150 | 4/21/2020 |
3.2.5 | 3,765 | 4/15/2020 |
3.2.4 | 3,810 | 4/12/2020 |
3.2.3 | 5,886 | 4/1/2020 |
3.2.2 | 3,434 | 3/24/2020 |
3.2.1 | 4,171 | 3/17/2020 |
3.2.0 | 3,976 | 2/27/2020 |
3.1.9 | 4,177 | 1/17/2020 |
3.1.8 | 3,641 | 1/13/2020 |
3.1.7 | 3,533 | 1/6/2020 |
3.1.6 | 3,627 | 12/12/2019 |
3.1.5 | 3,668 | 11/26/2019 |
3.1.4 | 3,307 | 11/25/2019 |
3.1.3 | 3,799 | 11/8/2019 |
3.1.2 | 3,304 | 11/4/2019 |
3.1.1 | 4,825 | 10/17/2019 |
3.1.0 | 3,198 | 10/3/2019 |
3.0.1 | 3,275 | 9/20/2019 |
3.0.0 | 4,244 | 8/27/2019 |
2.3.11 | 3,851 | 6/9/2019 |
2.3.10 | 2,377 | 6/5/2019 |
2.3.9 | 2,383 | 5/26/2019 |
2.3.8 | 2,477 | 5/13/2019 |
2.3.7 | 2,760 | 4/24/2019 |
2.3.6 | 3,448 | 4/17/2019 |
2.3.5 | 2,345 | 4/10/2019 |
2.3.4 | 2,427 | 3/9/2019 |
2.3.3 | 2,131 | 3/8/2019 |
2.3.2 | 2,143 | 2/28/2019 |
2.3.1 | 2,200 | 2/25/2019 |
2.3.0 | 2,145 | 2/22/2019 |
2.2.1 | 2,157 | 2/12/2019 |
2.2.0 | 2,127 | 2/1/2019 |
2.1.2 | 4,568 | 1/14/2019 |
2.1.0 | 3,038 | 12/15/2018 |
2.0.1 | 2,227 | 12/7/2018 |
2.0.0 | 2,498 | 11/28/2018 |
1.1.0 | 3,101 | 9/10/2018 |
1.0.18 | 2,292 | 8/10/2018 |
1.0.17 | 2,181 | 7/30/2018 |
1.0.16 | 2,646 | 6/29/2018 |
1.0.15 | 2,207 | 6/27/2018 |
1.0.14 | 2,231 | 6/8/2018 |
1.0.13 | 2,100 | 6/6/2018 |
1.0.12 | 2,409 | 4/5/2018 |
1.0.11 | 2,215 | 4/4/2018 |
1.0.10 | 2,104 | 3/27/2018 |
1.0.8 | 4,198 | 2/7/2018 |
1.0.7 | 2,137 | 1/27/2018 |
1.0.6 | 2,222 | 1/8/2018 |
1.0.5 | 2,137 | 12/28/2017 |
1.0.4 | 2,122 | 12/15/2017 |
1.0.3 | 1,819 | 12/8/2017 |
1.0.2 | 1,798 | 11/30/2017 |
1.0.1 | 1,838 | 11/28/2017 |
1.0.0 | 778 | 3/3/2017 |
Currently implements:
Classes
AlignedMemory<T>, BeginEndEventContext, BitHelper, ByteSizeFormatter, ComConnectionPoint, ComReleaser<T>, ComReleaserFactory, ComStream, ComTypeExtensions, ConstantConversionExtensions, CorrespondingTypeAttribute, CoTaskMemoryMethods, EnumerableEqualityComparer<T>, EnumExtensions, EventedList<T>, FileTimeExtensions, Formatter, FormatterComposer, GenericSafeHandle, GenericVirtualReadOnlyDictionary<T>, HexDempHelpers, HGlobalMemoryMethods, History<T>, IArrayStructExtensions, IArrayStructMarshaler<T>, InteropExtensions, IntPtrConverter, IOExtensions, LibHelper, ListChangedEventArgs<T>, MarshalingStream, MemoryMethodsBase, NativeMemoryEnumerator<T>, NativeMemoryStream, PinnedObject, ReflectionExtensions, ReflectionExtensions, SafeAllocatedMemoryHandle, SafeAllocatedMemoryHandleBase, SafeByteArray, SafeCoTaskMemHandle, SafeCoTaskMemString, SafeCoTaskMemStruct<T>, SafeGuidPtr, SafeHGlobalHandle, SafeHGlobalStruct<T>, SafeMemoryHandle<T>, SafeMemoryHandleExt<T>, SafeMemString<T>, SafeMemStruct<T>, SparseArray<T>, StringHelper, TryGetValueDelegate, UntypedNativeMemoryEnumerator, VanaraCustomMarshaler<T>, VanaraMarshaler, VanaraMarshalerAttribute, VirtualDictionary<T>, VirtualReadOnlyDictionary<T>
Structures
BOOL, BOOLEAN, EnumFlagIndexer<T>, GuidPtr, RefEnumerator<T>, SizeT, StrPtrAnsi, StrPtrAuto, StrPtrUni, time_t
Enumerations
CorrespondingAction, FileAttributeConstant, FileOpConstant, FilePermissionConstant, StringListPackMethod