Sitting down to write some code and going through all the phases from "how in the world am I going to do this?" to "this should work but it crashes as soon as I run it", to "now it returns the correct answer but is using an unsupported API" and right through to "works properly and does things in accordance with the documentation" all in one afternoon. Now I just need to get that Marshal.PtrToStringAnsi out of there and I'll be even happier!
Edit: Success! No ugly string marshalling, and I even got rid of the pointers!



