Answered by:
How to get mac address in the metro style application?

Question
-
How to get mac address in the metro style application?
I use GetAdaptersInfo to get the mac address,GetAdaptersInfo can not find
in the metro style ,but find in the desktop application.
which way can I get the mac address in the metro style.
王建平
Monday, June 11, 2012 1:52 PM
Answers
-
You cannot do that from a Metro app. That is by design.
- Marked as answer by 京东商城WP Tuesday, June 12, 2012 1:50 AM
Monday, June 11, 2012 4:10 PM
All replies
-
You cannot do that from a Metro app. That is by design.
- Marked as answer by 京东商城WP Tuesday, June 12, 2012 1:50 AM
Monday, June 11, 2012 4:10 PM -
Thanks!But How to get the uniquely identifies for the Metro app?
王建平
Tuesday, June 12, 2012 1:53 AM -
亲,
For addition, you can check this document.
http://msdn.microsoft.com/en-us/library/windows/desktop/br205757.aspx
It is a list for WIN32 and COM API can accessed in metro.
Best regards,
Jesse
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
Tuesday, June 12, 2012 7:45 AM -
亲,metro下可用的东西太少!
王建平
Tuesday, June 12, 2012 8:28 AM -
There seems to be a lot of useful APIs out there.
Networking:
http://msdn.microsoft.com/en-us/library/windows/desktop/br205759.aspxDevices:
http://msdn.microsoft.com/en-us/library/windows/desktop/br205754.aspxSystemInfo:
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724958.aspxI'm currently trying to write some code to retrieve the MAC address. I see countless people are trying to get this MAC address as it is vital in business applications to identify a user's machine, which seems to be a vital feature for the Metro application business. Although there're sayings about the web that this type of information can never be obtained from Metro, I doubt it a little. Here's a sample from Microsoft for download that successfully gets information like the system model, and system manufecturer:
http://code.msdn.microsoft.com/windowsapps/Device-Enumeration-Sample-a6e45169
While I'm writing this code, I have several other tasks on my hand. So if you see this and think that you can do it too, please start writing it. I'll post mine as soon as I finish, please feel free to post it here if you finish before me.
Thanks.
Thursday, August 16, 2012 8:31 AM -
you can use ASHWID a unique identifier, using this you can make per device logic for apps.
More details on http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx
- Proposed as answer by sreejith.k Tuesday, August 21, 2012 11:25 PM
Tuesday, August 21, 2012 11:25 PM -
you can use ASHWID a unique identifier, using this you can make per device logic for apps.
More details on http://msdn.microsoft.com/en-us/library/windows/apps/jj553431.aspx
- Proposed as answer by sreejith.k Tuesday, August 21, 2012 11:27 PM
Tuesday, August 21, 2012 11:27 PM