Results 1 to 3 of 3

Thread: [2008] API and WiFi

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2009
    Posts
    21

    [2008] API and WiFi

    Does anyone know if there is a way I can programatically turn on/off WiFi so that I can interupt my internet connection, perhaps using an API?

  2. #2
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: [2008] API and WiFi

    You can probably use WMI to disable the NIC:

    http://msdn.microsoft.com/en-us/library/aa394595.aspx

  3. #3
    Frenzied Member Jim Davis's Avatar
    Join Date
    Mar 2001
    Location
    Mars base one Username: Jim Davis Password: yCrm33
    Posts
    1,284

    Re: [2008] API and WiFi

    By executing the DevCon.exe command line tool provided my microsoft, with the vb6's Shell() method, you can disable/enable any kind of device. It will does the same effect like if you go into the computer hardware list, right click on a device and selecting disable/ or enable from the popup menu.

Posting Permissions

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



Click Here to Expand Forum to Full Width