![]() |
VOOZH | about |
dotnet add package Vanara.PInvoke.Shared --version 5.0.0
NuGet\Install-Package Vanara.PInvoke.Shared -Version 5.0.0
<PackageReference Include="Vanara.PInvoke.Shared" Version="5.0.0" />
<PackageVersion Include="Vanara.PInvoke.Shared" Version="5.0.0" />Directory.Packages.props
<PackageReference Include="Vanara.PInvoke.Shared" />Project file
paket add Vanara.PInvoke.Shared --version 5.0.0
#r "nuget: Vanara.PInvoke.Shared, 5.0.0"
#:package Vanara.PInvoke.Shared@5.0.0
#addin nuget:?package=Vanara.PInvoke.Shared&version=5.0.0Install as a Cake Addin
#tool nuget:?package=Vanara.PInvoke.Shared&version=5.0.0Install as a Cake Tool
Shared methods, structures and constants for use throughout the Vanara.PInvoke assemblies. Includes:
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.
First check if it's already fixed by trying the MyGet build. If you're still running into problems, file an issue.
| Classes | Structures | Enumerations | Interfaces |
|---|---|---|---|
| AnySizeStringMarshaler AssociateAttribute AssociateStringAttribute ClipCorrespondingTypeAttribute ComTryGetNext CoTaskMemStringMarshaler EnumeratorToEnumVariantMarshaler ErrorHelper FailedHelper FunctionHelper GenericStringMarshaler GenericStringMarshalerBase IEnumeratorFromNext IEnumFromCom IEnumFromIndexer IEnumFromNext IidFunc IidFunc IidFunc1 IidFunc1 IidFunc2 IidFunc2 IndirectResource IndirectString Lib LOGPALETTE Macros NullTermStringArrayMarshaler OverlappedAsync OverlappedAsyncResult PFILETIME PInvokeClientExtensions PInvokeDataAttribute PRECT PSYSTEMTIME PtrFunc PtrFunc RegistryTypeExt SafeAnysizeStruct SafeAnysizeStructBase SafeAnysizeStructMarshaler SafeElementArray SafeNativeArray SafeNativeArrayBase SafeNativeLinkedList SafeNativeListBase SafeResourceId SBFunc SBFunc SBFunc SECURITY_ATTRIBUTES SizeFunc 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 FOURCC Generic HACCEL HBITMAP HBRUSH HCOLORSPACE HCURSOR HDC 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 HWND Interrupt LANGID LCID LOGFONT LOGPALETTE LUID 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 POOL_TYPE ProcessorArchitecture REG_VALUE_TYPE ResourceType SECURITY_INFORMATION SeverityLevel SeverityLevel ShowWindowCommand SORT STGM SUBLANG SYSTEM_POWER_STATE SystemColorIndex SystemShutDownReason URLZONE WIN32_WINNT | IClipboardFormatter ICOMEnum IDeviceContextHandle IErrorProvider IErrorProvider2 IGraphicsObjectHandle IKernelHandle ISecurityObject IShellHandle ISyncHandle IUserHandle |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 is compatible. net5.0-windows net5.0-windows was computed. net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 is compatible. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 is compatible. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 is compatible. |
| .NET Framework | net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 is compatible. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 4 NuGet packages that depend on Vanara.PInvoke.Shared:
| Package | Downloads |
|---|---|
|
Vanara.PInvoke.Graphics
PInvoke API (methods, interfaces, structures and constants) imported from Windows Graphics APIs. Currently supports Windows Imaging Component (WIC), DirectWrite (full), Direct2D (partial), and Direct3D (DXGI only). |
|
|
Durandal.AI.NonPortable
Extensions and implementation classes in the Durandal framework for "higher-level" functionality of .Net Framework and .Net Core. For example, HTTP clients / servers, performance counters, file systems, threading and synchronization objects, loggers, etc. |
|
|
Scover.Dialogs
A Windows TaskDialog wrapper that also supports navigation and hyperlinks. |
|
|
Lycoris.NetDimension.NanUI
Easily buid powerful WinForm applications with HTML, CSS and JavaScript. |
Showing the top 4 popular GitHub repositories that depend on Vanara.PInvoke.Shared:
| Repository | Stars |
|---|---|
|
duplicati/duplicati
Store securely encrypted backups in the cloud!
|
|
|
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
|
|
| mann1x/CPUDoc |
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.0 | 94,079 | 1/12/2026 |
| 4.2.1 | 265,977 | 9/9/2025 |
| 4.2.0 | 16,374 | 8/25/2025 |
| 4.1.6 | 117,231 | 6/20/2025 |
| 4.1.5 | 4,360 | 6/20/2025 |
| 4.1.4 | 27,911 | 6/7/2025 |
| 4.1.3 | 83,947 | 4/24/2025 |
| 4.1.2 | 43,686 | 4/16/2025 |
| 4.1.1 | 72,620 | 3/7/2025 |
| 4.1.0 | 5,422 | 3/7/2025 |
| 4.0.6 | 23,050 | 2/24/2025 |
| 4.0.5 | 17,721 | 2/8/2025 |
| 4.0.4 | 248,752 | 9/13/2024 |
| 4.0.3 | 209,993 | 8/5/2024 |
| 4.0.2 | 48,290 | 6/24/2024 |
| 4.0.1 | 157,795 | 4/30/2024 |
| 4.0.0 | 38,460 | 3/29/2024 |
| 4.0.0-beta2 | 7,071 | 1/22/2024 |
| 4.0.0-beta | 8,038 | 11/20/2023 |
| 3.4.17 | 209,874 | 10/18/2023 |
Currently implements:
Classes
AnySizeStringMarshaler<T>, AssociateAttribute, AssociateStringAttribute, ClipCorrespondingTypeAttribute, ComTryGetNext, CoTaskMemStringMarshaler, EnumeratorToEnumVariantMarshaler, ErrorHelper, FailedHelper, FunctionHelper, GenericStringMarshaler<T>, GenericStringMarshalerBase<T>, IEnumeratorFromNext<T>, IEnumFromCom<T>, IEnumFromIndexer<T>, IEnumFromNext<T>, IidFunc, IidFunc<T>, IidFunc1<T>, IidFunc1<T>, IidFunc2<T>, IidFunc2<T>, IndirectResource, IndirectString, Lib, LOGPALETTE, Macros, NullTermStringArrayMarshaler, OverlappedAsync, OverlappedAsyncResult, PFILETIME, PInvokeClientExtensions, PInvokeDataAttribute, PRECT, PSYSTEMTIME, PtrFunc<T>, PtrFunc<T>, RegistryTypeExt, SafeAnysizeStruct<T>, SafeAnysizeStructBase<T>, SafeAnysizeStructMarshaler<T>, SafeElementArray<T>, SafeNativeArray<T>, SafeNativeArrayBase<T>, SafeNativeLinkedList<T>, SafeNativeListBase<T>, SafeResourceId, SBFunc<T>, SBFunc<T>, SBFunc<T>, SECURITY_ATTRIBUTES, SizeFunc<T>, 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, FOURCC, Generic, HACCEL, HBITMAP, HBRUSH, HCOLORSPACE, HCURSOR, HDC, 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, HWND, Interrupt, LANGID, LCID, LOGFONT, LOGPALETTE, LUID, 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, POOL_TYPE, ProcessorArchitecture, REG_VALUE_TYPE, ResourceType, SECURITY_INFORMATION, SeverityLevel, SeverityLevel, ShowWindowCommand, SORT, STGM, SUBLANG, SYSTEM_POWER_STATE, SystemColorIndex, SystemShutDownReason, URLZONE, WIN32_WINNT