Solved

MAC address

Posted on 1998-12-24
4
348 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 157
countEvens challenge 2 78
fizzArray2 challenge 1 72
Excel file not created as expected 7 50
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

867 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now