Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The LMX_HostidSimple function retrieves the HostID from the computer system and returns it as a NULL-terminated string.

Prototype

Code Block
languagecpp
LMX_STATUS LMX_HostidSimple

...


(
   LMX_HANDLE LmxHandle,

...


   LMX_HOSTID_TYPE eHostidType,

...


   char *szHostid

...


);

Parameters

LmxHandle
[in/out] LM-X handle.

...

When using LMX_HOSTID_ALL, all HostIDs are returned, with the HostID type prefixing the HostID; for example, :

"ETHERNET=0123456789012345,ETHERNET=54321009876543210,USERNAME=MyUserName1,USERNAME=MyUserName2,HOSTNAME=MyHostName,..."

For single HostIDs, the HostID is returned with multiple HostIDs of that type separated by commas; for example:

ETHERNET=0123456789012345,ETHERNET=54321009876543210,..."

To make use of custom HostIDs, you must set a callback function using LMX_SetOption with the flag LMX_OPT_CUSTOM_HOSTID_FUNCTION.