|
-
Sep 9th, 2007, 02:05 PM
#1
[RESOLVED] [2005] Getting network information using WMI
Hey.
Im trying to get information about the network usage using WMI, things such as the current download/upload speed etc.
This is easily retrieved using the PerformanceCounter but I'd rather avoid using it as it requires hardcoded category names that are language dependant (or am I wrong?).
Im still fairly new to this whole WMI thing..
Do you have any example, link or anything else that might help me? Thank you.
-
Sep 9th, 2007, 06:28 PM
#2
Re: [2005] Getting network information using WMI
Look at the Win32_NetworkAdapter class as it has a couple of properties that may be what you are looking for: Speed, Status and StatusInfo.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 10th, 2007, 02:44 PM
#3
Re: [2005] Getting network information using WMI
unfortunately the Speed property returned the max speed of the networkadapter, not the current speed..and the status and statusinfo didnt provide what I needed.
-
Sep 10th, 2007, 03:30 PM
#4
Re: [2005] Getting network information using WMI
Check out the Win32_PerfFormattedData_Tcpip_NetworkInterface class. It has what you're looking for and more...
http://msdn2.microsoft.com/en-us/library/Aa394293.aspx
-
Sep 10th, 2007, 05:31 PM
#5
Re: [2005] Getting network information using WMI
 Originally Posted by stanav
Wow! Looks very promising! How did you find that class? I thought I had searched everywhere I'll try it out and post back later.
-
Sep 11th, 2007, 01:42 PM
#6
Re: [2005] Getting network information using WMI
That class provided me with all the information I could ever need
Problem solved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|