EnableNetworkCom Method - intrepidcs API

C/C++ declare - VB.NET declare - C# declare - Parameters - Return Values - Remarks - C/C++ example - VB.NET example - C# example

This function is deprecated. Use the EnableNetworkRXQueue method instead.

This method enables or disables all vehicle network rx data.

C/C++ Declare

int _stdcall icsneoEnableNetworkCom(int hObject,int lEnable);

Visual Basic .NET Declare

Public Declare Function icsneoEnableNetworkCom Lib “icsneo40.dll” (ByVal hObject As Integer, ByVal lEnable As Integer) As Integer

C# Declare

[DllImport(“icsneo40.dll”)] public static extern int icsneoEnableNetworkCom(int hObject, int lEnable);

Parameters

lEnable

[in] When 1 it will enable network receive. When 0 it will disable network receive.

Return Values

This function returns the 1 when successful. 0 if otherwise.

Remarks

This function will enable and disable network traffic for all client applications connected to the neoVI. The icsneoEnableNetworkRXQueue function can be used to enable and disable the receive message queue for individual applications.


Examples

C/C++ Example

icsneoEnableNetworkCom(m_hObject,0);

Visual Basic .NET Example

Call icsneoEnableNetworkCom(m_hObject, 0)

C# Example

icsNeoDll.icsneoEnableNetworkCom(m_hObject,0);