The mac address can generally be used to uniquely identify the machine, but it can also easily be spoofed.
Thus, I'm not sure how useful it will be to people, but someone asked me to make it, so it must be somewhat useful.
Note: The mac address is oftentimes used in DRM. DRM is bad, mmkay? So if you're planning to use this for DRM, e.g. as some kind of registration mechanism, well, I just hope that you do a little research on DRM and change your mind, but I won't prevent you from using this dll.
Other than that, there's not really much else to say, so here it is:
http://www.IsmAvatar.com/dlls/mac.zip (7 kb)
Inside are 3 files:
mac.dll - the dll itself (14 kb)
mac.c - the source code for the dll (if you want it. If not, you can just discard it) (1 kb)
mac.gm6 - the scripts to use it and an example (6 kb)
Please read the comments inside macInit to see how to use it.
Some computers may have multiple mac addresses, thus where macHasNex() and macGetNext() come in handy. Most people who use this, though, will probably only use the macInit and macGetFirst functions.
Edited by IsmAvatar, 18 May 2008 - 06:56 PM.