Announcement

Collapse
No announcement yet.

Detect Wireless Access Points

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Detect Wireless Access Points

    I am stumped... I cannot for the life of me get code to list available access points...

    I dont care what language.. Ideally C#, or VB.NET


    I have asked/looked everywhere. I am trying to use C# and WMI but it only returns 1 correct SSID, everything else it returns is garbage.
    B Smoov
    Project Status: 90% Complete

    Next Step: TIVO for Radio

    Ampie Case :: MII10000 Mobo :: M1-ATX PSU :: 512MB RAM :: 2.5" HD, 60GB, 5400rpm, 16MB Buffer :: DWW-700H :: Centrafuse

  • #2
    Hi,

    Getting a list of available WiFi networks is the easy bit, including signal strength etc. through the WMI API. Google it or try this URL for starters:

    http://blogs.wwwcoder.com/mmondok/ar...6/23/5266.aspx

    The difficult bit is using the list of available networks. I have yet to find any reasonable way to programatically connect to a given network. If you find a way (from within Windows) then I (amongst others) would be very pleased to know. Apparantly there are many tools that can be used from within Linux to achieve this....

    I hope that this helps.

    cool dude

    Comment


    • #3
      I appreciate your help but try the code out before you claim it is easy to obtain the list.

      If you look at the bottom of the page you referred me to you will see that three people(myself included) posted that incorrect results are returned.
      B Smoov
      Project Status: 90% Complete

      Next Step: TIVO for Radio

      Ampie Case :: MII10000 Mobo :: M1-ATX PSU :: 512MB RAM :: 2.5" HD, 60GB, 5400rpm, 16MB Buffer :: DWW-700H :: Centrafuse

      Comment


      • #4
        Well

        I am sorry that the code does not work for you but it was meant as an example. I had assumed that you would Google the relevent terms and take it from there.

        I have tried various code samples (some even found on these very forums) that use WMI in VB. They used to work in XP SP1 but they now appear to no longer work in SP2 (all my PCs are SP2). What they all do in SP2 is to list the first access point found (or the one that you are attached to) for every access point found.

        It does appear as if this is a known issue with SP2 but I have not yet found what the fix is. Even on the MS Knowledgebase the posts outlining this problem remain unsnswered.

        Sorry to have been of little help. Maybe the problem will be fixed by MS in a future service pack?

        Comment


        • #5
          Now thats good info... I didnt know it was broken by SP2.

          I have looked EVERYWHERE for a solution. I am absolutely stumped. I wish there was just a simple API to query the Windows Wireless Zero Config tool. I am to the point of just trying to hook the tool.
          B Smoov
          Project Status: 90% Complete

          Next Step: TIVO for Radio

          Ampie Case :: MII10000 Mobo :: M1-ATX PSU :: 512MB RAM :: 2.5" HD, 60GB, 5400rpm, 16MB Buffer :: DWW-700H :: Centrafuse

          Comment


          • #6
            How's this

            Hi,

            I found this: http://www.robotics4.net/Software/ManagedWiFi.aspx

            It appears to be a wrapper that bypasses WMI. I am not so hot on C so at the moment I cannot try this out in VB6. Maybe you can see if it helps?

            cool dude

            Comment

            Working...
            X