Re: C# Problem
  Home FAQ Contact Sign in
microsoft.public.windowsxp.embedded only
 
Advanced search
POPULAR GROUPS

more...

 Up
Re: C# Problem         

Group: microsoft.public.windowsxp.embedded · Group Profile
Author: Reinhard Achleitner
Date: Mar 22, 2008 04:43

Hi!

Thx for your help, i added the WMI components and it works now..

kind regards
Reinhard

"KM" nospam_yahoo.com> schrieb im Newsbeitrag
news:eLdbBFyiIHA.2084@TK2MSFTNGP02.phx.gbl...
> And WMI Network Provider.
>
> --
> =========
> Regards,
> KM
>
>> I'm no expert either, but make sure you have WMI components added to your
>> image.
>>
>> --
>> http://www.sochi-travel.info/">My Sochi Blog
>>
>>
>>
>> "Reinhard Achleitner" wrote:
>>
>>> 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
>
>
>
no comments
diggit! del.icio.us! reddit!