Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic (http://www.programmingforums.org/forum18.html)
-   -   **Disconnect Wireless Networking** (http://www.programmingforums.org/showthread.php?t=4882)

alpstar01 Jul 13th, 2005 1:15 AM

**Disconnect Wireless Networking**
 
:confused: Hi

This is very important that i know this...

I have created a vbscript that detects the NIC's IP Address and if the IP address is withing the conditions - it stops the following services:

Smart Card Service
Wireless Zone Configuration Service

Under the group policy set - user's cannot start services - so they cannot connect into a wireless network.

PROBLEM: When the user logs into the network with a network cable its fine, my script works.

But...

If they take out the network cable, and re-insert it? what happens - it assigns a DHCP address -

or if they log on locally - then they insert the network cable - it picks up an IP and wireless is available...

** I want to know either the following...

what triggers or whats the event that occurs when a network cable is inserted? how can i stop this? how can i possible trigger a VBScript to run when a network cable is inserted? is this possible? i know that there are apps for this (i.e. IPSwicther), but i want to avoid 3rd party apps...

I want to know whether it is possible to run my script when the network cable is inserted or removed?
Can anyone help???

Im very desperate!!!

Rory Aug 1st, 2005 2:36 PM

The plug in network cable event is probably a window message of some kind, probably hardware related. I'd suggest setting up some code that hooks the system message stream (WH_SYSMSGFILTER) and dumps the output. See if anything interesting goes past when you plug/unplug the cable!


All times are GMT -5. The time now is 5:29 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC