For what it's worth, I that that way lies madness!
After many hours/deays of experimenting with the API directly from my
VB .NET application, I have concluded that the only way to interface
with the plugin is via javascript. Although the API can be exposed
to .NET, it's not a complete interface, the documentation is
inadequate and there are some serious flaws.
I have had much success in my .NET app using a webBrowser, HTML and
embedded javascript. Learning js is a bit of a pain, but it's
surprisingly powerful, fast and rewarding.