From: "Alex Vinokur" Newsgroups: alt.os.windows2000,comp.lang.c++,comp.os.msdos.djgpp,comp.os.ms-windows.programmer.misc,microsoft.public.win2000.general Subject: Getting MAC Address (popen method) within C/C++-program on Windows 2000 Followup-To: comp.os.ms-windows.programmer.misc, microsoft.public.win2000.general Date: Wed, 11 Sep 2002 18:40:15 +0200 Lines: 40 Message-ID: References: NNTP-Posting-Host: pop03-2-ras5-p166.barak.net.il (212.150.100.166) X-Trace: fu-berlin.de 1031758837 62814496 212.150.100.166 (16 [79865]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com ========================================== 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. 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:alexvn AT go DOT to http://up.to/alexvn ==================