Solved

Retrieving a MAC address

Posted on 1997-06-19
6
424 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
ID: 1302197
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
ID: 1302198
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
ID: 1302199
You might check out the ARP cache.  You would access it using SMTP protocols.

V

0
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.

 

Author Comment

by:JHaack
ID: 1302200
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
ID: 1302201
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
ID: 1302202
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

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
How to determine file rename from EventLog ? 2 43
sumDigits challenge 9 127
ShiftLeft challenge 21 78
Path of Workbook 3 62
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…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

26 Experts available now in Live!

Get 1:1 Help Now