Vanara.PInvoke.Shared 3.4.13

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
.NET 6.0 .NET Core 3.1 .NET Standard 2.0 .NET Framework 4.5
dotnet add package Vanara.PInvoke.Shared --version 3.4.13
NuGet\Install-Package Vanara.PInvoke.Shared -Version 3.4.13
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Vanara.PInvoke.Shared" Version="3.4.13" />
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.13
#r "nuget: Vanara.PInvoke.Shared, 3.4.13"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.13

// Install Vanara.PInvoke.Shared as a Cake Tool
#tool nuget:?package=Vanara.PInvoke.Shared&version=3.4.13

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 AssociateAttribute AssociateStringAttribute ClipCorrespondingTypeAttribute ComTryGetNext CoTaskMemStringMarshaler FunctionHelper GenericStringMarshaler GenericStringMarshalerBase IEnumeratorFromNext IEnumFromCom IEnumFromIndexer IEnumFromNext IndirectResource IndirectString Lib LOGPALETTE Macros NullTermStringArrayMarshaler OverlappedAsync OverlappedAsyncResult PInvokeClientExtensions PInvokeDataAttribute PRECT PtrFunc RegistryTypeExt SafeAnysizeStruct SafeAnysizeStructBase SafeAnysizeStructMarshaler SafeElementArray SafeHANDLE SafeNativeArray SafeNativeArrayBase SafeNativeLinkedList SafeNativeListBase SafeResourceId SBFunc SBFunc SBFunc SECURITY_ATTRIBUTES SizeFunc StaticFieldValueHash StringPtrArrayMarshaler StructHelper TryGetNext TryGetNext 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 RGBQUAD SECURITY_ATTRIBUTES SIZE SYSTEMTIME tagSECURITY_ATTRIBUTES TEXTMETRIC union WIN32_FIND_DATA Win32Error 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 FILE_SHARE 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 IClipboardFormatter ICOMEnum IErrorProvider IGraphicsObjectHandle IHandle IKernelHandle ISecurityObject IShellHandle ISyncHandle IUserHandle
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 net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.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 net481
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 (99)

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.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.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, sspicli.dll, schannel.dll, tdh.dll and Secur32.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 (3)

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

Repository Stars
zhupingqi/RuiJi.Net
crawler framework, distributed crawler extractor
omeryanar/FileExplorer
Windows File Explorer alternative with tab browsing
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
3.4.13 52,379 2/4/2023
3.4.12 24,542 1/15/2023
3.4.11 43,806 11/15/2022
3.4.10 31,906 10/25/2022
3.4.9 28,127 10/3/2022
3.4.8 24,392 9/16/2022
3.4.7 25,956 9/3/2022
3.4.6 32,385 8/7/2022
3.4.5 25,490 7/17/2022
3.4.4 19,643 7/5/2022
3.4.3 31,171 6/14/2022
3.4.2 27,486 5/13/2022
3.4.1 22,088 5/5/2022
3.4.0 32,592 3/14/2022
3.3.15 58,591 12/27/2021
3.3.14 26,837 10/26/2021
3.3.13 23,175 9/30/2021
3.3.12 20,219 8/30/2021
3.3.11 24,593 7/22/2021
3.3.10 18,099 6/4/2021
3.3.9 11,930 5/7/2021
3.3.8 15,475 4/7/2021
3.3.7 12,443 3/24/2021
3.3.6 9,002 3/19/2021
3.3.5 11,447 3/1/2021
3.3.4 9,641 2/11/2021
3.3.3 16,308 2/3/2021
3.3.2 8,724 1/21/2021
3.3.1 11,137 1/20/2021
3.3.0 13,374 11/20/2020
3.2.21 7,545 11/13/2020
3.2.20 10,323 11/8/2020
3.2.19 14,340 10/23/2020
3.2.18 7,068 10/21/2020
3.2.17 17,953 9/20/2020
3.2.16 7,570 9/7/2020
3.2.15 7,120 8/30/2020
3.2.14 6,927 8/20/2020
3.2.13 7,642 7/27/2020
3.2.12 7,080 7/13/2020
3.2.11 8,036 6/28/2020
3.2.10 9,300 6/14/2020
3.2.9 7,818 6/3/2020
3.2.7 10,550 5/4/2020
3.2.6 7,072 4/21/2020
3.2.5 6,704 4/15/2020
3.2.4 6,733 4/12/2020
3.2.3 9,454 4/1/2020
3.2.2 6,196 3/24/2020
3.2.1 6,967 3/17/2020
3.2.0 6,541 2/27/2020
3.1.9 6,693 1/17/2020
3.1.8 6,369 1/13/2020
3.1.7 6,239 1/6/2020
3.1.6 6,106 12/12/2019
3.1.5 6,139 11/26/2019
3.1.4 5,742 11/25/2019
3.1.3 6,293 11/8/2019
3.1.2 5,729 11/4/2019
3.1.1 7,356 10/17/2019
3.1.0 5,586 10/3/2019
3.0.1 5,501 9/20/2019
3.0.0 6,729 8/27/2019
2.3.11 5,449 6/9/2019
2.3.10 3,810 6/5/2019
2.3.9 3,761 5/26/2019
2.3.8 3,871 5/13/2019
2.3.7 4,167 4/24/2019
2.3.6 4,851 4/17/2019
2.3.5 3,681 4/10/2019
2.3.4 3,649 3/9/2019
2.3.3 3,439 3/8/2019
2.3.2 3,358 2/28/2019
2.3.1 3,434 2/25/2019
2.3.0 3,333 2/22/2019
2.2.1 3,402 2/12/2019
2.2.0 3,338 2/1/2019
2.1.2 7,026 1/14/2019
2.1.0 4,381 12/15/2018
2.0.1 3,446 12/7/2018
2.0.0 3,773 11/28/2018
1.1.0 4,300 9/10/2018
1.0.18 3,327 8/10/2018
1.0.17 3,239 7/30/2018
1.0.16 3,722 6/29/2018
1.0.15 3,212 6/27/2018
1.0.14 3,274 6/8/2018
1.0.13 3,188 6/6/2018
1.0.12 3,436 4/5/2018
1.0.11 3,166 4/4/2018
1.0.10 3,106 3/27/2018
1.0.9 3,094 3/26/2018
1.0.8 3,834 2/7/2018
1.0.7 3,144 1/27/2018
1.0.6 3,200 1/8/2018
1.0.5 3,173 12/28/2017
1.0.4 3,063 12/15/2017
1.0.3 2,703 12/8/2017
1.0.2 2,532 11/30/2017
1.0.1 2,619 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>, IndirectResource, IndirectString, 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>, SBFunc<T>, 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, FILE_SHARE, 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