This project is read-only.
1
Vote

lineRemoveFromConference missed parameter?

description

Hello,

In atapi code NativeMethods class (Interop.cs Ln 398) there is a function lineRemoveFromConference with 2 parameters:

[DllImport("Tapi32.dll", CharSet = CharSet.Auto)]
    internal static extern int lineRemoveFromConference(HTCALL hConfCall, HTCALL hConsultCall);
In TAPI MS documentation is only one:
LONG WINAPI lineRemoveFromConference( HCALL hCall );

http://msdn.microsoft.com/en-us/library/ms736047(v=vs.85).aspx

I use cisco TSP driver, and lineRemoveFromConference in debug mode which causes next message:

Managed Debugging Assistant 'PInvokeStackImbalance' has detected a problem in 'C:\Users\Administrator\Documents\Visual Studio 2010\Projects\TAPIClipObserver\TAPIClipObserver\bin\Debug\TAPIObserver.vshost.exe'.
Additional Information: A call to PInvoke function 'Atapi!JulMar.Atapi.Interop.NativeMethods::lineRemoveFromConference' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature.

Thanks,
Pavel

comments