A portable way to get the mac address and number of available processors

  • Thread starter Thread starter AA
  • Start date Start date
A

AA

Somebody know a "portable" way to get the mac address and the number of
availables processors of the computer where the .net application is running?

I know that both are very different questions but if you know at least one,
I'll appreciate your help

When i said "portable" way, I mean that I need to run the same application
in windows and linux and other .net capable system with the same behavior


AA
 
I think maybe MAC Address can be gotten through WMI or using DLLImport and
one of the Network API's
 
None I know of exists, I cannot think of a class that provides either
nativly. Unless someone comes up with one, your best bet is to write a class
that determines what system you are running on and makes the proper platform
calls to get the information.
 
Back
Top