473,326 Members | 2,128 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

how to get more detail while enum the network adapters?

Ari
hi all,
I try to use the shell32 to enum the network adapters that installed on
my computer, it works, but I want to get more details about them, such as
the device's type, device's name ..., how shall I do else?
I use the code as follow:

const string folderPathStr = "{7007ACC7-3202-11D1-AAD2-00805FC1270E}";

Shell32.Shell sh = new Shell32.Shell();
Shell32.Folder folder;

folder = sh.NameSpace(3);
try
{
foreach (Shell32.FolderItem myItem in folder.Items())
{
if (myItem.Path.ToString().IndexOf(folderPathStr) > -1)
{
Shell32.Folder fd = (Folder)myItem.GetFolder;
foreach (Shell32.FolderItem fi in fd.Items())
....
best regards,

Ari
Nov 17 '05 #1
2 2527
> I try to use the shell32 to enum the network adapters that installed on
my computer, it works, but I want to get more details about them, such as
the device's type, device's name ..., how shall I do else?


Have you considered using WMI (specifically the Win32_NetworkAdapter class)
instead of the shell APIs for this? WMI provides plenty of device information.
Mattias

Nov 17 '05 #2
Ari
Thanks very much to Mattias Sj?gren, I get what I want.

regards,
Ari

"Mattias Sj?gren" <Ma***********@discussions.microsoft.com> дÈëÏûÏ¢
news:0F**********************************@microsof t.com...
I try to use the shell32 to enum the network adapters that installed
on
my computer, it works, but I want to get more details about them, such as
the device's type, device's name ..., how shall I do else?


Have you considered using WMI (specifically the Win32_NetworkAdapter
class)
instead of the shell APIs for this? WMI provides plenty of device
information.
Mattias

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Olivier Parisy | last post by:
Hi all, I'd like to get, in a portable way, a list of all network adapters on a local machine running some python code. socket.gethostname() does not seem enough, as it only returns one name...
4
by: Matthew K Jensen | last post by:
In one of my "because I can" projects, I want to be able to see the enabled network interfaces on a machine. I have no clue as to how to do this. Any suggestions?
0
by: Gordon Knote | last post by:
Hi how can I enumerate (and get information about) all installed network adapters on a local machine (in .net) Thanks a lo Gordon
2
by: Voronkov Konstantin | last post by:
Thank you for answer, but I still did not got *how* to make serialization of enum type. Can you provide more instructions or hint, please? My task is to serialize enum to something like byte...
21
by: Andreas Huber | last post by:
Hi there Spending half an hour searching through the archive I haven't found a rationale for the following behavior. using System; // note the missing Flags attribute enum Color {
3
by: Maniaque | last post by:
Does anybody knows, how can I address multiply network adapters on one computer? I've looked up through classes reference and found nothing. Thanks in advance. -- .... blood, sugar, sex,...
0
by: amir | last post by:
Hello All, I am currently looking for writing an application that will act like a network bridge. Meaning, I have 2 network adapters and i want all thing from 1 adapter will pass directly to the...
4
by: =?Utf-8?B?TWFydGlu?= | last post by:
In Device Manager under Network Adapters, nearly all (about 20) items have a yellow warning symbol. The first item, Microsoft 6to4 Adapter says driver is up-to-date BUT says "This device is not...
7
by: maheshinvent | last post by:
Hello friends I need to know how data packets are actually transferred through network adapters...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.