I'v been trying to create a wrapper for the API in .Net and I ran across a memory management error with the wstrings. It seems that .Net can't marshal them.
Can you change the API to use something more friendly to .Net or provide some type of C++/CLR bridge?