This article is a mirror article of machine translation, please click here to jump to the original article.

View: 24790|Reply: 1

[Source] C# obtains the MAC address of the native physical NIC card

[Copy link]
Posted on 9/29/2017 4:02:02 PM | | |

  Before lunch today, I saw a bug recorded in April, when the computer used wireless Internet access, the software could not be turned on, and it was not solved at that time (the customer said it would be better to change to wired). I thought about it at lunch and felt that there was an error in obtaining the MAC address when verifying the authorization, and when I came back after eating, I looked at the code, and there was indeed a problem. When authorizing, it is authorized according to the MAC address of the local network card, and the MAC address of the wireless network card used for authorization is verified when logging in, so the software cannot be opened. I searched briefly, referred to this article, combined with the description on msdn and the local test, changed the function to obtain the MAC address of the local physical network card, and passed the test (test environment Win7 Enterprise Edition 64-bit notebook). The function code is as follows:






Previous:The password does not meet the requirements of the password policy. Check the minimum password length, password reproduction...
Next:Technician One-Click System Reinstall Tool (System Installation Downloader)
Posted on 9/30/2017 7:22:58 AM |
Yes, there will be a solution next time you encounter this situation
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com