PInvoke Interop Assistant

Rating:        Based on 15 ratings
Reviewed:  9 reviews
Downloads: 64369
Released: Jun 5, 2008
Updated: Sep 23, 2008 by XiaoyingGuo
Dev status: -not yet defined by owner-

Recommended Download

Application PInvoke Interop Assistant Installation
application, 1493K, uploaded Jun 11, 2008 - 54589 downloads

Other Available Downloads

Source Code PInvoke Interop Assistant Source
source code, 1604K, uploaded Jun 11, 2008 - 9780 downloads

Release Notes

In marshalling, there are a bunch of attributes and rules. Understanding all those attributes and rules seem a bit daunting. In order to make developing work more efficient and easier on those attributes and the rules, P/Invoke Interop Assistant comes out. It is a toolkit that helps developers to efficiently convert from C to managed P/Invoke signatures or verse visa. This is conceptually similar to TlbImp for COM Interop which generates managed proxy entry points based on some formal description of the unmanaged side but it works for P/Invoke. The toolkit was first released on MSDN Magazine website in Jan, 2008.

The toolkit contains the following things:
  • A command-line tool for managed-to-unmanaged signature conversion
  • A command-line tool for unmanaged-to-managed signature conversion
  • A GUI tool combining all the conversion functionality
  • An XML database file containing Windows API signature data (referenced from VS2005 SDK)
  • A help manual
To use the tool, you either feed in an MSIL assemblies and get out C source for the proper unmanaged signatures or feed in C source with the unmanaged signature and get out proper VB/C#. The command-line tools allows batch processing for multiple files.

More information about the P/Invoke Interop Assistant can be found in the help mannual attached with the release package.

Reviews for this release

For those getting the missing Assembly Manifest error, you do not need to load your DLL. Click on SigImp Translate Snippit tab then paste your code into Native Code Snippit box and git Generate. The C# code will appear on the right panel. You must define all types in the paste snippit or at least declare empty classes/structs, etc.
by guru_florida on Apr 5, 2016 at 7:07 PM
Useful, but looks like it is not developed anymore.
by ondrej on Mar 13, 2015 at 11:18 AM
Such a good tool! Makes pinvoke "translations" much easier! Thank you :)
by SeveFriede on Dec 2, 2014 at 11:24 AM
The help file appears to be missing. Is there a user guide online?
by saberman on Feb 24, 2012 at 10:47 PM
i want download this.
by go on Mar 3, 2010 at 3:05 AM
very helpful for me!together with source code, yeah!great!hope to learn from master besides using the smart toolkit!
by orlando22 on Apr 8, 2009 at 11:35 AM
Extremely useful to me, as I need to interface to complicated native methods--ones that return pointers to structures, etc. For mobile development there isn't much alternative because C++/CLI is not supported. You have to connect managed code to native code using P/Invoke.
by mobilemax on Feb 13, 2009 at 6:08 AM
Really neat stuff. This is new to me. I tried opening a few DLLs I believe were originally written in ANSI C (or C++). When opening, I received an error that mentions the Assembly Manifest was missing from file. What needs to be done to correct this. Thanks.
by shaggygi on Nov 2, 2008 at 7:54 PM
great help for using native libraries, this project shows alot of promise
by aL3891 on Aug 5, 2008 at 11:43 AM