You should use PInvoke.
using System.Runtime.InteropServices;
Use a tool like API Viewer to get the declaration of your API, paste that
declaration and use it like any other function.
Keep in mind that this API Viewer has a flaw, it declares the arguments of
the API Functions as strings (the ones that should be string, of course ;))
and IF they need to change within the function, it won't work. You need to
replace string for StringBuilder... Why? because a string is a Value Object,
a StringBuilder a reference one. When you modify a string the CLR copies the
modified string elsewhere, a StringBuilder es more like a pointer to a
string, so it manages its own memory.
Regards
Steven Lewis
"James Pang" <Ja*******@163.com> escribió en el mensaje
news:O$**************@TK2MSFTNGP09.phx.gbl...