Most com methods have a signature like this:
STDMETHOD(someFunc) (THIS_ ParamType param) PURE;
Which translates to C# via ComImport as:
[PreserveSig()]
int someFunc(MarshaledParamType param);
Is there some way to preserve the "THIS_" parameter in the PInvoke signature? So that I can do something like:
int someFunc(IntPtr ptrToCOMInstance, MarshaledParamType param);
or
int someFunc(IMyCOMClass comInstance, MarshaledParamType param);