Article View: borland.public.cppbuilder.nativeapi
Article #14987Re: How to get NIC MAC address under Windows 2000/XP
From: Yu-lin Chang
Date: Fri, 25 Jul 2003 00:40
Date: Fri, 25 Jul 2003 00:40
50 lines
2517 bytes
2517 bytes
Thank you Vladimir, I have download your samples and try to study it. Thanks again, Yu-lin "Vladimir Afanasyev" <avv@systema.kiev.ua> wrote in message news:3f1f874d$1@newsgroups.borland.com... > > Hi, > Use the force (WMI) Yu-lin. > It is native for Win2000/XP. > I disconnect cable and it still work. > See my WMI samples: > http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=19443 > > If you will use BCB6 do not forget to disable speed > optimization in the Project Options. It is problem of BCB6. > NetAdapterConf - sample name. > > Vladimir. > > > "Yu-lin Chang" <ylchang@ascc.net> wrote: > >Hi, > > > >When using BCB, I know it can use NETBEUI API to get > >the MAC address(es) of network card(s) in Windows 2000/XP. > > > >But if the network cable be disconnected or the network > >cable did not connect to a hub (or other device), Windows > >will disable the NETBEUI API. Then I cannot get the MAC > >address until the cable be reconnected properly. > > > >Another problem is if user does not config the "BETBIOS" > >or the "File and Print Share" protocol, the NETBEUI API > >will not availible. > > > >Is there any Windows API (or BCB's propritory function) > >that can determinate the MAC address even the NETBEUI > >API is not availible? > > > > > >Thanks in advance, > > > > > >Yu-lin Chang > >-- >
Technical Details
Message-ID:
<3f207c7f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3f1f57a9$1@newsgroups.borland.com> <3f1f874d$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,34a00c071ed95cd8 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-24 18:03:46 PST From: "Yu-lin Chang" <ylchang@ascc.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f1f57a9$1@newsgroups.borland.com> <3f1f874d$1@newsgroups.borland.com> Subject: Re: How to get NIC MAC address under Windows 2000/XP Date: Fri, 25 Jul 2003 08:40:09 +0800 Lines: 51 Organization: Academia Sinica Computing Centre, Taiwan. MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 140.109.230.149 Message-ID: <3f207c7f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059093631 140.109.230.149 (24 Jul 2003 17:40:31 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail