Get Pinvoke.Net Native Method Signatures directly into Visual Studio
I know I suggest that everything is cool, but this is really cool IMO! Via Kevin I found this add-in that lets you search for and insert pinvoke signatures right into your code from the Pinvoke.Net web site. You can also add content to the site right from the editor! I just love the concept... there is this wiki where anyone can add useful content... then that content can be sucked down directly into your application in a useful fashion right when you need it without invoking a web browser and doing a clumsy cut/paste operation.
The Description from AdamNathan:
This add-in for Visual Studio (7.0 or later) communicates with www.pinvoke.net, making it easy to copy signatures and types from the PINVOKE.NET repository into your source code. It also highlights alternative managed APIs that help you avoid PInvoke altogether, and makes it easy for you to contribute your own signatures and types! Because the latest information in the repository is displayed, the number of signatures and languages supported should grow over time. This also means that an Internet connection is required to make use of the add-in (although it behaves gracefully when no connection is present). Defining PInvoke signatures (also known as Declare statements in VB) without any help is an error-prone process that can introduce extremely subtle bugs. It's time to stop writing PInvoke signatures from scratch! Instead, copy and paste your way to productivity! Think of this as the 21st century version of VB6's API Text Viewer. For more information, visit www.pinvoke.net.
Good Times! - Josh
Update - Adam walks you through it personally on his blog here:
https://blogs.msdn.com/adam_nathan/archive/2004/05/06/127403.aspx
Comments
- Anonymous
May 06, 2004
The comment has been removed - Anonymous
May 06, 2004
Updated - Anonymous
January 24, 2008
PingBack from http://softwareinformation.247blogging.info/powertoys-weblog-get-pinvokenet-native-method-signatures-directly/