Vanara.Core
4.0.4
Prefix Reserved
dotnet add package Vanara.Core --version 4.0.4
NuGet\Install-Package Vanara.Core -Version 4.0.4
<PackageReference Include="Vanara.Core" Version="4.0.4" />
paket add Vanara.Core --version 4.0.4
#r "nuget: Vanara.Core, 4.0.4"
// Install Vanara.Core as a Cake Addin #addin nuget:?package=Vanara.Core&version=4.0.4 // Install Vanara.Core as a Cake Tool #tool nuget:?package=Vanara.Core&version=4.0.4
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 BeginEndEventContext BitHelper ByteSizeFormatter ComConnectionPoint ComEnumString ComReleaser ComReleaserFactory ComStream ComTypeExtensions ConstantConversionExtensions CorrespondingTypeAttribute CoTaskMemoryMethods EnumerableEqualityComparer EnumExtensions EventedList FileTimeExtensions Formatter FormatterComposer GenericSafeHandle GenericVirtualReadOnlyDictionary HexDempHelpers HGlobalMemoryMethods History IArrayStructExtensions IArrayStructMarshaler InteropExtensions IntPtrConverter IOExtensions LibHelper LinqHelpers ListChangedEventArgs MarshalingStream MemoryMethodsBase NativeMemoryEnumerator NativeMemoryStream PinnedObject ReflectionExtensions ReflectionExtensions SafeAllocatedMemoryHandle SafeAllocatedMemoryHandleBase SafeByteArray SafeCoTaskMemHandle SafeCoTaskMemString SafeCoTaskMemStruct SafeGuidPtr SafeHGlobalHandle SafeHGlobalStruct SafeLPSTR SafeLPTSTR SafeLPWSTR SafeMemoryHandle SafeMemoryHandleExt SafeMemoryPool SafeMemString SafeMemStruct SparseArray StringHelper TryGetDelegate TryGetValueDelegate UntypedNativeMemoryEnumerator VanaraCustomMarshaler VanaraMarshaler VanaraMarshalerAttribute VirtualDictionary VirtualList VirtualListMethodCarrier VirtualReadOnlyDictionary VirtualReadOnlyList | AnySizeStructFieldArray AnySizeStructUnmanagedFieldArray ArrayPointer BOOL BOOLEAN EnumFlagIndexer GuidPtr LPCSTRArrayPointer LPCTSTRArrayPointer LPCWSTRArrayPointer ManagedArrayPointer RefEnumerator SizeT StrPtrAnsi StrPtrAuto StrPtrUni StructPointer time_t | CorrespondingAction FileAttributeConstant FileOpConstant FilePermissionConstant StringListPackMethod | IArrayStruct IHandle IHistory IMemoryMethods ISafeMemoryHandle ISimpleMemoryMethods ISupportIndexer IVanaraMarshaler IVirtualListMethods IVirtualReadOnlyListMethods |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 is compatible. net5.0-windows was computed. net6.0 is compatible. 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 is compatible. 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. net8.0-windows7.0 is compatible. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 is compatible. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. 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 is compatible. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETCoreApp 3.1
- No dependencies.
-
.NETFramework 4.5
- System.Memory (>= 4.5.5)
- System.ValueTuple (>= 4.5.0)
-
.NETFramework 4.8
- System.Memory (>= 4.5.5)
-
.NETStandard 2.0
- System.Memory (>= 4.5.5)
- System.ValueTuple (>= 4.5.0)
-
net5.0
- No dependencies.
-
net6.0
- No dependencies.
-
net7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
NuGet packages (110)
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.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.Security
PInvoke API (methods, structures and constants) imported from Windows AdvApi32.dll, Authz.dll, sspicli.dll, schannel.dll, tdh.dll and Secur32.dll. |
|
Vanara.PInvoke.Gdi32
PInvoke API (methods, structures and constants) imported from Windows Gdi32.dll |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Vanara.Core:
Repository | Stars |
---|---|
dahall/Vanara
A set of .NET libraries for Windows implementing PInvoke calls to many native Windows APIs with supporting wrappers.
|
|
omeryanar/FileExplorer
Windows File Explorer alternative with tab browsing
|
|
zhupingqi/RuiJi.Net
crawler framework, distributed crawler extractor
|
|
zqhong/RyzenTuner
A tool that supports adjusting the power limit of Ryzen mobile processors and the QoS level and priority of Windows processes
|
Version | Downloads | Last updated |
---|---|---|
4.0.4 | 29,441 | 9/13/2024 |
4.0.3 | 50,543 | 8/5/2024 |
4.0.2 | 36,121 | 6/24/2024 |
4.0.1 | 71,820 | 4/30/2024 |
4.0.0 | 33,127 | 3/29/2024 |
4.0.0-beta2 | 4,791 | 1/22/2024 |
4.0.0-beta | 5,780 | 11/20/2023 |
3.4.17 | 165,462 | 10/18/2023 |
3.4.16 | 91,801 | 8/7/2023 |
3.4.15 | 130,765 | 5/18/2023 |
3.4.14 | 79,037 | 4/15/2023 |
3.4.13 | 99,010 | 2/4/2023 |
3.4.12 | 45,548 | 1/15/2023 |
3.4.11 | 85,442 | 11/15/2022 |
3.4.10 | 44,391 | 10/25/2022 |
3.4.9 | 42,987 | 10/3/2022 |
3.4.8 | 39,699 | 9/16/2022 |
3.4.7 | 37,226 | 9/3/2022 |
3.4.6 | 45,606 | 8/7/2022 |
3.4.5 | 41,698 | 7/17/2022 |
3.4.4 | 30,591 | 7/5/2022 |
3.4.3 | 46,583 | 6/14/2022 |
3.4.2 | 40,048 | 5/13/2022 |
3.4.1 | 32,275 | 5/5/2022 |
3.4.0 | 46,138 | 3/14/2022 |
3.3.15 | 105,273 | 12/27/2021 |
3.3.14 | 40,761 | 10/26/2021 |
3.3.13 | 31,583 | 9/30/2021 |
3.3.12 | 32,154 | 8/30/2021 |
3.3.11 | 38,767 | 7/22/2021 |
3.3.10 | 26,096 | 6/4/2021 |
3.3.9 | 19,056 | 5/7/2021 |
3.3.8 | 22,551 | 4/7/2021 |
3.3.7 | 18,545 | 3/24/2021 |
3.3.6 | 15,399 | 3/19/2021 |
3.3.5 | 18,623 | 3/1/2021 |
3.3.4 | 18,201 | 2/11/2021 |
3.3.3 | 23,617 | 2/3/2021 |
3.3.2 | 15,022 | 1/21/2021 |
3.3.1 | 18,191 | 1/20/2021 |
3.3.0 | 20,449 | 11/20/2020 |
3.2.21 | 13,541 | 11/13/2020 |
3.2.20 | 16,309 | 11/8/2020 |
3.2.19 | 21,358 | 10/23/2020 |
3.2.18 | 12,825 | 10/21/2020 |
3.2.17 | 25,456 | 9/20/2020 |
3.2.16 | 13,762 | 9/7/2020 |
3.2.15 | 12,712 | 8/30/2020 |
3.2.14 | 12,355 | 8/20/2020 |
3.2.13 | 13,062 | 7/27/2020 |
3.2.12 | 12,367 | 7/13/2020 |
3.2.11 | 13,360 | 6/28/2020 |
3.2.10 | 14,489 | 6/14/2020 |
3.2.9 | 13,150 | 6/3/2020 |
3.2.7 | 15,962 | 5/4/2020 |
3.2.6 | 12,301 | 4/21/2020 |
3.2.5 | 12,041 | 4/15/2020 |
3.2.4 | 11,923 | 4/12/2020 |
3.2.3 | 14,970 | 4/1/2020 |
3.2.2 | 11,015 | 3/24/2020 |
3.2.1 | 11,950 | 3/17/2020 |
3.2.0 | 11,650 | 2/27/2020 |
3.1.9 | 11,791 | 1/17/2020 |
3.1.8 | 11,376 | 1/13/2020 |
3.1.7 | 11,207 | 1/6/2020 |
3.1.6 | 11,070 | 12/12/2019 |
3.1.5 | 10,867 | 11/26/2019 |
3.1.4 | 10,606 | 11/25/2019 |
3.1.3 | 11,034 | 11/8/2019 |
3.1.2 | 10,354 | 11/4/2019 |
3.1.1 | 11,934 | 10/17/2019 |
3.1.0 | 10,019 | 10/3/2019 |
3.0.1 | 9,891 | 9/20/2019 |
3.0.0 | 11,927 | 8/27/2019 |
2.3.11 | 9,026 | 6/9/2019 |
2.3.10 | 6,836 | 6/5/2019 |
2.3.9 | 6,826 | 5/26/2019 |
2.3.8 | 6,751 | 5/13/2019 |
2.3.7 | 7,057 | 4/24/2019 |
2.3.6 | 7,768 | 4/17/2019 |
2.3.5 | 6,494 | 4/10/2019 |
2.3.4 | 6,363 | 3/9/2019 |
2.3.3 | 6,192 | 3/8/2019 |
2.3.2 | 6,174 | 2/28/2019 |
2.3.1 | 6,263 | 2/25/2019 |
2.3.0 | 6,065 | 2/22/2019 |
2.2.1 | 6,106 | 2/12/2019 |
2.2.0 | 6,105 | 2/1/2019 |
2.1.2 | 22,563 | 1/14/2019 |
2.1.0 | 7,174 | 12/15/2018 |
2.0.1 | 6,189 | 12/7/2018 |
2.0.0 | 6,442 | 11/28/2018 |
1.1.0 | 6,890 | 9/10/2018 |
1.0.18 | 5,885 | 8/10/2018 |
1.0.17 | 5,720 | 7/30/2018 |
1.0.16 | 6,330 | 6/29/2018 |
1.0.15 | 5,761 | 6/27/2018 |
1.0.14 | 5,695 | 6/8/2018 |
1.0.13 | 5,559 | 6/6/2018 |
1.0.12 | 5,899 | 4/5/2018 |
1.0.11 | 5,743 | 4/4/2018 |
1.0.10 | 5,557 | 3/27/2018 |
1.0.8 | 9,967 | 2/7/2018 |
1.0.7 | 5,614 | 1/27/2018 |
1.0.6 | 5,678 | 1/8/2018 |
1.0.5 | 5,406 | 12/28/2017 |
1.0.4 | 5,212 | 12/15/2017 |
1.0.3 | 4,602 | 12/8/2017 |
1.0.2 | 4,574 | 11/30/2017 |
1.0.1 | 4,806 | 11/28/2017 |
1.0.0 | 1,604 | 3/3/2017 |
Currently implements:
Classes
AlignedMemory<T>, BeginEndEventContext, BitHelper, ByteSizeFormatter, ComConnectionPoint, ComEnumString, 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, LinqHelpers, ListChangedEventArgs<T>, MarshalingStream, MemoryMethodsBase, NativeMemoryEnumerator<T>, NativeMemoryStream, PinnedObject, ReflectionExtensions, ReflectionExtensions, SafeAllocatedMemoryHandle, SafeAllocatedMemoryHandleBase, SafeByteArray, SafeCoTaskMemHandle, SafeCoTaskMemString, SafeCoTaskMemStruct<T>, SafeGuidPtr, SafeHGlobalHandle, SafeHGlobalStruct<T>, SafeLPSTR, SafeLPTSTR, SafeLPWSTR, SafeMemoryHandle<T>, SafeMemoryHandleExt<T>, SafeMemoryPool<T>, SafeMemString<T>, SafeMemStruct<T>, SparseArray<T>, StringHelper, TryGetDelegate, TryGetValueDelegate, UntypedNativeMemoryEnumerator, VanaraCustomMarshaler<T>, VanaraMarshaler, VanaraMarshalerAttribute, VirtualDictionary<T>, VirtualList<T>, VirtualListMethodCarrier<T>, VirtualReadOnlyDictionary<T>, VirtualReadOnlyList<T>
Structures
AnySizeStructFieldArray<T>, AnySizeStructUnmanagedFieldArray<T>, ArrayPointer<T>, BOOL, BOOLEAN, EnumFlagIndexer<T>, GuidPtr, LPCSTRArrayPointer, LPCTSTRArrayPointer, LPCWSTRArrayPointer, ManagedArrayPointer<T>, RefEnumerator<T>, SizeT, StrPtrAnsi, StrPtrAuto, StrPtrUni, StructPointer<T>, time_t
Enumerations
CorrespondingAction, FileAttributeConstant, FileOpConstant, FilePermissionConstant, StringListPackMethod