I need a way to get a machine's MAC address, regardless of the OS it is running, by using C#.
The application will need to work on XP/Vista/Win7 32bit and 64bit, as well as on those OSs but with a foreign language default. Also, many of the C# commands and OS queries don't work across all the OSs.
Do you have any ideas?
I have been scraping the output of ipconfig /all
but this is terribly unreliable as the output format differs on every machine.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…