Hi,
I imported following COM interface
DECLARE_INTERFACE(IAxMediaCB)
{
STDMETHOD(BufferCB)
(
LONGLONG theStartTime,
BYTE * theDstBuffer,
long theSize
) PURE;
};
to managed code:
public interface IAxMediaCB
{
int BufferCB(long theStartTime, IntPtr theDstBuffer, int
theSize);
}
Is there any way to declare in .NET that interface method BufferCB has
a __cdecl calling convention? I know there is
UnmanagedFunctionPointerAttribute, but this can be only applied on
the delegate. I need somethig similar, but destination should be a
method. Is there any way to do it?