For retriving the MAC address of a machine I found this thread pretty much helpful.

http://www.codeproject.com/tools/MacIdChanger.asp

Now I have to create an activeX control that can be used by any microsoft language and they can use my function to get the MAC address. Can anyone help me ??

I mean where exactly should i write those functions so that other languages can use them