So, have you ever wondered how to get the information about the
strength of your wireless signal using .Net? It is actually pretty
easy through .net.
The .Net framework actually provides the
ManagementObjectSearcher object which
is part of the System.Management namespace. This object is a query
based object, meaning that if you want to get information out of this
object you need to specify the given sql like statement before you can
get at the information. You can use this object to get information on
disk drives, network adapters (wireless cards..), CPU usage and more.
Getting the information about the wireless strength is pretty straight forward and can be done in about 5 - 10 lines of code.
Here you go.
Main Method to get the data out of the managment object
Helper method to convert the value to a Int
Let me know if you know of any other/better ways to do this.
dp.SyntaxHighlighter.HighlightAll('code');
Posted
11-17-2006 6:40 AM
by
Derik Whittaker