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).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…