Vanara.Core 3.4.2

Vanara

Vanara.Core NuGet Package

Version Build status

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
ComReleaser
ComReleaserFactory
ComStream
ComTypeExtensions
ConstantConversionExtensions
CorrespondingTypeAttribute
CoTaskMemoryMethods
EnumerableEqualityComparer
EnumExtensions
EventedList
FileTimeExtensions
Formatter
FormatterComposer
GenericSafeHandle
GenericVirtualReadOnlyDictionary
HexDempHelpers
HGlobalMemoryMethods
History
IArrayStructExtensions
IArrayStructMarshaler
InteropExtensions
IntPtrConverter
IOExtensions
LibHelper
ListChangedEventArgs
MarshalingStream
MemoryMethodsBase
NativeMemoryEnumerator
NativeMemoryStream
PinnedObject
ReflectionExtensions
ReflectionExtensions
SafeAllocatedMemoryHandle
SafeAllocatedMemoryHandleBase
SafeByteArray
SafeCoTaskMemHandle
SafeCoTaskMemString
SafeCoTaskMemStruct
SafeGuidPtr
SafeHGlobalHandle
SafeHGlobalStruct
SafeMemoryHandle
SafeMemoryHandleExt
SafeMemString
SafeMemStruct
SparseArray
StringHelper
TryGetValueDelegate
UntypedNativeMemoryEnumerator
VanaraCustomMarshaler
VanaraMarshaler
VanaraMarshalerAttribute
VirtualDictionary
VirtualReadOnlyDictionary
BOOL
BOOLEAN
EnumFlagIndexer
GuidPtr
RefEnumerator
SizeT
StrPtrAnsi
StrPtrAuto
StrPtrUni
time_t

















































CorrespondingAction
FileAttributeConstant
FileOpConstant
FilePermissionConstant
StringListPackMethod






















































IArrayStruct
IHistory
IMemoryMethods
ISafeMemoryHandle
ISimpleMemoryMethods
IVanaraMarshaler





















































Showing the top 20 packages that depend on Vanara.Core.

Packages Downloads
Vanara.PInvoke.DwmApi
PInvoke API (methods, structures and constants) imported from Windows DwmApi.dll.
3
Vanara.PInvoke.DwmApi
PInvoke API (methods, structures and constants) imported from Windows DwmApi.dll.
4
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)
3
Vanara.PInvoke.SHCore
PInvoke API (methods, structures and constants) imported from Windows SHCore.dll.
3
Vanara.PInvoke.UxTheme
Methods, structures and constants imported from UxTheme.dll.
3
Vanara.PInvoke.UxTheme
PInvoke API (methods, structures and constants) imported from Windows UxTheme.dll.
3
Vanara.PInvoke.UxTheme
PInvoke API (methods, structures and constants) imported from Windows UxTheme.dll.
4

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

.NET Framework 4.5

.NET Framework 4.8

.NET Core 3.1

  • No dependencies.

.NET 5.0

  • No dependencies.

.NET 6.0

  • No dependencies.

.NET Standard 2.0

Version Downloads Last updated
4.1.2 0 04/16/2025
4.1.1 2 03/17/2025
4.1.0 2 03/17/2025
4.0.6 2 03/17/2025
4.0.5 2 03/17/2025
4.0.4 2 03/17/2025
4.0.3 2 03/17/2025
4.0.2 2 03/17/2025
4.0.1 2 03/17/2025
4.0.0 2 03/17/2025
4.0.0-beta2 3 03/08/2025
4.0.0-beta 3 03/08/2025
3.4.17 2 03/17/2025
3.4.16 2 03/17/2025
3.4.15 2 03/17/2025
3.4.14 2 03/17/2025
3.4.13 2 03/17/2025
3.4.12 2 03/17/2025
3.4.11 2 03/17/2025
3.4.10 2 03/17/2025
3.4.9 2 03/17/2025
3.4.8 2 03/17/2025
3.4.7 2 03/17/2025
3.4.6 2 03/17/2025
3.4.5 2 03/17/2025
3.4.4 2 03/17/2025
3.4.3 2 03/17/2025
3.4.2 2 03/17/2025
3.4.1 2 03/17/2025
3.4.0 2 03/17/2025
3.3.15 2 03/17/2025
3.3.14 2 03/17/2025
3.3.13 2 03/17/2025
3.3.12 2 03/17/2025
3.3.11 2 03/17/2025
3.3.10 2 03/17/2025
3.3.9 2 03/17/2025
3.3.8 2 03/17/2025
3.3.7 2 03/17/2025
3.3.6 2 03/17/2025
3.3.5 2 03/17/2025
3.3.4 2 03/17/2025
3.3.3 2 03/17/2025
3.3.2 2 03/17/2025
3.3.1 2 03/17/2025
3.3.0 2 03/17/2025
3.2.21 2 03/17/2025
3.2.20 2 03/17/2025
3.2.19 2 03/17/2025
3.2.18 2 03/17/2025
3.2.17 2 03/17/2025
3.2.16 2 03/17/2025
3.2.15 2 03/17/2025
3.2.14 2 03/17/2025
3.2.13 2 03/17/2025
3.2.12 2 03/17/2025
3.2.11 2 03/17/2025
3.2.10 2 03/17/2025
3.2.9 2 03/17/2025
3.2.7 2 03/17/2025
3.2.6 2 03/17/2025
3.2.5 2 03/17/2025
3.2.4 2 03/17/2025
3.2.3 2 03/17/2025
3.2.2 2 03/17/2025
3.2.1 2 03/17/2025
3.2.0 2 03/17/2025
3.1.9 2 03/17/2025
3.1.8 2 03/17/2025
3.1.7 2 03/17/2025
3.1.6 2 03/17/2025
3.1.5 2 03/17/2025
3.1.4 2 03/17/2025
3.1.3 2 03/17/2025
3.1.2 2 03/17/2025
3.1.1 2 03/17/2025
3.1.0 2 03/17/2025
3.0.1 2 03/17/2025
3.0.0 2 03/17/2025
2.3.11 2 03/17/2025
2.3.10 2 03/17/2025
2.3.9 2 03/17/2025
2.3.8 2 03/17/2025
2.3.7 2 03/17/2025
2.3.6 2 03/17/2025
2.3.5 2 03/17/2025
2.3.4 2 03/17/2025
2.3.3 2 03/17/2025
2.3.2 2 03/17/2025
2.3.1 2 03/17/2025
2.3.0 2 03/17/2025
2.2.1 2 03/17/2025
2.2.0 2 03/17/2025
2.1.2 2 03/17/2025
2.1.0 2 03/17/2025
2.0.1 2 03/17/2025
2.0.0 2 03/17/2025
1.1.0 2 03/17/2025
1.0.18 2 03/17/2025
1.0.17 2 03/17/2025
1.0.16 2 03/17/2025
1.0.15 2 03/17/2025
1.0.14 2 03/17/2025
1.0.13 2 03/17/2025
1.0.12 2 03/17/2025
1.0.11 2 03/17/2025
1.0.10 3 03/08/2025
1.0.8 2 03/17/2025
1.0.7 2 03/17/2025
1.0.6 2 03/17/2025
1.0.5 2 03/17/2025
1.0.4 2 03/17/2025
1.0.3 2 03/17/2025
1.0.2 2 03/17/2025
1.0.1 2 03/17/2025
1.0.0 2 03/17/2025