Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Robert Praetorius" <RPraetorius@AspenRes.Com>
Organization: Ministry of Hobo Regalia, Gauntlet Division
To: bert@mail.svi.nl
Date: Sat, 10 Mar 2001 01:32:01 +1100
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: SIOCGIFCONF but not SIOCGIFHWADDR
Reply-to: RPraetorius@AspenRes.Com
CC: cygwin@cygwin.com
Message-ID: <3AA98411.13682.7B95E34@localhost>
In-reply-to: <20010309143900.A12372@mail.svi.nl>
References: <3AA8DB4E.D67C322B@yahoo.com>; from earnie_boyd@yahoo.com on Fri, Mar 09, 2001 at 08:31:58AM -0500
X-mailer: Pegasus Mail for Win32 (v3.12c)

> If only I knew how to retrieve that information from Windows.
> I did look at the Cygwin source for SIOCGIFCONF, which searches
> the registry for the IP adress + mask.  But in the registry
> I was unable to find the MAC address.  So how to retrieve
> that information from Windows using whatever Windows API calls?

     A quick search turns up

        Q118623 - HOWTO: Get the MAC Address for an Ethernet Adapter
        http://support.microsoft.com/support/kb/articles/Q118/6/23.asp

The answer is a little unsatisfying in a number of respects (assumes 
NetBIOS is bound on that card, it may return randomly generated 
addressed for some non-Ethernet interfaces, etc.) but is better than 
nothing.


----c--o--n--f--o--r--m--i--t--y-----k--i--l--l--s-----g--r--a--s--s----
"oncology recapitulates philately" --Mark Maxson    Robert M. Praetorius
"balance, not symmetry" --Mark Stanley         home: rmp@MA.UltraNet.Com
(attribution by Stigler)                  work: RPraetorius@AspenRes.Com

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

