All attempts
to get MAC Address (SNMP, NetBIOS, RPC methods) within C/C++-program in Windows2000
have failed.
See :
1. Getting MAC Address (SNMP Method) within C/C++-program in Windows2000
http://groups.google.com/groups?selm=al5gtq%241nm5bu%241%40ID-79865.news.dfncis.de
2. Getting MAC Address (NetBIOS Method) within C/C++-program in Windows2000
http://groups.google.com/groups?selm=al5grb%241n9l0s%241%40ID-79865.news.dfncis.de
3. Getting MAC Address (RPC Method) within C/C++-program in Windows2000
http://groups.google.com/groups?selm=almic8%241on4rf%241%40ID-79865.news.dfncis.de
So, I was forced to use popen method to get MAC Address within C/C++-program in Windows2000.
http://groups.google.com/groups?selm=allcli%241qvl2d%241%40ID-79865.news.dfncis.de
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4733&lngWId=3
Of course, using popen() is not the best solution because subsidiary process is created.
==================
Alex Vinokur
mailto:ale...@go.to
http://up.to/alexvn
==================
"Alex Vinokur" <ale...@bigfoot.com> wrote in message news:alno5j$1rsu90$1...@ID-79865.news.dfncis.de...
> ==========================================
> Windows 2000 Professional
> --------------------
> DJGPP 2.03
> GNU gcc/gpp version 3.1
> --------------------
> MINGW-2.0.0-2
> GNU gcc/g++ version 3.2 (mingw special 20020817-1)
> ==========================================
>
>
> All attempts
> to get MAC Address (SNMP, NetBIOS, RPC methods) within C/C++-program in Windows2000
> have failed.
There is no problem to get MAC Adddress (ioctl method) within C/C++-program in Windows2000 using Cygwin :
See :
1. From Cygwin archive
http://cygwin.com/ml/cygwin/2002-09/msg00922.html
2. C++ Wrapper around the Floyd Davidson's program (Cygwin on Windows 2000):
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=4798&lngWId=3
http://groups.google.com/groups?selm=ama8q9%2441lfs%241%40ID-79865.news.dfncis.de
3. Appendix
http://cygwin.com/ml/cygwin/2002-09/msg00923.html
>
> See :
> 1. Getting MAC Address (SNMP Method) within C/C++-program in Windows2000
> http://groups.google.com/groups?selm=al5gtq%241nm5bu%241%40ID-79865.news.dfncis.de
>
>
> 2. Getting MAC Address (NetBIOS Method) within C/C++-program in Windows2000
> http://groups.google.com/groups?selm=al5grb%241n9l0s%241%40ID-79865.news.dfncis.de
>
>
> 3. Getting MAC Address (RPC Method) within C/C++-program in Windows2000
> http://groups.google.com/groups?selm=almic8%241on4rf%241%40ID-79865.news.dfncis.de
>
[snip]