2

I was wondering if there is any method to automatically detect whether I'm connected to a specific network's SSID when using C#.

I saw examples like this, this and this .

What I really wanted was for my application to be able to automatically detect that I'm connected or disconnected to that SSID to perform some functions for each cases.

Please and thank you for the help

Community
  • 1
  • 1
  • what is the question? why don't you just loop polling the data? – Nahum Sep 11 '12 at 06:23
  • If I were to loop poll, wouldn't it harm the processor cause I need to condition to be continuously checked. – user1661874 Sep 12 '12 at 06:56
  • Nevermind, I was able to find some answer on better loop polling from [here](http://codereview.stackexchange.com/questions/9812/polling-loop-always-a-bad-decision) . Now what I wanna know is it possible to do it with a WiFi connection? – user1661874 Sep 12 '12 at 07:08
  • Sorry for being vague. What I wanted was an application in .net that when open will check whether I'm connected to a specific wifi network and then lock my screen, keyboard and mouse in Windows 7; but then unlock it back when I'm connected. – user1661874 Sep 13 '12 at 10:53

0 Answers0