By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,243 Members | 1,116 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,243 IT Pros & Developers. It's quick & easy.

how to get more detail while enum the network adapters?

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
> 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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.