惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Google DeepMind News
Google DeepMind News
V
V2EX
B
Blog RSS Feed
有赞技术团队
有赞技术团队
博客园 - Franky
美团技术团队
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
腾讯CDC
云风的 BLOG
云风的 BLOG
L
LangChain Blog
GbyAI
GbyAI
The Cloudflare Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
Check Point Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Stack Overflow Blog
Stack Overflow Blog
博客园 - 【当耐特】
The Register - Security
The Register - Security
大猫的无限游戏
大猫的无限游戏
D
Docker
Vercel News
Vercel News
Blog — PlanetScale
Blog — PlanetScale
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
雷峰网
雷峰网
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
N
Netflix TechBlog - Medium
博客园_首页
A
About on SuperTechFans
J
Java Code Geeks
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
MongoDB | Blog
MongoDB | Blog
Recent Announcements
Recent Announcements
G
Google Developers Blog
小众软件
小众软件
博客园 - 叶小钗
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
F
Full Disclosure
Jina AI
Jina AI
H
Help Net Security

博客园 - 睿亲王多尔衮

Firebird 2.1 Beta2 安装版本 Firebird 优化配置文件下载 Firebird 2.1 千万级数据库统计测试结果 XP用户如何享用vista的皮肤界面 AMD 双核笔记本CPU即将推出 如何在BDS2006中使用COM+应用生成精灵 利用ado.net存取BLOB数据 Firebird数据库的取值范围 江山风雨情主题曲 ASP.NET 2.0中的treeView 发布我的网络U盘 多层开发利器ASTA系列视频之一 最新发布照片 新酒店软件截图 快来发表自己喜爱的第三方组件介绍 使用.NET编程操纵Excel 地球帝国2官方秘籍 帝国时代3——划时代的3D即时战略游戏 调用Windows内核
如何修改机器的MAC 地址
睿亲王多尔衮 · 2005-05-28 · via 博客园 - 睿亲王多尔衮
Fig. 1 : Screenshot of the one and only main dialog
Fig. 2 : You can use getmac from a command prompt to list MAC Addresses of your n/w adapters

Overview

My cable ISP does something really unusual and annoying - they lock a cable modem to the N/W card's MAC Address, thereby disallowing an user from either changing his network card or using a different machine. When my dad visits me, this is most inconvenient as he cannot plug his laptop to the internet and I don't have a LAN at home he can plug into. A Linuxian friend of mine suggested that I change the MAC ID - which is apparently a one-command operation on Linux based machines. I googled around and found that changing the MAC under Windows involved changing certain registry values and resetting the network adapter. I barely trust my dad with his laptop, so you can imagine how I felt about trusting him to modify the registry and reset network adapters. I am not particularly crazy about coding, I do it for a living as well as an off-work hobby - but I thought it'd be a prudent idea to write a GUI app for my dad in my spare time. That's how MAC Address Changer for Windows XP/2003 came into being.

Requirements

  • Windows XP / Windows 2003

Operations

Change MAC ID

Enter a MAC Address into the edit box and click the change button. It validates the ID you've entered, so you cannot enter a MAC like "I am a chicken hawk" or something goofy like that.

Reset MAC ID

This'll reset the MAC Address to the adapter default.

Things to note

  • Normally, both operations would be pretty straightforward. But sometimes, with some network adapters, programmatic reset of the adapters will fail, in which case you'll get a message box telling you that you'll need to manually reset the adapter.

  • If you don't have write-access to the HKLM registry key-hierarchy, both operations fail.

Program usage

The program can be used freely for commercial and non-commercial purposes.

Source code

The source code (decently commented I hope) has been included. I used VC++ 2005 Beta 2 (MFC dialog app without the /clr option), so you'll need that to open the project files. All the textual UI is taken from the resource, so it should be pretty easy to have versions for other languages - say German or French for instance.