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 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
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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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?
|
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
|
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...
|
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
{
|
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,...
|
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...
|
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...
|
by: maheshinvent |
last post by:
Hello friends I need to know how data packets are actually transferred through network adapters...
|
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...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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
|
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...
| |