Delphi IDE (89)
Windows with Delphi (280)
New related comments
Number of comments in the last 48 hours
Make TWebBrowser post a form
Sending an email from Delphi using MAPI
Progress bar with the TWebBrowser component
Changing the TCP/IP DNS address
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).