Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 01-16-2005, 08:53 AM   #1
Low Bitrate
 
Zharvek's Avatar
 
Join Date: Jan 2005
Location: Florida
Posts: 67
Zharvek is on a distinguished road
Some Windows XP WMI Wireless Code

I got a PM asking for some code on the wireless Im using. I will post it here. I did NOT make the entire code I found it some where on the internet looking for some bits and pieces of random code to add to my project, and adapted it for VB6.

Code:
Private Sub wifitimer_Timer() Dim objSwbemServices, colInstances, obj, rawssid, ssid, i, decval On Error Resume Next Set objSwbemServices = GetObject("winmgmts:\\.\root\wmi") Set colInstances = objSwbemServices.ExecQuery("SELECT * FROM MSNDis_80211_BSSIList") For Each obj In colInstances If Left(obj.InstanceName, 4) <> "WAN " And Right(obj.InstanceName, 8) <> "Miniport" Then For Each rawssid In obj.Ndis80211BSSIList ssid = "" For i = 0 To UBound(rawssid.Ndis80211Ssid) decval = rawssid.Ndis80211Ssid(i) If (decval > 31 And decval < 127) Then ssid = ssid & Chr(decval) End If Next wifilist.AddItem (ssid) Dim A%, B% For A% = 0 To wifilist.ListCount - 1 For B% = 0 To wifilist.ListCount - 1 If B% <> A% Then If wifilist.List(A%) = wifilist.List(B%) Then wifilist.RemoveItem B% B% = B% - 1 End If End If Next B% Next A% Next End If Next End Sub

Was the code that I put in a listbox and removes duplicates. Help with that came from (Ninja Monkey).

http://files.archaicbinary.net/Waynibu.zip <-- VB6 Source With textbox. Pulls duplicates from WMI. Would be great if no duplicates were pulled.

http://files.archaicbinary.net/Project1.exe <-- Compiled program.

http://files.archaicbinary.net/GPSV77K.DLL <-- Required DLL file for GPS functions. (Place in Windows folder, you can delete anytime you want, it does popup when you first run the program to say its unregistered, but works as a quick gps for now)

http://files.archaicbinary.net/Waynibu_Listbox.zip <-- VB6 Source with Listbox instead of Textbox. Pulls duplicates from WMI then removes them on the fly. This is the current one Im using. There is a compiled version included in the zip.

Last edited by Zharvek; 01-16-2005 at 10:23 AM.
Zharvek is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP boot on CF card Uconnputer General Hardware Discussion 2 12-14-2004 07:43 PM
Running FrodoPlayer on Windows XP Embedded? Lupo FrodoPlayer 11 07-23-2004 08:50 AM
Windows XP doesn't save autoplay settings antimatter Software & Software Development 2 05-24-2004 01:51 AM
Windows XP Embedded farolfo Software & Software Development 0 05-05-2004 04:36 AM
Windows XP milleda31 General Hardware Discussion 7 04-02-2004 03:19 AM



All times are GMT -5. The time now is 09:23 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics