Solved

Retrieving a MAC address

Posted on 1997-06-19
6
412 Views
Last Modified: 2013-11-20
I can retrieve a MAC address in dos by typing "getmac" followed by the machine name?  Is there an windows API or MFC equivalent that will retrieve the machine address?
0
Comment
Question by:JHaack
6 Comments
 
LVL 4

Expert Comment

by:mbhakta
Comment Utility
This is a win 95 code grabbed from the MSDN

mov  ah, 16h           ; Windows multiplex function
mov  al, 8Eh           ; VM Title
mov  di, seg VMTitle   ; see below
mov  es, di
mov  di, offset VMTitle
mov  cx, Size          ; see below
mov  dx, 3             ; Get Virtual Machine Title
int  2Fh
cmp  ax, 1
je   success


0
 

Author Comment

by:JHaack
Comment Utility
I am not looking for the machine title.  I am looking for the MAC address, given the machine title.  In MSDOS, the MAC is retrieved with the getmac command followed by the machine title.  How is this done in C++/MFC?
0
 
LVL 3

Expert Comment

by:vinniew
Comment Utility
You might check out the ARP cache.  You would access it using SMTP protocols.

V

0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:JHaack
Comment Utility
Let me elaborate.  I am looking for a function which will retrieve a unique identification number for a specific computer.  I want to use the unique identification number to create an application which will execute only on my machine.  Is there a simple API or MFC call which will retrieve such information?
0
 
LVL 3

Accepted Solution

by:
jaba earned 10 total points
Comment Utility
Get source of program recivigd MAC address from my ftp
ftp://194.87.205.60/macaddr
You cant use www browser for it, because my ftp not allowed for anonymous
Use login:jaba password:goout

0
 

Author Comment

by:JHaack
Comment Utility
The effort is worth 100 points.  However, I don't have the netbios header file, so I can't compile it.  I'll give you 100 points now.  I'll give you another 100 if we can get it to work properly.  For now, we simply need "netbios.h".
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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

14 Experts available now in Live!

Get 1:1 Help Now