You probably also need to specify CallingConvention=CallingConvention.Cdecl
since a varargs function will use a _cdecl
calling convention (the default is Winapi which in turn defaults to StdCall).
You may need something else, but I'm pretty sure you'll need at least that.
Michael Burr
2009-05-05 16:54:40