Results 1 to 3 of 3

Thread: How to Enable/Disable WLAN Adapter in Windows

  1. #1
    Newbie GizmoB73's Avatar
    Join Date
    Jul 2005
    Location
    Cambridge, England
    Posts
    37

    How to Enable/Disable WLAN Adapter in Windows

    I am not sure if this post should go here or in software, but here goes.

    I am writing my own customized front end and would like to be able to switch my WLAN adapter on and off through the software.

    The idea is that when my GPS says that I am home, it Enables the WLAN adapter and when I leave, it is switched off. This is mainly because the adapter never looks for the network when I get back home because it has been out of range for too long.

    I have tried using WMI with C# .Net and Studio 2005 but it just doesn't work. Has anybody managed to acheive this using another method? It is just too fiddly trying to do a repair etc. with the my touchscreen and the standard Windows XP interface.

    Any ideas?
    Happiness is not about wanting what you have, but having what you want. ;o)

    CARPUTER Status
    LCD: K301 (returned!)
    Nano ITX NL10000, 512MB RAM, DVD/CDRW
    M2 ATX

  2. #2
    Banned
    Join Date
    Feb 2004
    Posts
    189
    Quote Originally Posted by GizmoB73
    I am not sure if this post should go here or in software, but here goes.

    I am writing my own customized front end and would like to be able to switch my WLAN adapter on and off through the software.

    The idea is that when my GPS says that I am home, it Enables the WLAN adapter and when I leave, it is switched off. This is mainly because the adapter never looks for the network when I get back home because it has been out of range for too long.

    I have tried using WMI with C# .Net and Studio 2005 but it just doesn't work. Has anybody managed to acheive this using another method? It is just too fiddly trying to do a repair etc. with the my touchscreen and the standard Windows XP interface.

    Any ideas?
    YES! You're lucky I found this thread

    I spent probably 3 hours trying to figure this out. I am programming in Visual Studio 6 (C++ and VB) and I have figured out a solution.

    You can use the devcon package from microsoft to enable/disable any device including network adaptors.

    http://support.microsoft.com/?kbid=311272

    For example, if I wanted to disable a local PCI lan card and then enable it again, I would do:
    Call Shell("devcon.exe disable *SUBSYS_813910EC*", vbHide)
    Call Shell("devcon.exe enable *SUBSYS_813910EC*", vbHide)

    You can also use devcon to list all your hardware so you can better specify which devices you want to enable/disable
    devcon.exe findall *

    PCI\VEN_10EC&DEV_8139&SUBSYS_813910EC&REV_10\3&61A AA01&0&48 : Realtek RTL8139 Family PCI Fast Ethernet NIC
    ...there's my device.

    Cheers
    -Nico

  3. #3
    Newbie GizmoB73's Avatar
    Join Date
    Jul 2005
    Location
    Cambridge, England
    Posts
    37
    That's great news, thanks for your help, I'll give it a try.

    Happiness is not about wanting what you have, but having what you want. ;o)

    CARPUTER Status
    LCD: K301 (returned!)
    Nano ITX NL10000, 512MB RAM, DVD/CDRW
    M2 ATX

Similar Threads

  1. IDE to USB adapter & Hibernation problem
    By nkotch in forum General Hardware Discussion
    Replies: 0
    Last Post: 03-15-2006, 05:55 PM
  2. Via Display Adapter Hell
    By rdunajewski in forum General Hardware Discussion
    Replies: 7
    Last Post: 02-09-2006, 09:48 PM
  3. Installing Windows 2000 Pro on a 1GB Microdrive
    By JeremyM in forum WinNT Based
    Replies: 2
    Last Post: 05-07-2005, 10:56 PM
  4. Alpine aux adapter issues
    By oekundar in forum Car Audio
    Replies: 0
    Last Post: 11-22-2004, 02:50 PM
  5. slim slot dvd rom with wrong adapter, questions
    By mattress in forum General Hardware Discussion
    Replies: 3
    Last Post: 10-24-2004, 09:51 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •