?
Solved

MAC address

Posted on 1998-12-24
4
Medium Priority
?
388 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 200 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

764 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