PInvoke.net Visual Studio Extension

VSIP Partner Free

Insert Platform Invoke (PInvoke) signatures from PInvoke.net easily.

(9) Review
Visual Studio
2013, 2012, 2010
Download (16,119)
10/4/2013
0.0.0.0
View
E-mail Twitter del.icio.us Digg Facebook
Add to favorites
Description
Reviews (9)
Q and A (1)
Sign in to write a review
Sort by:

by chriga | May 22 2014

Works just for Windows DLLs. But not for custom ones.

by gordines | May 19 2014

works in 2010 VS :)

by PowerCat | November 04 2013

Any way to add VS Express support?

by Track77 | October 27 2013

Excelent tool.
Thanks.

by Chris1255 | October 17 2012

It seems to be working pretty well. As someone previously suggested, it would be nice if it formatted properly into where you insert it. Other than that, it would be nice if it added the necessary references to use the types it provides.

by lostmsu | September 22 2012

Works in VS 2012.

Drawbacks:
- suggests only the first snippet in language (at least I've not found how to insert 2nd and others)
- inserts text always at line start; should insert at cursor position, and reformat it right after inserting

by Ben Emmett | September 13 2012

Works perfectly in VS2012 :-)

by sdbenique | June 22 2012

Only works in outdated and crappy versions of VS. I'd give it zero stars but it wont let me.

by AndrewTJ | July 08 2011

It doesn't work in Visual Studio 2010 (as indicated in "Supports" above.) When will it be available for VS2010 please?

Thank you.

Sign in to start a discussion


  • Is VS 2010 supported?
    4 Posts | Last post September 13, 2012
    • Are you planning to support?
    • First, locate the PInvokeDotNetAddIn.Addin file located in %programfiles%\red gate\PInvoke.NET, open it with a text editor such as notepad.exe, and make the following changes:
      
      After the text:
      ---------------------------------------------
      <HostApplication>
      <Name>Microsoft Visual Studio Macros</Name>
      <Version>8.0</Version>
      </HostApplication>
      <HostApplication>
      <Name>Microsoft Visual Studio</Name>
      <Version>8.0</Version>
      </HostApplication>
      
      ----------------------------------------------
      Add:
      ----------------------------------------------
      <HostApplication>
      <Name>Microsoft Visual Studio Macros</Name>
      <Version>10.0</Version>
      </HostApplication>
      <HostApplication>
      <Name>Microsoft Visual Studio</Name>
      <Version>10.0</Version>
      </HostApplication>
      
      and save the file.
      
      It may also be necessary to add the path to the PInvoke add-in to the list of folders where Visual Studio will look for add-ins. From Visual Studio 2010's Tools menu, select Options, then Add-in/Macros security. If the path to the PInvoke.NET installation folder (c:\program files\red gate\PInvoke.NET) is not listed in the collection of add-in file paths, click the add button and select the installation folder.
      
      After restarting Visual Studio 2010, the add-in will function as it does in previous versions of Visual Studio.
    • Beautiful - worked like a charm.
      Couple of things...
      1) I edited it using VS but you need to have VS "Run as Adiministrator" in order to save the file.
      2) Like you said I had to add the path to the add-in under Options->Add-in/Macro Security
      
    • PInvoke is now available as a vsix package, supporting Visual Studio 2010 and 2012 :-).