MSI Factory 2.3

System.GetLANInfo

System.GetLANInfo

This is the first topic This is the last topic  

System.GetLANInfo

This is the first topic This is the last topic  

OverviewExamples

table System.GetLANInfo (

)

Example 1

LAN_info = System.GetLANInfo();

Gets the system's LAN information and stores it in a table called "LAN_info." If you wanted the network domain the user was logged into, you could access it by referencing LAN_info.Domain.

Example 2

lan = System.GetLANInfo();

lan_exist = true;

for j in lan do

   if lan[j] == "Unknown" then

       lan_exist = false;

   end

end

 

if lan_exist then

   Dialog.Message("", "You are connected to a LAN");

else

   Dialog.Message("", "You are not connected to a LAN");

end

Determines whether or not the user is connected to a LAN and displays the result in a dialog message.

Note:  This example works in Windows 98 First Edition, Windows 98 Second Edition, Windows 2000, Windows XP or later.  Windows 95 and Windows NT do not fit this model.  To detect a LAN connection in all operating systems, first detect the user's OS, and the launch an appropriate detection script.

See also: Related Actions


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us