I stumbled across this add-in which automates the insertion of various Windows API declarations. If you’re like me, you track down solutions to your problem on the Internet, but sometimes it uses an API declaration in C# or VB6. Even worse, sometimes someone will use a non-standard or just plain difficult declaration style, for example:
[generic linenumbers=”false”]
ByVal var As IntPtr
[/generic]
and marshalling a string rather than
[generic linenumbers=”false”]
ByVal bytes() As Byte
[/generic]
Anyhow, the tool is here: http://www.pinvoke.net/index.aspx