News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Locally Administrated MAC address

Started by Don57, January 24, 2012, 05:23:44 PM

Previous topic - Next topic

Don57

I'm trying to write a program that will automatically allocated a new MAC address on my WiFi card, rather than do it manually. But I can't seem to find the appropriate API calls.
I'm just getting tired of doing it manually.

Vortex

Did you try to trace the modifications in the registry after setting a new MAC address?

Don57

No but I will. The closest call that I can find is GetAdapterInfo. I was going to disassemble the relative DLL and see where that leads me.

Don57

I found the registry entry at  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E972-E325-11CE-BFC1-08002BE10318}\0008  NetworkAddress.

Can I use a write a program so that I can edit it, and have update on the fly, without having to reboot the computer.

ragdog


dedndave

i doubt it will be that simple
the information is likely stored elsewhere - places that also need to be refreshed after the update
not saying it isn't do-able, but i think it will involve more than simply changing a registry value

Vortex


BogdanOntanu

Question is: WHY do you want to do this, esp on a WiFi network card :D ? eh?

The only reason I can find is not legit.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro