Delphi IDE (239)
Windows with Delphi (38)
Detect whether the network is installed
This article has not been rated yet. After reading, feel free to leave comments and rate it.
Question:I need to programmatically find out if a computer has the network installed.
Answer:You can use the Windows function GetSystemMetrics(SM_NETWORK). This will tell you if the Windows installation includes network connection(s).
Sometimes it is claimed that this function will detect whether the machine is actually attached to a network. This is not true. The function will return the same resullts if the network connection is disabled and your computer is thus offline (not part of the network).