Vanara.PInvoke.Shared
4.0.0-beta2
Prefix Reserved
See the version list below for details.
dotnet add package Vanara.PInvoke.Shared --version 4.0.0-beta2
NuGet\Install-Package Vanara.PInvoke.Shared -Version 4.0.0-beta2
<PackageReference Include="Vanara.PInvoke.Shared" Version="4.0.0-beta2" />
paket add Vanara.PInvoke.Shared --version 4.0.0-beta2
#r "nuget: Vanara.PInvoke.Shared, 4.0.0-beta2"
// Install Vanara.PInvoke.Shared as a Cake Addin #addin nuget:?package=Vanara.PInvoke.Shared&version=4.0.0-beta2&prerelease // Install Vanara.PInvoke.Shared as a Cake Tool #tool nuget:?package=Vanara.PInvoke.Shared&version=4.0.0-beta2&prerelease
Vanara.PInvoke.Shared NuGet Package
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 EnumeratorToEnumVariantMarshaler FunctionHelper GenericStringMarshaler GenericStringMarshalerBase IEnumeratorFromNext IEnumFromCom IEnumFromIndexer IEnumFromNext IndirectResource IndirectString Lib LOGPALETTE Macros NullTermStringArrayMarshaler OverlappedAsync OverlappedAsyncResult PFILETIME PInvokeClientExtensions PInvokeDataAttribute PRECT PSYSTEMTIME 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 PFILETIME POINT POINTS PRECT PSECURITY_DESCRIPTOR PSID PSYSTEMTIME 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 IKernelHandle ISecurityObject IShellHandle ISyncHandle IUserHandle |
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. 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
- Microsoft.Win32.Registry (>= 5.0.0)
- Vanara.Core (>= 4.0.0-beta2)
-
.NETFramework 4.5
- Vanara.Core (>= 4.0.0-beta2)
-
.NETFramework 4.8
- Vanara.Core (>= 4.0.0-beta2)
-
.NETStandard 2.0
- Microsoft.Win32.Registry (>= 5.0.0)
- Vanara.Core (>= 4.0.0-beta2)
-
net6.0
- Microsoft.Win32.Registry (>= 5.0.0)
- Vanara.Core (>= 4.0.0-beta2)
-
net7.0
- Microsoft.Win32.Registry (>= 5.0.0)
- Vanara.Core (>= 4.0.0-beta2)
-
net8.0-windows7.0
- Vanara.Core (>= 4.0.0-beta2)
NuGet packages (108)
Showing the top 5 NuGet packages that depend on Vanara.PInvoke.Shared:
Package | Downloads |
---|---|
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 |
|
Vanara.PInvoke.User32
PInvoke API (methods, structures and constants) imported from Windows User32.dll. |
GitHub repositories (4)
Showing the top 4 popular GitHub repositories that depend on Vanara.PInvoke.Shared:
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 | 113,224 | 9/13/2024 |
4.0.3 | 74,515 | 8/5/2024 |
4.0.2 | 39,138 | 6/24/2024 |
4.0.1 | 85,254 | 4/30/2024 |
4.0.0 | 33,516 | 3/29/2024 |
4.0.0-beta2 | 4,919 | 1/22/2024 |
4.0.0-beta | 5,916 | 11/20/2023 |
3.4.17 | 171,928 | 10/18/2023 |
3.4.16 | 87,500 | 8/7/2023 |
3.4.15 | 157,247 | 5/18/2023 |
3.4.14 | 81,316 | 4/15/2023 |
3.4.13 | 98,906 | 2/4/2023 |
3.4.12 | 46,996 | 1/15/2023 |
3.4.11 | 89,164 | 11/15/2022 |
3.4.10 | 46,142 | 10/25/2022 |
3.4.9 | 43,367 | 10/3/2022 |
3.4.8 | 40,112 | 9/16/2022 |
3.4.7 | 37,784 | 9/3/2022 |
3.4.6 | 46,220 | 8/7/2022 |
3.4.5 | 42,366 | 7/17/2022 |
3.4.4 | 31,153 | 7/5/2022 |
3.4.3 | 47,666 | 6/14/2022 |
3.4.2 | 40,907 | 5/13/2022 |
3.4.1 | 32,732 | 5/5/2022 |
3.4.0 | 47,027 | 3/14/2022 |
3.3.15 | 107,596 | 12/27/2021 |
3.3.14 | 41,951 | 10/26/2021 |
3.3.13 | 32,222 | 9/30/2021 |
3.3.12 | 33,070 | 8/30/2021 |
3.3.11 | 40,265 | 7/22/2021 |
3.3.10 | 26,524 | 6/4/2021 |
3.3.9 | 19,428 | 5/7/2021 |
3.3.8 | 22,528 | 4/7/2021 |
3.3.7 | 19,371 | 3/24/2021 |
3.3.6 | 15,735 | 3/19/2021 |
3.3.5 | 19,017 | 3/1/2021 |
3.3.4 | 18,938 | 2/11/2021 |
3.3.3 | 24,006 | 2/3/2021 |
3.3.2 | 15,306 | 1/21/2021 |
3.3.1 | 18,455 | 1/20/2021 |
3.3.0 | 21,185 | 11/20/2020 |
3.2.21 | 13,820 | 11/13/2020 |
3.2.20 | 16,502 | 11/8/2020 |
3.2.19 | 21,749 | 10/23/2020 |
3.2.18 | 12,967 | 10/21/2020 |
3.2.17 | 25,809 | 9/20/2020 |
3.2.16 | 13,968 | 9/7/2020 |
3.2.15 | 12,790 | 8/30/2020 |
3.2.14 | 12,378 | 8/20/2020 |
3.2.13 | 13,127 | 7/27/2020 |
3.2.12 | 12,475 | 7/13/2020 |
3.2.11 | 13,502 | 6/28/2020 |
3.2.10 | 14,697 | 6/14/2020 |
3.2.9 | 13,295 | 6/3/2020 |
3.2.7 | 16,007 | 5/4/2020 |
3.2.6 | 12,446 | 4/21/2020 |
3.2.5 | 12,143 | 4/15/2020 |
3.2.4 | 12,055 | 4/12/2020 |
3.2.3 | 15,209 | 4/1/2020 |
3.2.2 | 11,129 | 3/24/2020 |
3.2.1 | 11,960 | 3/17/2020 |
3.2.0 | 11,616 | 2/27/2020 |
3.1.9 | 11,630 | 1/17/2020 |
3.1.8 | 11,489 | 1/13/2020 |
3.1.7 | 11,206 | 1/6/2020 |
3.1.6 | 10,910 | 12/12/2019 |
3.1.5 | 10,906 | 11/26/2019 |
3.1.4 | 10,581 | 11/25/2019 |
3.1.3 | 10,989 | 11/8/2019 |
3.1.2 | 10,406 | 11/4/2019 |
3.1.1 | 11,921 | 10/17/2019 |
3.1.0 | 10,045 | 10/3/2019 |
3.0.1 | 9,837 | 9/20/2019 |
3.0.0 | 11,849 | 8/27/2019 |
2.3.11 | 8,876 | 6/9/2019 |
2.3.10 | 6,564 | 6/5/2019 |
2.3.9 | 6,447 | 5/26/2019 |
2.3.8 | 6,382 | 5/13/2019 |
2.3.7 | 6,806 | 4/24/2019 |
2.3.6 | 7,449 | 4/17/2019 |
2.3.5 | 6,234 | 4/10/2019 |
2.3.4 | 6,094 | 3/9/2019 |
2.3.3 | 5,950 | 3/8/2019 |
2.3.2 | 5,819 | 2/28/2019 |
2.3.1 | 5,917 | 2/25/2019 |
2.3.0 | 5,774 | 2/22/2019 |
2.2.1 | 5,860 | 2/12/2019 |
2.2.0 | 5,782 | 2/1/2019 |
2.1.2 | 22,862 | 1/14/2019 |
2.1.0 | 6,864 | 12/15/2018 |
2.0.1 | 5,838 | 12/7/2018 |
2.0.0 | 5,992 | 11/28/2018 |
1.1.0 | 6,515 | 9/10/2018 |
1.0.18 | 5,382 | 8/10/2018 |
1.0.17 | 5,258 | 7/30/2018 |
1.0.16 | 5,860 | 6/29/2018 |
1.0.15 | 5,206 | 6/27/2018 |
1.0.14 | 5,185 | 6/8/2018 |
1.0.13 | 5,159 | 6/6/2018 |
1.0.12 | 5,429 | 4/5/2018 |
1.0.11 | 5,190 | 4/4/2018 |
1.0.10 | 5,010 | 3/27/2018 |
1.0.9 | 5,046 | 3/26/2018 |
1.0.8 | 5,799 | 2/7/2018 |
1.0.7 | 5,151 | 1/27/2018 |
1.0.6 | 5,168 | 1/8/2018 |
1.0.5 | 4,992 | 12/28/2017 |
1.0.4 | 4,639 | 12/15/2017 |
1.0.3 | 4,115 | 12/8/2017 |
1.0.2 | 3,973 | 11/30/2017 |
1.0.1 | 4,226 | 11/28/2017 |
Currently implements:
Classes
AnySizeStringMarshaler<T>, AssociateAttribute, AssociateStringAttribute, ClipCorrespondingTypeAttribute, ComTryGetNext, CoTaskMemStringMarshaler, EnumeratorToEnumVariantMarshaler, FunctionHelper, GenericStringMarshaler<T>, GenericStringMarshalerBase<T>, IEnumeratorFromNext<T>, IEnumFromCom<T>, IEnumFromIndexer<T>, IEnumFromNext<T>, IndirectResource, IndirectString, Lib, LOGPALETTE, Macros, NullTermStringArrayMarshaler, OverlappedAsync, OverlappedAsyncResult, PFILETIME, PInvokeClientExtensions, PInvokeDataAttribute, PRECT, PSYSTEMTIME, 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, PFILETIME, POINT, POINTS, PRECT, PSECURITY_DESCRIPTOR, PSID, PSYSTEMTIME, 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