Article View: borland.public.cppbuilder.nativeapi
Article #5439Re: MAC address of network adapter
From: Mike Collins
Date: Mon, 15 Aug 2005 13:45
Date: Mon, 15 Aug 2005 13:45
59 lines
2824 bytes
2824 bytes
What do you mean the wrong MAC address? GetAdapterInfo() works fine on all our machines using XP (home, professional, SP1, SP2) and Win2003. What does your code look like? As I mentioned before, GetAdapterInfo() can be used to return information on many different adapters, you need to examine the Type value of the IP_ADAPTER_INFO structure. Also, I have found that Windows does not always preserve the order in which your adapters appear in the list. "Berlani" <jc.berlani@vacotec.ch> wrote in message news:430047fb$1@newsgroups.borland.com... > Hello, > > Thanks for your answer. > I already write a program which use the function GetAdaptersInfo() and I > used it on many computers. But on one new computer type which use Windows > XP > too, this > function give me a wrong MAC address . Then I look on microsoft site at > the > following address : > > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/getadaptersinfo.asp > > and on the top of page there is: > > Windows Server 2003 and Windows XP: Use the GetAdaptersAddresses function > instead of GetAdaptersInfo. > > I am interested to try this function but unfortunatly I do not find some > declaration like PIP_ADAPTER_ADDRESSES and so on. Is anybody know where we > can find this kind of files descriptions ? > > Thanks > > JC.Berlani > > My operating system is Windows XP > "Stefano Frosio" <stefanofrosioNIENTESPAM@GRAZIEhotmail.com> a οΏ½crit dans > le > message de news:42ff6b2e@newsgroups.borland.com... >> > Is anybody could tell me how to find the Unique MAC >> Adresse of the installed >> > Network boards. >> >> Here you go: >> >> http://community.borland.com/article/0,1410,26040,00.html >> >> ========================== >> Stefano Frosio >> http://www.esse-effe.com >> ========================== >> >> > >
Technical Details
Message-ID:
<43009a6b$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<42ff3a2c$1@newsgroups.borland.com> <42ff6b2e@newsgroups.borland.com> <430047fb$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d63a53bd7cd0d405 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII From: "Mike Collins" <its@thebottomofthe.post> Newsgroups: borland.public.cppbuilder.nativeapi References: <42ff3a2c$1@newsgroups.borland.com> <42ff6b2e@newsgroups.borland.com> <430047fb$1@newsgroups.borland.com> Subject: Re: MAC address of network adapter Date: Mon, 15 Aug 2005 14:45:53 +0100 Lines: 61 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.3790.1830 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 81.2.92.14 Message-ID: <43009a6b$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1124113003 81.2.92.14 (15 Aug 2005 06:36:43 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!solnet.ch!solnet.ch!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail