Article View: borland.public.cppbuilder.nativeapi
Article #14964How to get NIC MAC address under Windows 2000/XP
From: Yu-lin Chang
Date: Thu, 24 Jul 2003 03:50
Date: Thu, 24 Jul 2003 03:50
24 lines
1766 bytes
1766 bytes
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:
<3f1f57a9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,34a00c071ed95cd8,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-07-23 20:58:06 PST From: "Yu-lin Chang" <ylchang@ascc.net> Newsgroups: borland.public.cppbuilder.nativeapi Subject: How to get NIC MAC address under Windows 2000/XP Date: Thu, 24 Jul 2003 11:50:59 +0800 Lines: 24 Organization: Academia Sinica Computing Centre, Taiwan. MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 140.109.1.191 Message-ID: <3f1f57a9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1059018665 140.109.1.191 (23 Jul 2003 20:51:05 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail