Desktop Functions: Smart Device Functions:
| What is PInvoke.net?
A wiki for developersPInvoke.net is primarily a wiki, allowing developers to find, edit and add PInvoke* signatures, user-defined types, and any other information related to calling Win32 and other unmanaged APIs from managed code (written in languages such as C#). .NET developers worldwide can easily contribute to the community, sharing their valuable knowledge, whenever they have time to do so. New to Wikis? Try the Playground to experiment with the editing process Copy and paste your way to productivityCertain things just can't be done natively in some languages, and developers have to drill down to the OS API. This is achieved through .NET’s Platform Invoke (PInvoke) functionality, which requires declarations to be supplied by the developer. Manually defining and using PInvoke signatures is an error-prone process that can introduce subtle bugs. PInvoke.net supplies you with tried and tested signatures and type definitions, so that you don't have to spend time writing them from scratch. Access PInvoke.net directly from Visual StudioWe provide an Add-in to Visual Studio 2019 - 2022, to make the insertion of PInvoke signatures an easy, fast operation. Download the PInvoke.net Add-in for FREE now.
Editors wantedDid you spend hours figuring out how to successfully define and call a given unmanaged API in managed code? Share (and get credit for) your discovery here! Is there an error on this site? Go ahead and fix it! We are constantly looking for editors to join in, to continue making this space a valuable resource for .NET developers across the globe. * The term PInvoke is derived from the phrase "Platform Invoke". PInvoke signatures are native method signatures |