GetNetMACID

Gets the MAC ID unique code from the currently installed network adapter(s).

Function Group Execution Windows Embedded Thin Client Mobile Access
GetNetMACID System Info Synchronous Supported Supported Supported Not supported

Syntax

  GetNetMACID( "optTagMACID", "optTagAdapterName" )  
optStrMACID
Name of a string tag, which receives the MAD ID of the network adapter. If there is more than one network adapter currently installed in the station, the user can configure a string array tag in this parameter, so each array position receives the MAC ID from one network adapter.
optStrAdapterName
Name of a string tag, which receives the name of the network adapter. If there is more than one network adapter currently installed in the station, the user can configure a string array tag in this parameter, so each array position receives the name from one network adapter. This parameter is optional.

Returned value

Value Description
>0 Number of network adapters found.
0 No network adapters found.
-1 Invalid number of parameters.
-2 One of the parameters is not string type.
-3 Tag configured in optTagMACID does not exist.
-4 Tag configured in optTagAdapterName does not exist.

Examples

Tag Name Expression
NumNIC GetNetMACID(“MACIDTag”)
NumNIC GetNetMACID(“MACIDTag”, “AdapterName”)
NumNIC GetNetMACID(“MACIDTag[1]“, “AdapterName[1]“)

GetNetMACID