Solved

MAC address

Posted on 1998-12-24
4
379 Views
Last Modified: 2013-11-20
How I can get the MAC address of my network card on Visual C++ 5.0 without using register base ?

( OS : Windows 98, Windows 95 and Windows NT 4.0 )
0
Comment
Question by:lfournier
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 100 total points
ID: 1326670
No way - simply use 'HKEY_LOCAL_MACHINE\SOFTWARE\Description\Microsoft\Rpc\UuidTemporaryData\NetworkAddress', this is also the easiest method...
0
 
LVL 23

Expert Comment

by:chensu
ID: 1326671
You can use the Netbios function to get the MAC address for an ethernet adapter if your card is bound to NetBIOS.

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


Reject the answer if you find my comment helpful so that I can submit it as an answer.
0
 
LVL 1

Expert Comment

by:scottcopus
ID: 2164662
Does the Registry key...
HKEY_LOCAL_MACHINE\SOFTWARE\Description\Microsoft\Rpc\UuidTemporaryData\NetworkAddress
*ALWAYS* exist if there is a ethernet network card in the system?

This method of getting the ethernet card's MAC address seems like it may be unreliable because of the "UuidTemporaryData" name (temporary?).  Is there an alternative to retrieving an ethernet card's MAC address besides the following 3 ways I have found: ?
 1. The above registry entry
 2. Using NETBIOS to get the MAC Address
 3. Using the cocreateguid() function call to extract MAC
Any alternatives to the above?
0
 
LVL 1

Expert Comment

by:scottcopus
ID: 2164663
Does the Registry key...
HKEY_LOCAL_MACHINE\SOFTWARE\Description\Microsoft\Rpc\UuidTemporaryData\NetworkAddress
*ALWAYS* exist if there is a ethernet network card in the system?

This method of getting the ethernet card's MAC address seems like it may be unreliable because of the "UuidTemporaryData" name (temporary?).  Is there an alternative to retrieving an ethernet card's MAC address besides the following 3 ways I have found: ?
 1. The above registry entry
 2. Using NETBIOS to get the MAC Address
 3. Using the cocreateguid() function call to extract MAC
Any alternatives to the above?
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to know only "File created" with EventLog 3 35
sum67 challenge 35 128
Change to event 1 136
Adjust the codes 3 63
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question