Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: "Robert Praetorius" Organization: Ministry of Hobo Regalia, Gauntlet Division To: bert AT mail DOT svi DOT 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 AT AspenRes DOT Com CC: cygwin AT cygwin DOT com Message-ID: <3AA98411.13682.7B95E34@localhost> In-reply-to: <20010309143900.A12372@mail.svi.nl> References: <3AA8DB4E DOT D67C322B AT yahoo DOT com>; from earnie_boyd AT yahoo DOT 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 AT MA DOT UltraNet DOT Com (attribution by Stigler) work: RPraetorius AT AspenRes DOT Com -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple