Vanara.PInvoke.Shared 3.4.2 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved

.NET 5.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.5
Install-Package Vanara.PInvoke.Shared -Version 3.4.2
dotnet add package Vanara.PInvoke.Shared --version 3.4.2
<PackageReference Include="Vanara.PInvoke.Shared" Version="3.4.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.Shared --version 3.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vanara.PInvoke.Shared, 3.4.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Vanara.PInvoke.Shared as a Cake Addin
#addin nuget:?package=Vanara.PInvoke.Shared&version=3.4.2

// Install Vanara.PInvoke.Shared as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.Shared&version=3.4.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Vanara

Vanara.PInvoke.Shared NuGet Package

Version Build status

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)

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.PInvoke.Shared

Classes Structures Enumerations Interfaces
AnySizeStringMarshaler<br>AssociateAttribute<br>AssociateStringAttribute<br>ClipCorrespondingTypeAttribute<br>ComTryGetNext<br>CoTaskMemStringMarshaler<br>FunctionHelper<br>GenericStringMarshaler<br>GenericStringMarshalerBase<br>IEnumeratorFromNext<br>IEnumFromCom<br>IEnumFromIndexer<br>IEnumFromNext<br>Lib<br>LOGPALETTE<br>Macros<br>NullTermStringArrayMarshaler<br>OverlappedAsync<br>OverlappedAsyncResult<br>PInvokeClientExtensions<br>PInvokeDataAttribute<br>PRECT<br>PtrFunc<br>RegistryTypeExt<br>SafeAnysizeStruct<br>SafeAnysizeStructBase<br>SafeAnysizeStructMarshaler<br>SafeElementArray<br>SafeHANDLE<br>SafeNativeArray<br>SafeNativeArrayBase<br>SafeNativeLinkedList<br>SafeNativeListBase<br>SafeResourceId<br>SBFunc<br>SECURITY_ATTRIBUTES<br>SizeFunc<br>StaticFieldValueHash<br>StringPtrArrayMarshaler<br>StructHelper<br>TryGetNext<br>TryGetNext<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> ACCESS_MASK<br>BusNumber<br>CLIPFORMAT<br>CM_FULL_RESOURCE_DESCRIPTOR<br>CM_PARTIAL_RESOURCE_DESCRIPTOR<br>CM_PARTIAL_RESOURCE_LIST<br>CM_POWER_DATA<br>CM_RESOURCE_LIST<br>COLORREF<br>Connection<br>CORRELATION_VECTOR<br>CY<br>DATE<br>DECIMAL<br>DEVICE_CAPABILITIES<br>DevicePrivate<br>DeviceSpecificData<br>DEVMODE<br>Dma<br>DmaV3<br>Generic<br>HACCEL<br>HANDLE<br>HBITMAP<br>HBRUSH<br>HCOLORSPACE<br>HCURSOR<br>HDC<br>HDESK<br>HDPA<br>HDROP<br>HDSA<br>HDWP<br>HENHMETAFILE<br>HEVENT<br>HFILE<br>HFONT<br>HGDIOBJ<br>HICON<br>HIMAGELIST<br>HINSTANCE<br>HKEY<br>HMENU<br>HMETAFILE<br>HMONITOR<br>HPALETTE<br>HPEN<br>HPROCESS<br>HPROPSHEET<br>HPROPSHEETPAGE<br>HRESULT<br>HRGN<br>HSECTION<br>HTASK<br>HTHEME<br>HTHREAD<br>HTHUMBNAIL<br>HTOKEN<br>HWINSTA<br>HWND<br>Interrupt<br>LANGID<br>LCID<br>LOGFONT<br>LOGPALETTE<br>Memory40<br>Memory48<br>Memory64<br>MessageInterruptRaw<br>MSG<br>NTStatus<br>OBJECT_TYPE_LIST<br>OFSTRUCT<br>PACE<br>PACL<br>PALETTEENTRY<br>POINT<br>POINTS<br>PRECT<br>PSECURITY_DESCRIPTOR<br>PSID<br>RECT<br>ResourceId<br>ResourceIdOrHandle<br>RGBQUAD<br>SECURITY_ATTRIBUTES<br>SIZE<br>SYSTEMTIME<br>tagSECURITY_ATTRIBUTES<br>TEXTMETRIC<br>union<br>WIN32_FIND_DATA<br>Win32Error<br> CharacterSet<br>CM_DEVCAP<br>CM_FILE<br>CM_INSTALL_STATE<br>CM_REMOVAL_POLICY<br>CM_RESOURCE<br>CM_SHARE_DISPOSITION<br>CmResourceType<br>CONFIGFLAG<br>DEVICE_POWER_STATE<br>DEVICE_SCALE_FACTOR<br>DMCOLLATE<br>DMCOLOR<br>DMDFO<br>DMDISPLAY<br>DMDITHER<br>DMDO<br>DMDUP<br>DMFIELDS<br>DMICM<br>DMICMMETHOD<br>DMMEDIA<br>DMNUP<br>DMORIENT<br>DMPAPER<br>DMRES<br>DMTT<br>DN<br>DrawTextFlags<br>FacilityCode<br>FacilityCode<br>FILE_DEVICE<br>FileFlagsAndAttributes<br>FontFamily<br>FontPitch<br>INTERFACE_TYPE<br>LANG<br>LogFontClippingPrecision<br>LogFontOutputPrecision<br>LogFontOutputQuality<br>MouseButtonState<br>NTDDI<br>ObjectTypeListLevel<br>PC<br>PDCAP<br>PInvokeClient<br>ProcessorArchitecture<br>REG_VALUE_TYPE<br>ResourceType<br>SECURITY_INFORMATION<br>SeverityLevel<br>SeverityLevel<br>ShowWindowCommand<br>SORT<br>STGM<br>SUBLANG<br>SYSTEM_POWER_STATE<br>SystemColorIndex<br>SystemShutDownReason<br>URLZONE<br>WIN32_WINNT<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> IClipboardFormatter<br>ICOMEnum<br>IErrorProvider<br>IGraphicsObjectHandle<br>IHandle<br>IKernelHandle<br>ISecurityObject<br>IShellHandle<br>ISyncHandle<br>IUserHandle<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><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
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (86)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.Shared:

Package Downloads
Vanara.PInvoke.Kernel32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows Kernel32.dll.

Vanara.PInvoke.Security The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows AdvApi32.dll, Authz.dll and Secur32.dll.

Vanara.PInvoke.Cryptography The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows Gdi32.dll

Vanara.PInvoke.User32 The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

PInvoke API (methods, structures and constants) imported from Windows User32.dll.

GitHub repositories (2)

Showing the top 2 popular GitHub repositories that depend on Vanara.PInvoke.Shared:

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,581 5/13/2022
3.4.1 3,826 5/5/2022
3.4.0 11,405 3/14/2022
3.3.15 20,313 12/27/2021
3.3.14 17,579 10/26/2021
3.3.13 16,332 9/30/2021
3.3.12 11,609 8/30/2021
3.3.11 17,931 7/22/2021
3.3.10 12,211 6/4/2021
3.3.9 7,374 5/7/2021
3.3.8 11,200 4/7/2021
3.3.7 8,159 3/24/2021
3.3.6 4,837 3/19/2021
3.3.5 7,245 3/1/2021
3.3.4 5,564 2/11/2021
3.3.3 11,138 2/3/2021
3.3.2 4,805 1/21/2021
3.3.1 6,100 1/20/2021
3.3.0 8,576 11/20/2020
3.2.21 4,259 11/13/2020
3.2.20 6,930 11/8/2020
3.2.19 10,758 10/23/2020
3.2.18 3,777 10/21/2020
3.2.17 11,200 9/20/2020
3.2.16 4,180 9/7/2020
3.2.15 3,982 8/30/2020
3.2.14 3,895 8/20/2020
3.2.13 4,612 7/27/2020
3.2.12 4,124 7/13/2020
3.2.11 5,091 6/28/2020
3.2.10 6,331 6/14/2020
3.2.9 4,866 6/3/2020
3.2.7 7,273 5/4/2020
3.2.6 4,231 4/21/2020
3.2.5 3,878 4/15/2020
3.2.4 3,905 4/12/2020
3.2.3 5,990 4/1/2020
3.2.2 3,559 3/24/2020
3.2.1 4,257 3/17/2020
3.2.0 3,936 2/27/2020
3.1.9 4,111 1/17/2020
3.1.8 3,760 1/13/2020
3.1.7 3,595 1/6/2020
3.1.6 3,629 12/12/2019
3.1.5 3,706 11/26/2019
3.1.4 3,350 11/25/2019
3.1.3 3,860 11/8/2019
3.1.2 3,345 11/4/2019
3.1.1 4,938 10/17/2019
3.1.0 3,264 10/3/2019
3.0.1 3,339 9/20/2019
3.0.0 4,287 8/27/2019
2.3.11 3,828 6/9/2019
2.3.10 2,342 6/5/2019
2.3.9 2,356 5/26/2019
2.3.8 2,481 5/13/2019
2.3.7 2,783 4/24/2019
2.3.6 3,476 4/17/2019
2.3.5 2,352 4/10/2019
2.3.4 2,360 3/9/2019
2.3.3 2,147 3/8/2019
2.3.2 2,118 2/28/2019
2.3.1 2,171 2/25/2019
2.3.0 2,118 2/22/2019
2.2.1 2,180 2/12/2019
2.2.0 2,135 2/1/2019
2.1.2 4,590 1/14/2019
2.1.0 3,027 12/15/2018
2.0.1 2,203 12/7/2018
2.0.0 2,459 11/28/2018
1.1.0 3,115 9/10/2018
1.0.18 2,203 8/10/2018
1.0.17 2,125 7/30/2018
1.0.16 2,599 6/29/2018
1.0.15 2,131 6/27/2018
1.0.14 2,193 6/8/2018
1.0.13 2,115 6/6/2018
1.0.12 2,368 4/5/2018
1.0.11 2,098 4/4/2018
1.0.10 2,054 3/27/2018
1.0.9 2,051 3/26/2018
1.0.8 2,776 2/7/2018
1.0.7 2,115 1/27/2018
1.0.6 2,191 1/8/2018
1.0.5 2,141 12/28/2017
1.0.4 2,070 12/15/2017
1.0.3 1,815 12/8/2017
1.0.2 1,696 11/30/2017
1.0.1 1,742 11/28/2017

Currently implements:

Classes
AnySizeStringMarshaler<T>, AssociateAttribute, AssociateStringAttribute, ClipCorrespondingTypeAttribute, ComTryGetNext, CoTaskMemStringMarshaler, FunctionHelper, GenericStringMarshaler<T>, GenericStringMarshalerBase<T>, IEnumeratorFromNext<T>, IEnumFromCom<T>, IEnumFromIndexer<T>, IEnumFromNext<T>, Lib, LOGPALETTE, Macros, NullTermStringArrayMarshaler, OverlappedAsync, OverlappedAsyncResult, PInvokeClientExtensions, PInvokeDataAttribute, PRECT, PtrFunc<T>, RegistryTypeExt, SafeAnysizeStruct<T>, SafeAnysizeStructBase<T>, SafeAnysizeStructMarshaler<T>, SafeElementArray<T>, SafeHANDLE, SafeNativeArray<T>, SafeNativeArrayBase<T>, SafeNativeLinkedList<T>, SafeNativeListBase<T>, SafeResourceId, SBFunc<T>, SECURITY_ATTRIBUTES, SizeFunc<T>, StaticFieldValueHash, StringPtrArrayMarshaler, StructHelper, TryGetNext<T>, TryGetNext<T>

Structures
ACCESS_MASK, BusNumber, CLIPFORMAT, CM_FULL_RESOURCE_DESCRIPTOR, CM_PARTIAL_RESOURCE_DESCRIPTOR, CM_PARTIAL_RESOURCE_LIST, CM_POWER_DATA, CM_RESOURCE_LIST, COLORREF, Connection, CORRELATION_VECTOR, CY, DATE, DECIMAL, DEVICE_CAPABILITIES, DevicePrivate, DeviceSpecificData, DEVMODE, Dma, DmaV3, Generic, HACCEL, HANDLE, HBITMAP, HBRUSH, HCOLORSPACE, HCURSOR, HDC, HDESK, HDPA, HDROP, HDSA, HDWP, HENHMETAFILE, HEVENT, HFILE, HFONT, HGDIOBJ, HICON, HIMAGELIST, HINSTANCE, HKEY, HMENU, HMETAFILE, HMONITOR, HPALETTE, HPEN, HPROCESS, HPROPSHEET, HPROPSHEETPAGE, HRESULT, HRGN, HSECTION, HTASK, HTHEME, HTHREAD, HTHUMBNAIL, HTOKEN, HWINSTA, HWND, Interrupt, LANGID, LCID, LOGFONT, LOGPALETTE, Memory40, Memory48, Memory64, MessageInterruptRaw, MSG, NTStatus, OBJECT_TYPE_LIST, OFSTRUCT, PACE, PACL, PALETTEENTRY, POINT, POINTS, PRECT, PSECURITY_DESCRIPTOR, PSID, RECT, ResourceId, ResourceIdOrHandle<T>, RGBQUAD, SECURITY_ATTRIBUTES, SIZE, SYSTEMTIME, tagSECURITY_ATTRIBUTES, TEXTMETRIC, union, WIN32_FIND_DATA, Win32Error

Enumerations
CharacterSet, CM_DEVCAP, CM_FILE, CM_INSTALL_STATE, CM_REMOVAL_POLICY, CM_RESOURCE, CM_SHARE_DISPOSITION, CmResourceType, CONFIGFLAG, DEVICE_POWER_STATE, DEVICE_SCALE_FACTOR, DMCOLLATE, DMCOLOR, DMDFO, DMDISPLAY, DMDITHER, DMDO, DMDUP, DMFIELDS, DMICM, DMICMMETHOD, DMMEDIA, DMNUP, DMORIENT, DMPAPER, DMRES, DMTT, DN, DrawTextFlags, FacilityCode, FacilityCode, FILE_DEVICE, FileFlagsAndAttributes, FontFamily, FontPitch, INTERFACE_TYPE, LANG, LogFontClippingPrecision, LogFontOutputPrecision, LogFontOutputQuality, MouseButtonState, NTDDI, ObjectTypeListLevel, PC, PDCAP, PInvokeClient, ProcessorArchitecture, REG_VALUE_TYPE, ResourceType, SECURITY_INFORMATION, SeverityLevel, SeverityLevel, ShowWindowCommand, SORT, STGM, SUBLANG, SYSTEM_POWER_STATE, SystemColorIndex, SystemShutDownReason, URLZONE, WIN32_WINNT