[UWP]如何获取机器的MAC地址? [英] [UWP] how to get the machine MAC address?
问题描述
大家好,
我想知道如何在UWP项目中获取机器Mac地址。
我搜索了一些方法, ix.using AWSHID。
我在我的项目中试过这个,但是 硬件识别 无法识别,我不知道原因。
您好,
为了让它得到认可,您应该添加
桌面或移动扩展程序(如果你只是为手机开发应用程序,那么只要为PC而添加MobileExtesion,如果你的应用程序应该在两台设备上运行,那么只需添加DesktopExtension然后添加两个扩展程序 )。在VS AddReferance中 - >扩展
Hello,everyone
I want to know how to get machine Mac address in UWP project.
I searched some methods, ix.using AWSHID.
I tried this in my project,but HardwareIdentification is not recognized,i don not know why.
Hello,
For make it recognized you should add Desktop or Mobile extensions to your project (If you develop app just for Phone then just add MobileExtesion if for PC then just DesktopExtension if your app should run on both devices then add both Extensions ). In VS AddReferance -> Extensions
这篇关于[UWP]如何获取机器的MAC地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!