Is there a tool that generates P/Invoke signatures for arbitrary unmanaged DLL?

后端 未结 6 1639
失恋的感觉
失恋的感觉 2020-12-13 00:17

I stumbled upon a tool that generates P/Invoke signatures for Microsoft\'s own unmanaged DLLs: PInvoke Interop Assistant

Is there a similar tool that will generate P

6条回答
  •  猫巷女王i
    2020-12-13 01:04

    Google quickly found http://www.pinvoker.com/ (Compatiblity listed as VS2005, 2008, and 2010; it doesn't seem to have been updated to work with newer versions)

    Microsoft's C++/CLI compiler can also do this, if you use /clr:safe and #include the header file, it will generate p/invoke code which you can extract with e.g. ILSpy (free) or Red Gate Reflector (used to be free).

提交回复
热议问题