Torna al Thread
//Vecchia dichiarazione (remmata) che, nel Framework 4.0, non passava "CallingConvention.Cdecl"
//Declare Function GetConnectionStatus Lib "ApiDll" (ByRef NodeNumber As Int16, ByRef BNumber As Byte, ByRef GatewayControlIpAddrOfNode As Int32, ByRef GatewayControlIpPortOfNode As Int16, ByRef NodeDescriptionString As String) As Int32
//Nuova dichiarazione della funzione per Framework 4.0
<DllImport("ApiDll.dll", CallingConvention:=CallingConvention.Cdecl)> _
Public Shared Function GetConnectionStatus(ByRef NodeNumber As UInt16, ByRef BNumber As Byte, ByRef GatewayControlIpAddrOfNode As UInt32, ByRef GatewayControlIpPortOfNode As UInt16, ByRef NodeDescriptionString As String) As Int32
End Function