Skip to main content
Vanara.PInvoke.Shared package icon

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)

Total Downloads
4.4M
4,443,084
Published
Sep 9, 2025
Latest stable version

Install

.NET CLI
dotnet add package Vanara.PInvoke.Shared --version 4.2.1
Package Manager Console
Install-Package Vanara.PInvoke.Shared -Version 4.2.1
PackageReference
<PackageReference Include="Vanara.PInvoke.Shared" Version="4.2.1" />

Frameworks

.NETFramework4.8 .NETCoreApp3.1 net5.0 net6.0 net7.0 net8.0-windows7.0 net9.0-windows7.0 .NETStandard2.0 .NETStandard2.1

Dependencies

Vanara.Core
.NETFramework4.8
[4.2.1, )
System.Memory
.NETFramework4.8
[4.5.5, )
Vanara.Core
.NETCoreApp3.1
[4.2.1, )
[5.0.0, )
[6.0.1, )
[4.2.1, )
[4.2.1, )
[4.2.1, )
Vanara.Core
net8.0-windows7.0
[4.2.1, )
Vanara.Core
net9.0-windows7.0
[4.2.1, )
Vanara.Core
.NETStandard2.0
[4.2.1, )
[5.0.0, )
System.Memory
.NETStandard2.0
[4.5.5, )
[6.0.1, )
System.ValueTuple
.NETStandard2.0
[4.6.1, )
Vanara.Core
.NETStandard2.1
[4.2.1, )
[5.0.0, )
System.Memory
.NETStandard2.1
[4.5.5, )

Adoption guide

A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.

Compatibility metadata lists 9 target frameworks; confirm the exact target used by your application.

The published metadata declares 26 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.