Solved

MAC address

Posted on 1998-12-24
4
336 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Best tools for Backup and restore of Wordpress site 6 53
format the code in java 6 72
mapAB Challlenge 35 84
Thin secure Windows 10 5 46
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 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

10 Experts available now in Live!

Get 1:1 Help Now