R
Reinhard Achleitner
Hi!
I'm a beginner in creating embedded images, but after one week work, i'm
getting in
But there is a problem i can't solve yet. I want to get the mac address with
c# on the machine. .net 1.1 is installed, but following code hangs at foreach:
ManagementClass oMClass = new ManagementClass
("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection colMObj = oMClass.GetInstances();
foreach(ManagementObject objMO in colMObj)
{
MessageBox.Show(objMO["MacAddress"].ToString());
}
The same code works well on my developing machine, but not on the XP Embedded.
Have i forgotten a component?
kind regards
Reinhard
I'm a beginner in creating embedded images, but after one week work, i'm
getting in
But there is a problem i can't solve yet. I want to get the mac address with
c# on the machine. .net 1.1 is installed, but following code hangs at foreach:
ManagementClass oMClass = new ManagementClass
("Win32_NetworkAdapterConfiguration");
ManagementObjectCollection colMObj = oMClass.GetInstances();
foreach(ManagementObject objMO in colMObj)
{
MessageBox.Show(objMO["MacAddress"].ToString());
}
The same code works well on my developing machine, but not on the XP Embedded.
Have i forgotten a component?
kind regards
Reinhard