Tonethostmx100 – Yokogawa PC-Based MX100 User Manual
Page 952

17-218
IM MX190-01E
toNetHostMX100
Syntax
int toNetHostMX100(DAQMX100 daqmx100, char * strHost, int
lenHost);
Declaration
Visual Basic
Public Declare Function toNetHostMX100 Lib "DAQMX100"(ByVal
daqmx100 As Long, ByVal strHost As String, ByVal lenHost As
Long) As Long
Visual Basic.NET
Public Declare Ansi Function toNetHostMX100 Lib
"DAQMX100"(ByVal daqmx100 As Integer, ByVal strHost As String,
ByVal lenHost As Integer) As Integer
C#
[DllImport("DAQMX100.dll" CharSet=CharSet.Auto,
EntryPoint="toNetHostMX100")]
public static extern int toNetHostMX100(int daqmx100, byte[]
strHost, int lenHost);
Parameters
daqmx100
Specify the device descriptor.
strHost
Specify the field where the string is to be stored.
lenHost
Specify the byte size of the field where the string is to be stored.
Description
Gets the host name from the stored current network information data.
• Stores the string in the specified storage destination.
• The string stored in the field includes the terminator (NULL).
• The return value is the length of the actual string. The return value does not
include the terminator.
• Returns 0 if it does not exist.
• The strings that can be stored are, in general, ASCII strings.
Return value
Returns the length of the string.
Reference
getNetHostMX100
17.2 Details of Function - MX00 (Visual C/Visual Basic/Visual Basic.NET/C#) - Retrieval Functions