C # Call the C ++ library P/invoke tool set

Source: Internet
Author: User

P/invoke can be automatically generated using tools to reduce Obfuscation

1. Official support

Http://visualstudiogallery.msdn.microsoft.com/site/search? Query = P % 2 finvoke & F % 5b0% 5d. value = P % 2 finvoke & F % 5b0% 5d. type = searchtext & AC = 4

Microsoft also has many official extensions.

Open-source tools

Http://www.pin5i.com/showtopic-22763.html

It seems that Microsoft is also very popular. NetPoorP/invokeSupport, so helplessReleaseNowP/invoke InterOP AssistantToolsYou can download the tool at the following link:
Http://download.microsoft.com/download/f/2/7/f279e71e-efb0-4155-873d-5554a0608523/CLRInsideOut2008_01.exe

In fact, this tool hasOpen SourceNow, you can start from hereHttp://www.codeplex.com/clrinterop/Download to itsSource code

2. Classic discussion board 

Http://stackoverflow.com/questions/2495632/easiest-way-to-generate-p-invoke-code

    • Pinvoker: http://www.pinvoker.com
    • P/invoke InterOP ASSISTANT: http://www.codeplex.com/clrinterop
    • P/invoke Wizard: http://www.paulyao.com/res/pinvoke/pinvoke.aspx

Http://www.paulyao.com/res/pinvoke/pinvoke.aspx

3,CommunityComment

Http://through-the-interface.typepad.com/through_the_interface/2011/04/pinvoke-tools.html

 

The first tool is the pinvoke Visual Studio add-in from red gate software (the UK-based provider of various development tools, including reflector Pro ). it appears to be a Visual Studio add-in for vs2003 and 2005 (I can't see an update for vs2008 or 2010, which also means I can't try it ). the tool provides simplified access to the excellent pinvoke.net website, to which I often refer when developing. net apps. I don't actually useThatUsing P/invoke statements that I feel I need an add-in, though-which is perhaps why the add-in doesn't appear to have been updated for more recent Visual Studio versions-but it seemed worth mentioning.

 

 

The second-in my opinion more interesting-tool is the P/invoke InterOP Assistant (here's a more in-depth article, the codeplex hosting site and a channel 9 interview with one of the authors ). this tool generates P/invoke signatures for use from C # and VB. net, as well as the ability to determine the P/invoke signatures used in compiled Binaries:

 

    • Generating P/invoke declarations while searching for commonly-used (presumably Win32) functions, ures, messages, etc.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.