NEC MAC Address
-
:|Hi, can any one give me a win32 api and also a control or library that can get the NEC MAC address from the Hardware itself not from the registry. it will be good if it can be used in C#.
May god give u good health and knowledge.
-
:|Hi, can any one give me a win32 api and also a control or library that can get the NEC MAC address from the Hardware itself not from the registry. it will be good if it can be used in C#.
May god give u good health and knowledge.
Reader Man San wrote:
library that can get the NEC MAC address from the Hardware itself not from the registry.
Have you taken a look at these articles? http://www.codeproject.com/cs/internet/host_info_within_network.asp[^] http://www.codeproject.com/tools/MacIdChanger.asp[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
-
Reader Man San wrote:
library that can get the NEC MAC address from the Hardware itself not from the registry.
Have you taken a look at these articles? http://www.codeproject.com/cs/internet/host_info_within_network.asp[^] http://www.codeproject.com/tools/MacIdChanger.asp[^]
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
i read the articles but the code in them gets them from the registry -and that has a possibility of bieng changed- not from the NIC Hardware, which is what i want. but Thanks for reply...;P
May god give u good health and knowledge.
-
i read the articles but the code in them gets them from the registry -and that has a possibility of bieng changed- not from the NIC Hardware, which is what i want. but Thanks for reply...;P
May god give u good health and knowledge.
Reader Man San wrote:
gets them from the registry
Little bit of hunting around GetAdaptersInfo, seems to be the api call. Still havnet found where it gets its info from. http://www.codeproject.com/internet/IPHelper.asp[^] I suppose the only way to know for sure would be to send a packet to local loop back and interrogate it for the MAC.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
-
Reader Man San wrote:
gets them from the registry
Little bit of hunting around GetAdaptersInfo, seems to be the api call. Still havnet found where it gets its info from. http://www.codeproject.com/internet/IPHelper.asp[^] I suppose the only way to know for sure would be to send a packet to local loop back and interrogate it for the MAC.
I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:
Thanks, i will need to check it by using programs that change the registry's saved MAC Address. :laugh:
___________________________________________ May god give u good health and knowledge.
-
:|Hi, can any one give me a win32 api and also a control or library that can get the NEC MAC address from the Hardware itself not from the registry. it will be good if it can be used in C#.
May god give u good health and knowledge.
Hmm, how about ShellExecuteEx() with an ipconfig /all command piped into t file that your code then opens and reads the MAC address from. Either that or write an upperlayer driver that has an IOCTL interface which can be opened by your app and sends the query MAC address IOD to the adapter it binds to.
Truth is the subjection of reality to an individuals perception
-
Hmm, how about ShellExecuteEx() with an ipconfig /all command piped into t file that your code then opens and reads the MAC address from. Either that or write an upperlayer driver that has an IOCTL interface which can be opened by your app and sends the query MAC address IOD to the adapter it binds to.
Truth is the subjection of reality to an individuals perception
Thanks for the second idea, i thought about it but i am not good in hardware drivers, they are hard stuff for me.:laugh:
___________________________________________ May god give u good health and knowledge.
-
Thanks for the second idea, i thought about it but i am not good in hardware drivers, they are hard stuff for me.:laugh:
___________________________________________ May god give u good health and knowledge.
I can give you source code for such a 'protocol' driver if you like. I takes an IOCTL from an app that opens a particular adapter, than, there is a generic OID handling IOCTL. YOu can set/request any OID with this. It is a complete project, but you will need a DDK, preferably the 2003 server DDK. It has an inf file for installation too.
Truth is the subjection of reality to an individuals perception